public class CryptoAsymmetricEngine extends Object implements EncryptionEngine
| Constructor and Description |
|---|
CryptoAsymmetricEngine(String cipherName,
Key encryptionKey,
Key decryptionKey) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] input,
byte[] initVector)
Decrypts given input using given initialization vector (if needed)
|
byte[] |
encrypt(byte[] input,
byte[] initVector)
Encrypts given input and using given initialization vector (if needed).
|
public byte[] encrypt(byte[] input,
byte[] initVector)
throws EncryptionException
EncryptionEngineencrypt in interface EncryptionEngineinput - input to be encryptedinitVector - initialization vector for encryption if needed (can be null)EncryptionException - exception if encryption failspublic byte[] decrypt(byte[] input,
byte[] initVector)
throws EncryptionException
EncryptionEnginedecrypt in interface EncryptionEngineinput - input to be decryptedinitVector - initialization vector for decryption if needed (can be null)EncryptionException - exception if decryption failsCopyright © 2019. All rights reserved.