Botan 1.10.17
kdf1.h
Go to the documentation of this file.
1/*
2* KDF1
3* (C) 1999-2007 Jack Lloyd
4*
5* Distributed under the terms of the Botan license
6*/
7
8#ifndef BOTAN_KDF1_H__
9#define BOTAN_KDF1_H__
10
11#include <botan/kdf.h>
12#include <botan/hash.h>
13
14namespace Botan {
15
16/**
17* KDF1, from IEEE 1363
18*/
19class BOTAN_DLL KDF1 : public KDF
20 {
21 public:
23 const byte secret[], size_t secret_len,
24 const byte P[], size_t P_len) const;
25
26 std::string name() const { return "KDF1(" + hash->name() + ")"; }
27 KDF* clone() const { return new KDF1(hash->clone()); }
28
29 KDF1(HashFunction* h) : hash(h) {}
30 KDF1(const KDF1& other) : KDF(), hash(other.hash->clone()) {}
31
32 ~KDF1() { delete hash; }
33 private:
34 HashFunction* hash;
35 };
36
37}
38
39#endif
~KDF1()
Definition kdf1.h:32
SecureVector< byte > derive(size_t, const byte secret[], size_t secret_len, const byte P[], size_t P_len) const
Definition kdf1.cpp:15
std::string name() const
Definition kdf1.h:26
KDF1(HashFunction *h)
Definition kdf1.h:29
KDF1(const KDF1 &other)
Definition kdf1.h:30
KDF * clone() const
Definition kdf1.h:27