Botan
3.6.1
Crypto and TLS for C&
src
lib
kdf
kdf1
kdf1.h
Go to the documentation of this file.
1
/*
2
* KDF1
3
* (C) 1999-2007 Jack Lloyd
4
*
5
* Botan is released under the Simplified BSD License (see license.txt)
6
*/
7
8
#ifndef BOTAN_KDF1_H_
9
#define BOTAN_KDF1_H_
10
11
#include <botan/hash.h>
12
#include <botan/kdf.h>
13
14
namespace
Botan
{
15
16
/**
17
* KDF1, from IEEE 1363
18
*/
19
class
KDF1
final
:
public
KDF
{
20
public
:
21
std::string
name
()
const override
;
22
23
std::unique_ptr<KDF>
new_object
()
const override
;
24
25
void
kdf
(uint8_t key[],
26
size_t
key_len,
27
const
uint8_t secret[],
28
size_t
secret_len,
29
const
uint8_t salt[],
30
size_t
salt_len,
31
const
uint8_t label[],
32
size_t
label_len)
const override
;
33
34
/**
35
* @param hash function to use
36
*/
37
explicit
KDF1
(std::unique_ptr<HashFunction> hash) : m_hash(std::move(hash)) {}
38
39
private
:
40
std::unique_ptr<HashFunction> m_hash;
41
};
42
43
}
// namespace Botan
44
45
#endif
Botan::KDF1
Definition
kdf1.h:19
Botan::KDF1::kdf
void kdf(uint8_t key[], size_t key_len, const uint8_t secret[], size_t secret_len, const uint8_t salt[], size_t salt_len, const uint8_t label[], size_t label_len) const override
Definition
kdf1.cpp:23
Botan::KDF1::new_object
std::unique_ptr< KDF > new_object() const override
Definition
kdf1.cpp:19
Botan::KDF1::name
std::string name() const override
Definition
kdf1.cpp:15
Botan::KDF1::KDF1
KDF1(std::unique_ptr< HashFunction > hash)
Definition
kdf1.h:37
Botan::KDF
Definition
kdf.h:24
final
int(* final)(unsigned char *, CTX *)
Definition
commoncrypto_hash.cpp:29
Botan
Definition
alg_id.cpp:13
Generated by
1.12.0