aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/eme1/eme1.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-30 05:05:31 +0000
committerlloyd <[email protected]>2008-09-30 05:05:31 +0000
commitbc9e881d7c7a569664b5e753c12e4c8cbde06d2d (patch)
tree591c392a70a2dcd8459100ddb59f280b6b5bb905 /src/pk_pad/eme1/eme1.h
parent42e3fe73cb63fe92510964d60bfccded65d08c36 (diff)
Remove dependency on lookup.h from EME1. Now hardcoded to use MGF1 (the
only implemented MGF in Botan, and the only standardized MGF I even know of) with the same hash as generated Phash (you would always want this anyway).
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,