aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/sha1_amd64/sha1_amd64.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash/sha1_amd64/sha1_amd64.h')
-rw-r--r--src/hash/sha1_amd64/sha1_amd64.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/hash/sha1_amd64/sha1_amd64.h b/src/hash/sha1_amd64/sha1_amd64.h
index 91cbc8293..891b3a869 100644
--- a/src/hash/sha1_amd64/sha1_amd64.h
+++ b/src/hash/sha1_amd64/sha1_amd64.h
@@ -6,27 +6,19 @@
#ifndef BOTAN_SHA_160_AMD64_H__
#define BOTAN_SHA_160_AMD64_H__
-#include <botan/mdx_hash.h>
+#include <botan/sha160.h>
namespace Botan {
/*************************************************
* SHA-160 *
*************************************************/
-class BOTAN_DLL SHA_160_AMD64 : public MDx_HashFunction
+class BOTAN_DLL SHA_160_AMD64 : public SHA_160
{
public:
- void clear() throw();
- std::string name() const { return "SHA-160"; }
HashFunction* clone() const { return new SHA_160_AMD64; }
-
- SHA_160_AMD64() : MDx_HashFunction(20, 64, true, true) { clear(); }
private:
void hash(const byte[]);
- void copy_out(byte[]);
-
- SecureBuffer<u32bit, 5> digest;
- SecureBuffer<u32bit, 80> W;
};
}