Botan 3.7.1
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 234 of file ecies.cpp.
References Botan::ECIES_KA_Params::domain(), ECIES_System_Params(), Botan::ECIES_KA_Params::kdf_spec(), Botan::None, and Botan::Uncompressed.
Referenced by ECIES_System_Params(), ECIES_System_Params(), and operator=().
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 215 of file ecies.cpp.
References Botan::ECIES_KA_Params::check_mode(), Botan::ECIES_KA_Params::cofactor_mode(), Botan::ECIES_KA_Params::compression_type(), Botan::ECIES_KA_Params::domain(), Botan::ECIES_KA_Params::ECIES_KA_Params(), Botan::ECIES_KA_Params::kdf_spec(), and Botan::ECIES_KA_Params::old_cofactor_mode().
|
default |
References ECIES_System_Params().
|
overridedefault |
References create_cipher(), and create_mac().
|
inlineinherited |
Definition at line 96 of file ecies.h.
References Botan::CheckMode.
Referenced by Botan::ECIES_Decryptor::ECIES_Decryptor(), and Botan::ECIES_System_Params::ECIES_System_Params().
|
inlineinherited |
Definition at line 90 of file ecies.h.
References Botan::CofactorMode.
Referenced by Botan::ECIES_System_Params::ECIES_System_Params().
|
inlineinherited |
Definition at line 98 of file ecies.h.
Referenced by Botan::ECIES_Encryptor::ECIES_Encryptor(), ECIES_KA_Params(), and Botan::ECIES_System_Params::ECIES_System_Params().
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 253 of file ecies.cpp.
References Botan::Cipher_Mode::create_or_throw().
Referenced by ~ECIES_System_Params().
std::unique_ptr< MessageAuthenticationCode > Botan::ECIES_System_Params::create_mac | ( | ) | const |
creates an instance of the message authentication code
Definition at line 249 of file ecies.cpp.
References Botan::MessageAuthenticationCode::create_or_throw().
Referenced by ~ECIES_System_Params().
|
inline |
|
inlineinherited |
Definition at line 82 of file ecies.h.
Referenced by ECIES_KA_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), and Botan::ECIES_System_Params::ECIES_System_Params().
|
inlineinherited |
Definition at line 100 of file ecies.h.
Referenced by ECIES_KA_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), and Botan::ECIES_System_Params::ECIES_System_Params().
|
inline |
|
inlineinherited |
Definition at line 92 of file ecies.h.
References Botan::OldCofactorMode.
Referenced by Botan::ECIES_System_Params::ECIES_System_Params().
|
delete |
References ECIES_System_Params().
|
inlineinherited |
|
inlineinherited |
Definition at line 86 of file ecies.h.
References Botan::SingleHashMode.