diff options
Diffstat (limited to 'src/pk_pad/emsa4/emsa4.h')
-rw-r--r-- | src/pk_pad/emsa4/emsa4.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pk_pad/emsa4/emsa4.h b/src/pk_pad/emsa4/emsa4.h index 8f2505281..dded20ec3 100644 --- a/src/pk_pad/emsa4/emsa4.h +++ b/src/pk_pad/emsa4/emsa4.h @@ -17,8 +17,9 @@ namespace Botan { class BOTAN_DLL EMSA4 : public EMSA { public: - EMSA4(const std::string&, const std::string&); - EMSA4(const std::string&, const std::string&, u32bit); + EMSA4(HashFunction*); + EMSA4(HashFunction*, u32bit); + ~EMSA4() { delete hash; delete mgf; } private: void update(const byte[], u32bit); @@ -29,7 +30,7 @@ class BOTAN_DLL EMSA4 : public EMSA bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&, u32bit) throw(); - const u32bit SALT_SIZE; + u32bit SALT_SIZE; HashFunction* hash; const MGF* mgf; }; |