Botan

CCM Mode

License
Botan is released under the Simplified BSD License (see LICENSE.md)

abstract class  CCMMode: botan.modes.aead.aead.AEADMode, botan.algo_base.transform.Transformation;

Base class for CCM encryption and decryption @see RFC 3610


class  CCMEncryption: botan.modes.aead.ccm.CCMMode, botan.algo_base.transform.Transformation;

CCM Encryption


this(BlockCipher cipher, size_t tag_size = 16, size_t L = 3);

Parameters
BlockCipher cipher a 128-bit block cipher
size_t tag_size is how big the auth tag will be (even values between 4 and 16 are accepted)
size_t L length of L parameter. The total message length must be less than 2**L bytes, and the nonce is 15-L bytes.

class  CCMDecryption: botan.modes.aead.ccm.CCMMode, botan.algo_base.transform.Transformation;

CCM Decryption


this(BlockCipher cipher, size_t tag_size = 16, size_t L = 3);

Parameters
BlockCipher cipher a 128-bit block cipher
size_t tag_size is how big the auth tag will be (even values between 4 and 16 are accepted)
size_t L length of L parameter. The total message length must be less than 2**L bytes, and the nonce is 15-L bytes.