|
| 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 &group, 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 point_format, ECIES_Flags flags) |
| | ECIES_System_Params (const EC_Group &group, 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 point_format=EC_Point_Format::Uncompressed, bool single_hash_mode=false) |
| | ECIES_System_Params (const ECIES_System_Params &)=default |
| | ECIES_System_Params (ECIES_System_Params &&)=default |
| const EC_Group & | group () const |
| const std::string & | kdf () const |
| 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 |
| ECIES_System_Params & | operator= (ECIES_System_Params &&)=delete |
| EC_Point_Format | point_format () const |
| size_t | secret_length () const |
| bool | single_hash_mode () const |
| | ~ECIES_System_Params () override=default |
Definition at line 155 of file ecies.h.
| Botan::ECIES_System_Params::ECIES_System_Params |
( |
const EC_Group & | group, |
|
|
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 | point_format, |
|
|
ECIES_Flags | flags ) |
- Parameters
-
| group | 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 |
| point_format | format of encoded keys (affects the secret derivation if single_hash_mode is used) |
| flags | options, see documentation of ECIES_Flags |
This constructor makes sense only if you are using the CofactorMode or OldCofactorMode flags. Support for cofactors in EC_Group is deprecated and will be removed in Botan4.
TODO(Botan4) remove this constructor when cofactor support is removed
Definition at line 237 of file ecies.cpp.
244 :
246 m_dem_spec(dem_algo_spec),
247 m_dem_keylen(dem_key_len),
248 m_mac_spec(mac_spec),
249 m_mac_keylen(mac_key_len) {
250
252 throw Invalid_Argument("ECIES: only one of cofactor_mode, old_cofactor_mode and check_mode can be set");
253 }
254}
bool old_cofactor_mode() const
bool cofactor_mode() const
References Botan::ECIES_KA_Params::check_mode(), Botan::ECIES_KA_Params::cofactor_mode(), Botan::ECIES_KA_Params::ECIES_KA_Params(), Botan::ECIES_KA_Params::group(), Botan::ECIES_KA_Params::kdf(), Botan::ECIES_KA_Params::old_cofactor_mode(), and Botan::ECIES_KA_Params::point_format().