#include <ecies.h>
|
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 |
|
Definition at line 105 of file ecies.h.
◆ ECIES_System_Params() [1/3]
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 ) |
- Parameters
-
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 190 of file ecies.cpp.
195 :
198 dem_algo_spec,
199 dem_key_len,
200 mac_spec,
201 mac_key_len,
const std::string & kdf_spec() const
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() [2/3]
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 ) |
- Parameters
-
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 171 of file ecies.cpp.
178 :
180 m_dem_spec(dem_algo_spec),
181 m_dem_keylen(dem_key_len),
182 m_mac_spec(mac_spec),
183 m_mac_keylen(mac_key_len) {
184
186 throw Invalid_Argument("ECIES: only one of cofactor_mode, old_cofactor_mode and check_mode can be set");
187 }
188}
ECIES_KA_Params(const EC_Group &domain, std::string_view kdf_spec, size_t length, EC_Point_Format compression_type, ECIES_Flags flags)
bool old_cofactor_mode() const
EC_Point_Format compression_type() const
bool cofactor_mode() const
References Botan::ECIES_KA_Params::check_mode(), Botan::ECIES_KA_Params::cofactor_mode(), and Botan::ECIES_KA_Params::old_cofactor_mode().
◆ ECIES_System_Params() [3/3]
◆ ~ECIES_System_Params()
Botan::ECIES_System_Params::~ECIES_System_Params |
( |
| ) |
|
|
overridedefault |
◆ check_mode()
bool Botan::ECIES_KA_Params::check_mode |
( |
| ) |
const |
|
inlineinherited |
◆ cofactor_mode()
bool Botan::ECIES_KA_Params::cofactor_mode |
( |
| ) |
const |
|
inlineinherited |
Definition at line 85 of file ecies.h.
@ CofactorMode
(decryption only) if set: use cofactor multiplication during (ecdh) key agreement
Referenced by ECIES_System_Params().
◆ compression_type()
◆ create_cipher()
◆ create_mac()
◆ dem_keylen()
size_t Botan::ECIES_System_Params::dem_keylen |
( |
| ) |
const |
|
inline |
returns the length of the key used by the data encryption method
Definition at line 152 of file ecies.h.
152{ return m_dem_keylen; }
◆ domain()
const EC_Group & Botan::ECIES_KA_Params::domain |
( |
| ) |
const |
|
inlineinherited |
◆ kdf_spec()
const std::string & Botan::ECIES_KA_Params::kdf_spec |
( |
| ) |
const |
|
inlineinherited |
◆ mac_keylen()
size_t Botan::ECIES_System_Params::mac_keylen |
( |
| ) |
const |
|
inline |
returns the length of the key used by the message authentication code
Definition at line 155 of file ecies.h.
155{ return m_mac_keylen; }
◆ old_cofactor_mode()
bool Botan::ECIES_KA_Params::old_cofactor_mode |
( |
| ) |
const |
|
inlineinherited |
◆ operator=()
◆ secret_length()
size_t Botan::ECIES_KA_Params::secret_length |
( |
| ) |
const |
|
inlineinherited |
◆ single_hash_mode()
bool Botan::ECIES_KA_Params::single_hash_mode |
( |
| ) |
const |
|
inlineinherited |
The documentation for this class was generated from the following files: