summaryrefslogtreecommitdiff
path: root/panama.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-03-09 12:42:38 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-03-09 12:42:38 +0000
commit78145b8d5542c849728e58699d5186662b7d99c6 (patch)
tree4c44dc8e642aa300675a99eef4b0a805f49bdae3 /panama.h
parent16e033d971d0ea878f2b88bf36c10ca1c8ccba5e (diff)
downloadcryptopp-78145b8d5542c849728e58699d5186662b7d99c6.tar.gz
implement AlgorithmName() for HAVAL and PanamaHash
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@151 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'panama.h')
-rw-r--r--panama.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/panama.h b/panama.h
index e1f73f5..2544f3b 100644
--- a/panama.h
+++ b/panama.h
@@ -26,13 +26,14 @@ protected:
/// <a href="http://www.weidai.com/scan-mirror/md.html#Panama">Panama Hash</a>
template <class B = LittleEndian>
-class PanamaHash : protected Panama<B>, public IteratedHash<word32, NativeByteOrder, 32>
+class PanamaHash : protected Panama<B>, public AlgorithmImpl<IteratedHash<word32, NativeByteOrder, 32>, PanamaHash<B> >
{
public:
enum {DIGESTSIZE = 32};
PanamaHash() {Panama<B>::Reset();}
unsigned int DigestSize() const {return DIGESTSIZE;}
void TruncatedFinal(byte *hash, unsigned int size);
+ static const char * StaticAlgorithmName() {return "Panama";}
protected:
void Init() {Panama<B>::Reset();}