aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa1
diff options
context:
space:
mode:
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);