Botan
2.19.3
Crypto and TLS for C&
src
lib
kdf
prf_x942
prf_x942.h
Go to the documentation of this file.
1
/*
2
* X9.42 PRF
3
* (C) 1999-2007 Jack Lloyd
4
*
5
* Botan is released under the Simplified BSD License (see license.txt)
6
*/
7
8
#ifndef BOTAN_ANSI_X942_PRF_H_
9
#define BOTAN_ANSI_X942_PRF_H_
10
11
#include <botan/kdf.h>
12
#include <botan/asn1_obj.h>
13
14
BOTAN_FUTURE_INTERNAL_HEADER
(prf_x942.h)
15
16
namespace
Botan
{
17
18
/**
19
* PRF from ANSI X9.42
20
*/
21
class
BOTAN_PUBLIC_API
(2,0)
X942_PRF
final
:
public
KDF
22
{
23
public
:
24
std::string
name
()
const override
;
25
26
KDF
*
clone
()
const override
{
return
new
X942_PRF
(m_key_wrap_oid); }
27
28
size_t
kdf
(uint8_t key[],
size_t
key_len,
29
const
uint8_t secret[],
size_t
secret_len,
30
const
uint8_t salt[],
size_t
salt_len
,
31
const
uint8_t label[],
size_t
label_len)
const override
;
32
33
explicit
X942_PRF
(
const
std::string& oid) : m_key_wrap_oid(
OID
::from_string(oid)) {}
34
35
explicit
X942_PRF
(
const
OID
& oid) : m_key_wrap_oid(oid) {}
36
private
:
37
OID
m_key_wrap_oid;
38
};
39
40
}
41
42
#endif
Botan::KDF
Definition
kdf.h:21
Botan::KDF::kdf
virtual size_t 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 =0
Botan::KDF::name
virtual std::string name() const =0
Botan::OID
Definition
asn1_obj.h:194
Botan::X942_PRF
Definition
prf_x942.h:22
Botan::X942_PRF::clone
KDF * clone() const override
Definition
prf_x942.h:26
Botan::X942_PRF::X942_PRF
X942_PRF(const OID &oid)
Definition
prf_x942.h:35
Botan::X942_PRF::X942_PRF
X942_PRF(const std::string &oid)
Definition
prf_x942.h:33
final
int(* final)(unsigned char *, CTX *)
Definition
commoncrypto_hash.cpp:29
BOTAN_PUBLIC_API
#define BOTAN_PUBLIC_API(maj, min)
Definition
compiler.h:31
BOTAN_FUTURE_INTERNAL_HEADER
#define BOTAN_FUTURE_INTERNAL_HEADER(hdr)
Definition
compiler.h:136
Botan
Definition
alg_id.cpp:13
salt_len
size_t salt_len
Definition
x509_obj.cpp:25
Generated by
1.9.8