Botan  1.10.9
mgf1.h
Go to the documentation of this file.
1 /*
2 * MGF1
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_MGF1_H__
9 #define BOTAN_MGF1_H__
10 
11 #include <botan/kdf.h>
12 #include <botan/hash.h>
13 
14 namespace Botan {
15 
16 /**
17 * MGF1 from PKCS #1 v2.0
18 */
19 class BOTAN_DLL MGF1 : public MGF
20  {
21  public:
22  void mask(const byte[], size_t, byte[], size_t) const;
23 
24  /**
25  MGF1 constructor: takes ownership of hash
26  */
27  MGF1(HashFunction* hash);
28 
29  ~MGF1();
30  private:
31  HashFunction* hash;
32  };
33 
34 }
35 
36 #endif
Definition: kdf.h:94
unsigned char byte
Definition: types.h:22