public class BouncyCastleSymmetricEngine extends Object implements EncryptionEngine
| Constructor and Description |
|---|
BouncyCastleSymmetricEngine(Class<? extends org.bouncycastle.crypto.BlockCipher> blockCipherClass,
org.bouncycastle.crypto.params.KeyParameter keyParam) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] input,
byte[] initVector) |
byte[] |
encrypt(byte[] input,
byte[] initVector) |
public BouncyCastleSymmetricEngine(Class<? extends org.bouncycastle.crypto.BlockCipher> blockCipherClass, org.bouncycastle.crypto.params.KeyParameter keyParam)
public byte[] encrypt(byte[] input,
byte[] initVector)
throws EncryptionException
encrypt in interface EncryptionEngineEncryptionExceptionpublic byte[] decrypt(byte[] input,
byte[] initVector)
throws EncryptionException
decrypt in interface EncryptionEngineEncryptionExceptionCopyright © 2016. All rights reserved.