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