Botan: src/kdf/kdf1/kdf1.h Source File

Botan 1.10.12

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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
14 namespace Botan {
15
16 /**
17 * KDF1, from IEEE 1363
18 */
19 class BOTAN_DLL KDF1 : public KDF
20 {
21 public:
22 SecureVector<byte> derive(size_t,
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
Botan::KDF1::name
std::string name() const
Definition: kdf1.h:26
Botan::KDF1
Definition: kdf1.h:19
Botan::KDF1::KDF1
KDF1(const KDF1 &other)
Definition: kdf1.h:30
Botan::KDF1::KDF1
KDF1(HashFunction *h)
Definition: kdf1.h:29
Botan::byte
unsigned char byte
Definition: types.h:22
h
macro_name HP_ACC binary_name aCC compile_option c output_to_option o add_include_dir_option I add_lib_dir_option L add_lib_option l lib_opt_flags O2 check_opt_flags O2 debug_flags g no_debug_flags lang_flags AA ext eh z warning_flags shared_flags Z makefile_style unix< mach_abi_linking > hppa1 DAportable hppa1 DA1 hppa2 DA2</mach_abi_linking >< so_link_flags > h
Definition: hpcc.txt:28
Botan::KDF1::clone
KDF * clone() const
Definition: kdf1.h:27
Botan
Definition: algo_base.h:14
Botan::HashFunction
Definition: hash.h:20
Botan::KDF
Definition: kdf.h:20
Botan::KDF1::~KDF1
~KDF1()
Definition: kdf1.h:32
Botan::SecureVector< byte >