aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa2/emsa2.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-30 05:41:04 +0000
committerlloyd <[email protected]>2008-09-30 05:41:04 +0000
commit75ef07ee5378341adf054bd729232167c73e9e47 (patch)
tree7c84c43a431f0313b4f08b4267ff066650948bb0 /src/pk_pad/emsa2/emsa2.cpp
parentbc9e881d7c7a569664b5e753c12e4c8cbde06d2d (diff)
Remove lookup/libstate dependency on Lion, KDF1, KDF2, EMSA[1-4]
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());