1 #ifndef CRYPTOPP_CBCMAC_H
2 #define CRYPTOPP_CBCMAC_H
7 NAMESPACE_BEGIN(CryptoPP)
15 void UncheckedSetKey(
const byte *key,
unsigned int length,
const NameValuePairs ¶ms);
16 void Update(
const byte *input,
size_t length);
17 void TruncatedFinal(byte *mac,
size_t size);
26 unsigned int m_counter;
39 {this->
SetKey(key, length);}
41 static std::string StaticAlgorithmName() {
return std::string(
"CBC-MAC(") + T::StaticAlgorithmName() +
")";}
45 typename T::Encryption m_cipher;
interface for message authentication codes
virtual void SetKey(const byte *key, size_t length, const NameValuePairs ¶ms=g_nullNameValuePairs)
set or reset the key of this object
unsigned int DigestSize() const
size of the hash/digest/MAC returned by Final()
interface for one direction (encryption or decryption) of a block cipher
support query of key length that's the same as another class
interface for retrieving values given their names