#include <pk_ops_impl.h>
Definition at line 103 of file pk_ops_impl.h.
◆ ~Key_Agreement_with_KDF()
Botan::PK_Ops::Key_Agreement_with_KDF::~Key_Agreement_with_KDF |
( |
| ) |
|
|
overridedefault |
◆ Key_Agreement_with_KDF()
Botan::PK_Ops::Key_Agreement_with_KDF::Key_Agreement_with_KDF |
( |
std::string_view | kdf | ) |
|
|
explicitprotected |
Definition at line 51 of file pk_ops.cpp.
51 {
52 if(kdf != "Raw") {
54 }
55}
static std::unique_ptr< KDF > create_or_throw(std::string_view algo_spec, std::string_view provider="")
References Botan::KDF::create_or_throw().
◆ agree()
secure_vector< uint8_t > Botan::PK_Ops::Key_Agreement_with_KDF::agree |
( |
size_t | key_len, |
|
|
const uint8_t | other_key[], |
|
|
size_t | other_key_len, |
|
|
const uint8_t | salt[], |
|
|
size_t | salt_len ) |
|
overridevirtual |
Implements Botan::PK_Ops::Key_Agreement.
Definition at line 57 of file pk_ops.cpp.
58 {
59 if(salt_len > 0 && m_kdf == nullptr) {
60 throw Invalid_Argument("PK_Key_Agreement::derive_key requires a KDF to use a salt");
61 }
62
64 if(m_kdf) {
65 return m_kdf->derive_key(key_len, z, salt, salt_len);
66 }
67 return z;
68}
std::vector< T, secure_allocator< T > > secure_vector
◆ agreed_value_size()
virtual size_t Botan::PK_Ops::Key_Agreement::agreed_value_size |
( |
| ) |
const |
|
pure virtualinherited |
The documentation for this class was generated from the following files: