1 #ifndef CRYPTOPP_CMAC_H
2 #define CRYPTOPP_CMAC_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);
18 unsigned int DigestSize()
const {
return GetCipher().BlockSize();}
30 unsigned int m_counter;
41 {this->
SetKey(key, length);}
43 static std::string StaticAlgorithmName() {
return std::string(
"CMAC(") + T::StaticAlgorithmName() +
")";}
47 typename T::Encryption m_cipher;