aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa1
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/emsa1
parentbc9e881d7c7a569664b5e753c12e4c8cbde06d2d (diff)
Remove lookup/libstate dependency on Lion, KDF1, KDF2, EMSA[1-4]
Diffstat (limited to 'src/pk_pad/emsa1')
-rw-r--r--src/pk_pad/emsa1/emsa1.cpp8
-rw-r--r--src/pk_pad/emsa1/emsa1.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/src/pk_pad/emsa1/emsa1.cpp b/src/pk_pad/emsa1/emsa1.cpp
index 15d53f6e5..b0c505939 100644
--- a/src/pk_pad/emsa1/emsa1.cpp
+++ b/src/pk_pad/emsa1/emsa1.cpp
@@ -101,12 +101,4 @@ bool EMSA1::verify(const MemoryRegion<byte>& coded,
}
}
-/*************************************************
-* EMSA1 Constructor *
-*************************************************/
-EMSA1::EMSA1(const std::string& hash_name) :
- hash(get_hash(hash_name))
- {
- }
-
}
diff --git a/src/pk_pad/emsa1/emsa1.h b/src/pk_pad/emsa1/emsa1.h
index c0eec8d17..2de2d325e 100644
--- a/src/pk_pad/emsa1/emsa1.h
+++ b/src/pk_pad/emsa1/emsa1.h
@@ -16,7 +16,7 @@ namespace Botan {
class BOTAN_DLL EMSA1 : public EMSA
{
public:
- EMSA1(const std::string&);
+ EMSA1(HashFunction* h) : hash(h) {}
~EMSA1() { delete hash; }
private:
void update(const byte[], u32bit);