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)
forEncryption - True for encryption mode, false for decryption mode.params - Cipher initialization parameters.int processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
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.void reset()
Copyright © 2016 JBoss by Red Hat. All rights reserved.