7 #ifndef CRYPTOPP_CBCMAC_H 8 #define CRYPTOPP_CBCMAC_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);
45 {this->
SetKey(key, length);}
47 static std::string
StaticAlgorithmName() {
return std::string(
"CBC-MAC(") + T::StaticAlgorithmName() +
")";}
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.
BlockCipher & AccessCipher()
#define NAMESPACE_BEGIN(x)
unsigned int DigestSize() const
Provides the digest size of the hash.
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.
static std::string StaticAlgorithmName()
Provides a base implementation of Algorithm and SimpleKeyingInterface for message authentication code...
Provides key lengths based on another class's key length.
CBC_MAC(const byte *key, size_t length=SameKeyLengthAs< T >::DEFAULT_KEYLENGTH)
#define CRYPTOPP_NO_VTABLE
uint8_t const size_t const size
Interface for retrieving values given their names.