3 #ifndef CRYPTOPP_TTMAC_H
4 #define CRYPTOPP_TTMAC_H
9 NAMESPACE_BEGIN(CryptoPP)
15 static std::string StaticAlgorithmName() {
return std::string(
"Two-Track-MAC");}
16 CRYPTOPP_CONSTANT(DIGESTSIZE=20)
18 unsigned
int DigestSize()
const {
return DIGESTSIZE;};
19 void UncheckedSetKey(
const byte *userKey,
unsigned int keylength,
const NameValuePairs ¶ms);
20 void TruncatedFinal(byte *mac,
size_t size);
23 static void Transform (word32 *digest,
const word32 *X,
bool last);
24 void HashEndianCorrectedBlock(
const word32 *data) {Transform(m_digest, data,
false);}
26 word32* StateBuf() {
return m_digest;}
interface for message authentication codes
to be inherited by keyed algorithms with fixed key length
interface for retrieving values given their names