summaryrefslogtreecommitdiff
path: root/cbcmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'cbcmac.h')
-rw-r--r--cbcmac.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cbcmac.h b/cbcmac.h
index 2fc13e54..d4745b6b 100644
--- a/cbcmac.h
+++ b/cbcmac.h
@@ -1,3 +1,9 @@
+// cbcmac.h - written and placed in the public domain by Wei Dai
+
+//! \file
+//! \headerfile cbcmac.h
+//! \brief Classes for CBC MAC
+
#ifndef CRYPTOPP_CBCMAC_H
#define CRYPTOPP_CBCMAC_H
@@ -10,7 +16,7 @@ NAMESPACE_BEGIN(CryptoPP)
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CBC_MAC_Base : public MessageAuthenticationCode
{
public:
- CBC_MAC_Base() {}
+ CBC_MAC_Base() : m_counter(0) {}
void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs &params);
void Update(const byte *input, size_t length);