monotone

monotone Mtn Source Tree

Root/botan/kdf.h

1/*************************************************
2* KDF Header File *
3* (C) 1999-2006 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_KDF_H__
7#define BOTAN_KDF_H__
8
9#include <botan/pk_util.h>
10
11namespace Botan {
12
13/*************************************************
14* KDF1 *
15*************************************************/
16class KDF1 : public KDF
17 {
18 public:
19 KDF1(const std::string&);
20 private:
21 SecureVector<byte> derive(u32bit, const byte[], u32bit,
22 const byte[], u32bit) const;
23
24 const std::string hash_name;
25 };
26
27/*************************************************
28* KDF2 *
29*************************************************/
30class KDF2 : public KDF
31 {
32 public:
33
34 KDF2(const std::string&);
35 private:
36 SecureVector<byte> derive(u32bit, const byte[], u32bit,
37 const byte[], u32bit) const;
38 const std::string hash_name;
39 };
40
41/*************************************************
42* X9.42 PRF *
43*************************************************/
44class X942_PRF : public KDF
45 {
46 public:
47 X942_PRF(const std::string&);
48 private:
49 SecureVector<byte> derive(u32bit, const byte[], u32bit,
50 const byte[], u32bit) const;
51
52 std::string key_wrap_oid;
53 };
54
55}
56
57#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status