Botan 1.10.17
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
14namespace Botan {
15
16/**
17* MGF1 from PKCS #1 v2.0
18*/
19class 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
MGF1(HashFunction *hash)
Definition mgf1.cpp:42
void mask(const byte[], size_t, byte[], size_t) const
Definition mgf1.cpp:19