|
Bouncy Castle Cryptography Library 1.36 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.modes.CCMBlockCipher
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.
Constructor Summary | |
CCMBlockCipher(BlockCipher c)
Basic constructor. |
Method Summary | |
java.lang.String |
getAlgorithmName()
|
byte[] |
getMac()
Returns a byte array containing the mac calculated as part of the last encrypt or decrypt operation. |
BlockCipher |
getUnderlyingCipher()
return the underlying block cipher that we are wrapping. |
void |
init(boolean forEncryption,
CipherParameters params)
|
byte[] |
processPacket(byte[] in,
int inOff,
int inLen)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CCMBlockCipher(BlockCipher c)
c
- the block cipher to be used.Method Detail |
public BlockCipher getUnderlyingCipher()
public void init(boolean forEncryption, CipherParameters params) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String getAlgorithmName()
public byte[] getMac()
public byte[] processPacket(byte[] in, int inOff, int inLen) throws java.lang.IllegalStateException, InvalidCipherTextException
java.lang.IllegalStateException
InvalidCipherTextException
|
Bouncy Castle Cryptography Library 1.36 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |