public interface CipherAdapter
Modifier and Type | Method and Description |
---|---|
void |
init(boolean forEncryption,
org.bouncycastle.crypto.CipherParameters params)
Initialize the underlying cipher.
|
int |
processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
Process an array of bytes, producing output if necessary.
|
void |
reset()
Reset the cipher.
|
void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) throws CryptoException
forEncryption
- True for encryption mode, false for decryption mode.params
- Cipher initialization parameters.CryptoException
- on underlying cipher initialization errors.int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws CryptoException
in
- Input data.inOff
- Offset at which the input data starts.len
- The number of bytes in the input data to process.out
- Array to receive any data produced by cipher.outOff
- Offset into output array.CryptoException
- on underlying cipher data handling errors.void reset()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.