aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa3
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/emsa3
parentbc9e881d7c7a569664b5e753c12e4c8cbde06d2d (diff)
Remove lookup/libstate dependency on Lion, KDF1, KDF2, EMSA[1-4]
Diffstat (limited to 'src/pk_pad/emsa3')
-rw-r--r--src/pk_pad/emsa3/emsa3.cpp4
-rw-r--r--src/pk_pad/emsa3/emsa3.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/pk_pad/emsa3/emsa3.cpp b/src/pk_pad/emsa3/emsa3.cpp
index 255366503..060dd40d8 100644
--- a/src/pk_pad/emsa3/emsa3.cpp
+++ b/src/pk_pad/emsa3/emsa3.cpp
@@ -5,7 +5,6 @@
#include <botan/emsa3.h>
#include <botan/hash_id.h>
-#include <botan/lookup.h>
namespace Botan {
@@ -88,9 +87,8 @@ bool EMSA3::verify(const MemoryRegion<byte>& coded,
/*************************************************
* EMSA3 Constructor *
*************************************************/
-EMSA3::EMSA3(const std::string& hash_name)
+EMSA3::EMSA3(HashFunction* hash_in) : hash(hash_in)
{
- hash = get_hash(hash_name);
hash_id = pkcs_hash_id(hash->name());
}
diff --git a/src/pk_pad/emsa3/emsa3.h b/src/pk_pad/emsa3/emsa3.h
index bdaec5c42..7c0d87147 100644
--- a/src/pk_pad/emsa3/emsa3.h
+++ b/src/pk_pad/emsa3/emsa3.h
@@ -16,7 +16,7 @@ namespace Botan {
class BOTAN_DLL EMSA3 : public EMSA
{
public:
- EMSA3(const std::string&);
+ EMSA3(HashFunction* hash);
~EMSA3() { delete hash; }
private:
void update(const byte[], u32bit);