1 #ifndef CRYPTOPP_TRUNHASH_H 2 #define CRYPTOPP_TRUNHASH_H 36 {
m_hm.Update(input, length);}
39 {
m_hm.TruncatedFinal(digest, digestSize);}
41 {
return m_hm.TruncatedVerify(digest, digestLength);}
construct new HashModule with smaller DigestSize() from existing one
#define NAMESPACE_BEGIN(x)
unsigned int DigestSize() const
Provides the digest size of the hash.
TruncatedHashTemplate(size_t digestSize)
bool TruncatedVerify(const byte *digest, size_t digestLength)
Verifies the hash of the current message.
Abstract base classes that provide a uniform interface to this library.
void TruncatedFinal(byte *digest, size_t digestSize)
Computes the hash of the current message.
bool TruncatedVerify(const byte *digest, size_t digestLength)
Verifies the hash of the current message.
TruncatedHashTemplate(const byte *key, size_t keyLength, unsigned int digestSize)
void Restart()
Restart the hash.
unsigned int DigestSize() const
Provides the digest size of the hash.
unsigned int m_digestSize
TruncatedHashTemplate(T hm, unsigned int digestSize)
TruncatedHashTemplate< HashTransformation & > TruncatedHashModule
void Update(const byte *input, size_t length)
Updates a hash with additional input.
#define CRYPTOPP_UNUSED(x)
void Update(const byte *input, size_t length)
Updates a hash with additional input.
void TruncatedFinal(byte *digest, size_t digestSize)
Computes the hash of the current message.