public class BouncyCastleSymmetricEngine extends Object implements StreamingEncryptionEngine
| 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) |
InputStream |
decrypt(InputStream input,
byte[] initVector) |
OutputStream |
decrypt(OutputStream output,
byte[] initVector) |
byte[] |
encrypt(byte[] input,
byte[] initVector) |
InputStream |
encrypt(InputStream input,
byte[] initVector) |
OutputStream |
encrypt(OutputStream output,
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 EncryptionEngineEncryptionExceptionpublic InputStream encrypt(InputStream input, byte[] initVector) throws EncryptionException
encrypt in interface StreamingEncryptionEngineEncryptionExceptionpublic OutputStream encrypt(OutputStream output, byte[] initVector)
encrypt in interface StreamingEncryptionEnginepublic InputStream decrypt(InputStream input, byte[] initVector)
decrypt in interface StreamingEncryptionEnginepublic OutputStream decrypt(OutputStream output, byte[] initVector) throws EncryptionException
decrypt in interface StreamingEncryptionEngineEncryptionExceptionCopyright © 2020. All rights reserved.