Botan
1.10.17
src
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
* Distributed under the terms of the Botan license
6
*/
7
8
#ifndef BOTAN_ANSI_X942_PRF_H__
9
#define BOTAN_ANSI_X942_PRF_H__
10
11
#include <botan/kdf.h>
12
13
namespace
Botan
{
14
15
/**
16
* PRF from ANSI X9.42
17
*/
18
class
BOTAN_DLL
X942_PRF
:
public
KDF
19
{
20
public
:
21
SecureVector<byte>
derive
(
size_t
,
const
byte
[],
size_t
,
22
const
byte
[],
size_t
)
const
;
23
24
std::string
name
()
const
{
return
"X942_PRF("
+ key_wrap_oid +
")"
; }
25
KDF
*
clone
()
const
{
return
new
X942_PRF
(key_wrap_oid); }
26
27
X942_PRF
(
const
std::string& oid);
28
private
:
29
std::string key_wrap_oid;
30
};
31
32
}
33
34
#endif
Botan::KDF
Definition
kdf.h:21
Botan::SecureVector
Definition
secmem.h:329
Botan::X942_PRF
Definition
prf_x942.h:19
Botan::X942_PRF::name
std::string name() const
Definition
prf_x942.h:24
Botan::X942_PRF::derive
SecureVector< byte > derive(size_t, const byte[], size_t, const byte[], size_t) const
Definition
prf_x942.cpp:35
Botan::X942_PRF::clone
KDF * clone() const
Definition
prf_x942.h:25
Botan::X942_PRF::X942_PRF
X942_PRF(const std::string &oid)
Definition
prf_x942.cpp:84
Botan
Definition
algo_base.h:14
Generated by
1.18.0