| Package | Description |
|---|---|
| com.virgilsecurity.sdk.crypto |
| Modifier and Type | Class and Description |
|---|---|
class |
VirgilPublicKey
A public key.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
VirgilCrypto.extractPublicKey(PrivateKey privateKey) |
PublicKey |
Crypto.extractPublicKey(PrivateKey privateKey)
Extract public key from private key.
|
PublicKey |
KeyPair.getPublicKey() |
PublicKey |
VirgilCrypto.importPublicKey(byte[] publicKey) |
PublicKey |
Crypto.importPublicKey(byte[] publicKey)
Import public key from byte array.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
VirgilCrypto.decryptThenVerify(byte[] cipherData,
PrivateKey privateKey,
PublicKey publicKey) |
byte[] |
Crypto.decryptThenVerify(byte[] cipherData,
PrivateKey privateKey,
PublicKey publicKey)
Decrypt data and verify.
|
byte[] |
VirgilCrypto.encrypt(byte[] data,
PublicKey recipient) |
byte[] |
Crypto.encrypt(byte[] data,
PublicKey recipient)
Encrypt byte array for single recipient.
|
byte[] |
VirgilCrypto.encrypt(byte[] data,
PublicKey[] recipients) |
byte[] |
Crypto.encrypt(byte[] data,
PublicKey[] recipients)
Encrypt byte array with public key set.
|
void |
VirgilCrypto.encrypt(InputStream inputStream,
OutputStream outputStream,
PublicKey recipient) |
void |
Crypto.encrypt(InputStream inputStream,
OutputStream outputStream,
PublicKey recipient)
Encrypt stream data with public key.
|
void |
VirgilCrypto.encrypt(InputStream inputStream,
OutputStream outputStream,
PublicKey[] recipients) |
void |
Crypto.encrypt(InputStream inputStream,
OutputStream outputStream,
PublicKey[] recipients)
Encrypt stream data with public key set.
|
byte[] |
VirgilCrypto.exportPublicKey(PublicKey publicKey) |
byte[] |
Crypto.exportPublicKey(PublicKey publicKey)
Export public key as byte array.
|
void |
KeyPair.setPublicKey(PublicKey publicKey) |
byte[] |
VirgilCrypto.signThenEncrypt(byte[] data,
PrivateKey privateKey,
PublicKey recipient) |
byte[] |
Crypto.signThenEncrypt(byte[] data,
PrivateKey privateKey,
PublicKey recipient)
Sign data and encrypt.
|
byte[] |
VirgilCrypto.signThenEncrypt(byte[] data,
PrivateKey privateKey,
PublicKey[] recipients) |
byte[] |
Crypto.signThenEncrypt(byte[] data,
PrivateKey privateKey,
PublicKey[] recipients)
Sign data and encrypt.
|
boolean |
VirgilCrypto.verify(byte[] data,
byte[] signature,
PublicKey signer) |
boolean |
Crypto.verify(byte[] data,
byte[] signature,
PublicKey signer)
Verify byte array with signature.
|
boolean |
VirgilCrypto.verify(InputStream inputStream,
byte[] signature,
PublicKey signer) |
boolean |
Crypto.verify(InputStream inputStream,
byte[] signature,
PublicKey signer)
Verify stream data with signature.
|
| Constructor and Description |
|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Create a new instance of
KeyPair |
Copyright © 2016. All rights reserved.