summaryrefslogtreecommitdiff
path: root/hmac.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-03-09 12:46:29 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-03-09 12:46:29 +0000
commit1c501761103d21d7c6c186cd0f807e6c6aee6fad (patch)
tree16a009ac2d52c6bdd5c80c2c2354811fed43274e /hmac.h
parent78145b8d5542c849728e58699d5186662b7d99c6 (diff)
downloadcryptopp-1c501761103d21d7c6c186cd0f807e6c6aee6fad.tar.gz
base HMAC::AlgorithmName() on AlgorithmName() of hash function instead of StaticAlgorithmName()
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@152 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'hmac.h')
-rw-r--r--hmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hmac.h b/hmac.h
index ff834aa..f8703ba 100644
--- a/hmac.h
+++ b/hmac.h
@@ -47,6 +47,7 @@ public:
{SetKey(key, length);}
static std::string StaticAlgorithmName() {return std::string("HMAC(") + T::StaticAlgorithmName() + ")";}
+ std::string AlgorithmName() const {return std::string("HMAC(") + m_hash.AlgorithmName() + ")";}
private:
HashTransformation & AccessHash() {return m_hash;}