summaryrefslogtreecommitdiff
path: root/panama.h
diff options
context:
space:
mode:
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();}