|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <pubkey.h>
Public Member Functions | |
| size_t | agreed_value_size () const |
| SymmetricKey | derive_key (size_t key_len, const uint8_t in[], size_t in_len, const uint8_t params[], size_t params_len) const |
| SymmetricKey | derive_key (size_t key_len, const std::vector< uint8_t > &in, const uint8_t params[], size_t params_len) const |
| SymmetricKey | derive_key (size_t key_len, const uint8_t in[], size_t in_len, const std::string ¶ms="") const |
| SymmetricKey | derive_key (size_t key_len, const std::vector< uint8_t > &in, const std::string ¶ms="") const |
| PK_Key_Agreement & | operator= (PK_Key_Agreement &&) |
| PK_Key_Agreement & | operator= (const PK_Key_Agreement &)=delete |
| PK_Key_Agreement (const Private_Key &key, RandomNumberGenerator &rng, const std::string &kdf, const std::string &provider="") | |
| PK_Key_Agreement (PK_Key_Agreement &&) | |
| PK_Key_Agreement (const PK_Key_Agreement &)=delete | |
| ~PK_Key_Agreement () | |
| Botan::PK_Key_Agreement::PK_Key_Agreement | ( | const Private_Key & | key, |
| RandomNumberGenerator & | rng, | ||
| const std::string & | kdf, | ||
| const std::string & | provider = "" |
||
| ) |
Construct a PK Key Agreement.
| key | the key to use |
| rng | the random generator to use |
| kdf | name of the KDF to use (or 'Raw' for no KDF) |
| provider | the algo provider to use (or empty for default) |
Definition at line 188 of file pubkey.cpp.
References Botan::Public_Key::algo_name(), and Botan::Private_Key::create_key_agreement_op().
| Botan::PK_Key_Agreement::~PK_Key_Agreement | ( | ) |
Definition at line 198 of file pubkey.cpp.
| Botan::PK_Key_Agreement::PK_Key_Agreement | ( | PK_Key_Agreement && | other | ) |
Definition at line 209 of file pubkey.cpp.
|
delete |
| size_t Botan::PK_Key_Agreement::agreed_value_size | ( | ) | const |
Return the underlying size of the value that is agreed. If derive_key is called with a length of 0 with a "Raw" KDF, it will return a value of this size.
Definition at line 213 of file pubkey.cpp.
| SymmetricKey Botan::PK_Key_Agreement::derive_key | ( | size_t | key_len, |
| const uint8_t | in[], | ||
| size_t | in_len, | ||
| const uint8_t | params[], | ||
| size_t | params_len | ||
| ) | const |
Perform Key Agreement Operation
| key_len | the desired key output size |
| in | the other parties key |
| in_len | the length of in in bytes |
| params | extra derivation params |
| params_len | the length of params in bytes |
Definition at line 218 of file pubkey.cpp.
Referenced by botan_pk_op_key_agreement(), Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::ECIES_KA_Operation::derive_secret(), Botan::TLS::Callbacks::tls_dh_agree(), and Botan::TLS::Callbacks::tls_ecdh_agree().
|
inline |
Perform Key Agreement Operation
| key_len | the desired key output size |
| in | the other parties key |
| params | extra derivation params |
| params_len | the length of params in bytes |
Definition at line 474 of file pubkey.h.
|
inline |
Perform Key Agreement Operation
| key_len | the desired key output size |
| in | the other parties key |
| in_len | the length of in in bytes |
| params | extra derivation params |
Definition at line 490 of file pubkey.h.
References Botan::cast_char_ptr_to_uint8().
|
inline |
Perform Key Agreement Operation
| key_len | the desired key output size |
| in | the other parties key |
| params | extra derivation params |
Definition at line 505 of file pubkey.h.
References Botan::cast_char_ptr_to_uint8().
| PK_Key_Agreement & Botan::PK_Key_Agreement::operator= | ( | PK_Key_Agreement && | other | ) |
Definition at line 200 of file pubkey.cpp.
|
delete |
1.8.9.1