aboutsummaryrefslogtreecommitdiffstats
path: root/include/kdf.h
blob: ade4c926b3953e485c03a77b6c6cf88f1fc812fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*************************************************
* KDF Header File                                *
* (C) 1999-2007 The Botan Project                *
*************************************************/

#ifndef BOTAN_KDF_H__
#define BOTAN_KDF_H__

#include <botan/pk_util.h>

namespace Botan {

/*************************************************
* KDF1                                           *
*************************************************/
class KDF1 : public KDF
   {
   public:
      KDF1(const std::string&);
   private:
      SecureVector<byte> derive(u32bit, const byte[], u32bit,
                                const byte[], u32bit) const;

      const std::string hash_name;
   };

/*************************************************
* KDF2                                           *
*************************************************/
class KDF2 : public KDF
   {
   public:

      KDF2(const std::string&);
   private:
      SecureVector<byte> derive(u32bit, const byte[], u32bit,
                                const byte[], u32bit) const;
      const std::string hash_name;
   };

/*************************************************
* X9.42 PRF                                      *
*************************************************/
class X942_PRF : public KDF
   {
   public:
      X942_PRF(const std::string&);
   private:
      SecureVector<byte> derive(u32bit, const byte[], u32bit,
                                const byte[], u32bit) const;

      std::string key_wrap_oid;
   };

}

#endif