diff options
author | lloyd <[email protected]> | 2008-09-14 03:42:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-14 03:42:57 +0000 |
commit | 9154d2e93c7fd4986c38bf62e12241db550dc420 (patch) | |
tree | 3b16e193e5bfc055c43105184d4590c761020604 /include | |
parent | de02c2fe44ad7ce5ead3967c22aa689da508eaa0 (diff) |
Pass a pointer to a HashFunction to the MGF1 constructor, and have that
pointer used over and over again in MGF1::mask.
Diffstat (limited to 'include')
-rw-r--r-- | include/mgf1.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/mgf1.h b/include/mgf1.h index 9e227dd93..c235821bf 100644 --- a/include/mgf1.h +++ b/include/mgf1.h @@ -11,15 +11,21 @@ namespace Botan { /************************************************* -* MGF1 * +* MGF1 (Mask Generation Function) * *************************************************/ class BOTAN_DLL MGF1 : public MGF { public: void mask(const byte[], u32bit, byte[], u32bit) const; - MGF1(const std::string&); + + /** + MGF1 constructor: takes ownership of hash + */ + MGF1(HashFunction* hash); + + ~MGF1(); private: - const std::string hash_name; + HashFunction* hash; }; } |