org.bouncycastle.crypto.modes
public class CCMBlockCipher extends Object implements AEADBlockCipher
Note: this mode is a packet mode - it needs all the data up front.
| Constructor Summary | |
|---|---|
| CCMBlockCipher(BlockCipher c)
Basic constructor.
| |
| Method Summary | |
|---|---|
| int | doFinal(byte[] out, int outOff) |
| String | getAlgorithmName() |
| byte[] | getMac()
Returns a byte array containing the mac calculated as part of the
last encrypt or decrypt operation.
|
| int | getOutputSize(int len) |
| BlockCipher | getUnderlyingCipher()
return the underlying block cipher that we are wrapping.
|
| int | getUpdateOutputSize(int len) |
| void | init(boolean forEncryption, CipherParameters params) |
| int | processByte(byte in, byte[] out, int outOff) |
| int | processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) |
| byte[] | processPacket(byte[] in, int inOff, int inLen) |
| void | reset() |
Parameters: c the block cipher to be used.
Returns: the last mac calculated.
Returns: the underlying block cipher that we are wrapping.