Botan 3.5.0
Crypto and TLS for C&
|
#include <ecies.h>
Public Member Functions | |
bool | check_mode () const |
bool | cofactor_mode () const |
EC_Point_Format | compression_type () const |
std::unique_ptr< Cipher_Mode > | create_cipher (Cipher_Dir direction) const |
creates an instance of the data encryption method | |
std::unique_ptr< MessageAuthenticationCode > | create_mac () const |
creates an instance of the message authentication code | |
size_t | dem_keylen () const |
returns the length of the key used by the data encryption method | |
const EC_Group & | domain () const |
ECIES_System_Params (const EC_Group &domain, std::string_view kdf_spec, std::string_view dem_algo_spec, size_t dem_key_len, std::string_view mac_spec, size_t mac_key_len) | |
ECIES_System_Params (const EC_Group &domain, std::string_view kdf_spec, std::string_view dem_algo_spec, size_t dem_key_len, std::string_view mac_spec, size_t mac_key_len, EC_Point_Format compression_type, ECIES_Flags flags) | |
ECIES_System_Params (const ECIES_System_Params &)=default | |
const std::string & | kdf_spec () const |
size_t | mac_keylen () const |
returns the length of the key used by the message authentication code | |
bool | old_cofactor_mode () const |
ECIES_System_Params & | operator= (const ECIES_System_Params &)=delete |
size_t | secret_length () const |
bool | single_hash_mode () const |
~ECIES_System_Params () override=default | |
Botan::ECIES_System_Params::ECIES_System_Params | ( | const EC_Group & | domain, |
std::string_view | kdf_spec, | ||
std::string_view | dem_algo_spec, | ||
size_t | dem_key_len, | ||
std::string_view | mac_spec, | ||
size_t | mac_key_len ) |
domain | ec domain parameters of the involved ec keys |
kdf_spec | name of the key derivation function |
dem_algo_spec | name of the data encryption method |
dem_key_len | length of the key used for the data encryption method |
mac_spec | name of the message authentication code |
mac_key_len | length of the key used for the message authentication code |
Definition at line 196 of file ecies.cpp.
Botan::ECIES_System_Params::ECIES_System_Params | ( | const EC_Group & | domain, |
std::string_view | kdf_spec, | ||
std::string_view | dem_algo_spec, | ||
size_t | dem_key_len, | ||
std::string_view | mac_spec, | ||
size_t | mac_key_len, | ||
EC_Point_Format | compression_type, | ||
ECIES_Flags | flags ) |
domain | ec domain parameters of the involved ec keys |
kdf_spec | name of the key derivation function |
dem_algo_spec | name of the data encryption method |
dem_key_len | length of the key used for the data encryption method |
mac_spec | name of the message authentication code |
mac_key_len | length of the key used for the message authentication code |
compression_type | format of encoded keys (affects the secret derivation if single_hash_mode is used) |
flags | options, see documentation of ECIES_Flags |
Definition at line 177 of file ecies.cpp.
References Botan::ECIES_KA_Params::check_mode(), Botan::ECIES_KA_Params::cofactor_mode(), and Botan::ECIES_KA_Params::old_cofactor_mode().
|
default |
|
overridedefault |
|
inlineinherited |
Definition at line 91 of file ecies.h.
Referenced by Botan::ECIES_Decryptor::ECIES_Decryptor(), and ECIES_System_Params().
|
inlineinherited |
Definition at line 85 of file ecies.h.
Referenced by ECIES_System_Params().
|
inlineinherited |
Definition at line 93 of file ecies.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret(), and Botan::ECIES_Encryptor::ECIES_Encryptor().
std::unique_ptr< Cipher_Mode > Botan::ECIES_System_Params::create_cipher | ( | Cipher_Dir | direction | ) | const |
creates an instance of the data encryption method
Definition at line 215 of file ecies.cpp.
References Botan::Cipher_Mode::create_or_throw().
Referenced by Botan::ECIES_Decryptor::ECIES_Decryptor(), and Botan::ECIES_Encryptor::ECIES_Encryptor().
std::unique_ptr< MessageAuthenticationCode > Botan::ECIES_System_Params::create_mac | ( | ) | const |
creates an instance of the message authentication code
Definition at line 211 of file ecies.cpp.
References Botan::MessageAuthenticationCode::create_or_throw().
Referenced by Botan::ECIES_Decryptor::ECIES_Decryptor(), and Botan::ECIES_Encryptor::ECIES_Encryptor().
|
inline |
|
inlineinherited |
Definition at line 77 of file ecies.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret(), Botan::ECIES_Decryptor::ECIES_Decryptor(), and Botan::ECIES_Encryptor::ECIES_Encryptor().
|
inlineinherited |
Definition at line 95 of file ecies.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret().
|
inline |
|
inlineinherited |
Definition at line 87 of file ecies.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret(), and ECIES_System_Params().
|
delete |
|
inlineinherited |
Definition at line 79 of file ecies.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret().
|
inlineinherited |
Definition at line 81 of file ecies.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret().