aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa2/emsa2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pk_pad/emsa2/emsa2.cpp')
-rw-r--r--src/pk_pad/emsa2/emsa2.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pk_pad/emsa2/emsa2.cpp b/src/pk_pad/emsa2/emsa2.cpp
index 9f5f4b277..5ecbf005c 100644
--- a/src/pk_pad/emsa2/emsa2.cpp
+++ b/src/pk_pad/emsa2/emsa2.cpp
@@ -5,7 +5,6 @@
#include <botan/emsa2.h>
#include <botan/hash_id.h>
-#include <botan/lookup.h>
namespace Botan {
@@ -94,9 +93,8 @@ bool EMSA2::verify(const MemoryRegion<byte>& coded,
/*************************************************
* EMSA2 Constructor *
*************************************************/
-EMSA2::EMSA2(const std::string& hash_name)
+EMSA2::EMSA2(HashFunction* hash_in) : hash(hash_in)
{
- hash = get_hash(hash_name);
empty_hash = hash->final();
hash_id = ieee1363_hash_id(hash->name());