Botan
1.10.9
|
#include <prf_x942.h>
Public Member Functions | |
void | clear () |
KDF * | clone () const |
SecureVector< byte > | derive (size_t, const byte[], size_t, const byte[], size_t) const |
SecureVector< byte > | derive_key (size_t key_len, const MemoryRegion< byte > &secret, const std::string &salt="") const |
SecureVector< byte > | derive_key (size_t key_len, const MemoryRegion< byte > &secret, const MemoryRegion< byte > &salt) const |
SecureVector< byte > | derive_key (size_t key_len, const MemoryRegion< byte > &secret, const byte salt[], size_t salt_len) const |
SecureVector< byte > | derive_key (size_t key_len, const byte secret[], size_t secret_len, const std::string &salt="") const |
SecureVector< byte > | derive_key (size_t key_len, const byte secret[], size_t secret_len, const byte salt[], size_t salt_len) const |
std::string | name () const |
X942_PRF (const std::string &oid) | |
PRF from ANSI X9.42
Definition at line 18 of file prf_x942.h.
Botan::X942_PRF::X942_PRF | ( | const std::string & | oid | ) |
Definition at line 84 of file prf_x942.cpp.
References Botan::OIDS::have_oid(), Botan::OIDS::lookup(), and oid.
|
inlinevirtualinherited |
|
inlinevirtual |
|
virtual |
Implements Botan::KDF.
Definition at line 35 of file prf_x942.cpp.
References Botan::PEM_Code::encode(), Botan::Buffered_Computation::final(), Botan::OCTET_STRING, Botan::SEQUENCE, Botan::MemoryRegion< T >::size(), and Botan::Buffered_Computation::update().
|
inherited |
Derive a key
key_len | the desired output length in bytes |
secret | the secret input |
salt | a diversifier |
Definition at line 15 of file kdf.cpp.
References Botan::MemoryRegion< T >::size().
Referenced by Botan::KDF::derive_key(), and Botan::PK_Key_Agreement::derive_key().
|
inherited |
Derive a key
key_len | the desired output length in bytes |
secret | the secret input |
salt | a diversifier |
Definition at line 38 of file kdf.cpp.
References Botan::KDF::derive_key(), and Botan::MemoryRegion< T >::size().
|
inherited |
Derive a key
key_len | the desired output length in bytes |
secret | the secret input |
salt | a diversifier |
salt_len | size of salt in bytes |
Definition at line 27 of file kdf.cpp.
References Botan::KDF::derive_key(), and Botan::MemoryRegion< T >::size().
|
inherited |
Derive a key
key_len | the desired output length in bytes |
secret | the secret input |
secret_len | size of secret in bytes |
salt | a diversifier |
Definition at line 49 of file kdf.cpp.
References Botan::KDF::derive_key().
|
inherited |
|
inlinevirtual |
Implements Botan::Algorithm.
Definition at line 24 of file prf_x942.h.