summaryrefslogtreecommitdiff
path: root/cbcmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'cbcmac.h')
-rw-r--r--cbcmac.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cbcmac.h b/cbcmac.h
index b15c7287..a05d5c6d 100644
--- a/cbcmac.h
+++ b/cbcmac.h
@@ -35,8 +35,8 @@ class CBC_MAC : public MessageAuthenticationCodeImpl<CBC_MAC_Base, CBC_MAC<T> >,
{
public:
CBC_MAC() {}
- CBC_MAC(const byte *key, unsigned int length=DEFAULT_KEYLENGTH)
- {SetKey(key, length);}
+ CBC_MAC(const byte *key, unsigned int length=SameKeyLengthAs<T>::DEFAULT_KEYLENGTH)
+ {this->SetKey(key, length);}
static std::string StaticAlgorithmName() {return std::string("CBC-MAC(") + T::StaticAlgorithmName() + ")";}