aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/eme1/eme1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pk_pad/eme1/eme1.h')
-rw-r--r--src/pk_pad/eme1/eme1.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pk_pad/eme1/eme1.h b/src/pk_pad/eme1/eme1.h
index af8530470..e33b0e917 100644
--- a/src/pk_pad/eme1/eme1.h
+++ b/src/pk_pad/eme1/eme1.h
@@ -19,7 +19,13 @@ class BOTAN_DLL EME1 : public EME
public:
u32bit maximum_input_size(u32bit) const;
- EME1(const std::string&, const std::string&, const std::string& = "");
+ /**
+ EME1 constructor. Hash will be deleted by ~EME1 (when mgf is deleted)
+
+ P is an optional label. Normally empty.
+ */
+ EME1(HashFunction* hash, const std::string& P = "");
+
~EME1() { delete mgf; }
private:
SecureVector<byte> pad(const byte[], u32bit, u32bit,