aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/mgf1/mgf1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdf/mgf1/mgf1.h')
-rw-r--r--src/kdf/mgf1/mgf1.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/kdf/mgf1/mgf1.h b/src/kdf/mgf1/mgf1.h
new file mode 100644
index 000000000..c235821bf
--- /dev/null
+++ b/src/kdf/mgf1/mgf1.h
@@ -0,0 +1,33 @@
+/*************************************************
+* MGF1 Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_MGF1_H__
+#define BOTAN_MGF1_H__
+
+#include <botan/pk_util.h>
+
+namespace Botan {
+
+/*************************************************
+* MGF1 (Mask Generation Function) *
+*************************************************/
+class BOTAN_DLL MGF1 : public MGF
+ {
+ public:
+ void mask(const byte[], u32bit, byte[], u32bit) const;
+
+ /**
+ MGF1 constructor: takes ownership of hash
+ */
+ MGF1(HashFunction* hash);
+
+ ~MGF1();
+ private:
+ HashFunction* hash;
+ };
+
+}
+
+#endif