7 #ifndef CRYPTOPP_CMAC_H 8 #define CRYPTOPP_CMAC_H 21 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶ms);
22 void Update(
const byte *input,
size_t length);
23 void TruncatedFinal(byte *mac,
size_t size);
24 unsigned int DigestSize()
const {
return GetCipher().BlockSize();}
36 unsigned int m_counter;
47 {this->
SetKey(key, length);}
49 static std::string StaticAlgorithmName() {
return std::string(
"CMAC(") + T::StaticAlgorithmName() +
")";}
53 typename T::Encryption m_cipher;
Interface for message authentication codes.
virtual void SetKey(const byte *key, size_t length, const NameValuePairs ¶ms=g_nullNameValuePairs)
Sets or reset the key of this object.
EAX block cipher mode of operation.
SecByteBlock is a SecBlock<byte> typedef.
Interface for one direction (encryption or decryption) of a block cipher.
Classes and functions for secure memory allocations.
Classes and functions for implementing secret key algorithms.
Provides class member functions to access MessageAuthenticationCode constants.
Provides key lengths based on another class's key length.
unsigned int OptimalBlockSize() const
Provides the input block size most efficient for this hash.
unsigned int OptimalDataAlignment() const
Provides input and output data alignment for optimal performance.
unsigned int DigestSize() const
Provides the digest size of the hash.
Crypto++ library namespace.
Interface for retrieving values given their names.