Botan 3.9.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 |
const EC_Group & | domain () const |
ECIES_KA_Params (const EC_Group &group, std::string_view kdf_spec, size_t length, EC_Point_Format point_format, ECIES_Flags flags) | |
ECIES_KA_Params (const EC_Group &group, std::string_view kdf_spec, size_t length, EC_Point_Format point_format=EC_Point_Format::Uncompressed, bool single_hash_mode=true) | |
ECIES_KA_Params (const ECIES_KA_Params &)=default | |
ECIES_KA_Params (ECIES_KA_Params &&)=default | |
const EC_Group & | group () const |
const std::string & | kdf () const |
const std::string & | kdf_spec () const |
bool | old_cofactor_mode () const |
ECIES_KA_Params & | operator= (const ECIES_KA_Params &)=delete |
ECIES_KA_Params & | operator= (ECIES_KA_Params &&)=delete |
EC_Point_Format | point_format () const |
size_t | secret_length () const |
bool | single_hash_mode () const |
virtual | ~ECIES_KA_Params ()=default |
Botan::ECIES_KA_Params::ECIES_KA_Params | ( | const EC_Group & | group, |
std::string_view | kdf_spec, | ||
size_t | length, | ||
EC_Point_Format | point_format = EC_Point_Format::Uncompressed, | ||
bool | single_hash_mode = true ) |
group | ec domain parameters of the involved ec keys |
kdf_spec | name of the key derivation function |
length | length of the secret to be derived |
point_format | format of encoded keys (affects the secret derivation if single_hash_mode is used) |
single_hash_mode | prefix the KDF input with the ephemeral public key (recommended) |
Definition at line 226 of file ecies.cpp.
References group(), kdf(), point_format(), and single_hash_mode().
Referenced by ECIES_KA_Params(), ECIES_KA_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), operator=(), and operator=().
Botan::ECIES_KA_Params::ECIES_KA_Params | ( | const EC_Group & | group, |
std::string_view | kdf_spec, | ||
size_t | length, | ||
EC_Point_Format | point_format, | ||
ECIES_Flags | flags ) |
group | ec domain parameters of the involved ec keys |
kdf_spec | name of the key derivation function |
length | length of the secret to be derived |
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 215 of file ecies.cpp.
References Botan::CheckMode, Botan::CofactorMode, group(), kdf(), Botan::OldCofactorMode, point_format(), and Botan::SingleHashMode.
|
default |
References ECIES_KA_Params().
|
default |
References ECIES_KA_Params().
|
virtualdefault |
|
inline |
Definition at line 132 of file ecies.h.
Referenced by Botan::ECIES_System_Params::ECIES_System_Params().
|
inline |
Definition at line 126 of file ecies.h.
Referenced by Botan::ECIES_System_Params::ECIES_System_Params().
|
inline |
Definition at line 142 of file ecies.h.
References compression_type(), and point_format().
Referenced by compression_type().
|
inline |
|
inline |
Definition at line 119 of file ecies.h.
Referenced by domain(), ECIES_KA_Params(), ECIES_KA_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), and Botan::ECIES_System_Params::ECIES_System_Params().
|
inline |
Definition at line 136 of file ecies.h.
Referenced by ECIES_KA_Params(), ECIES_KA_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), and kdf_spec().
|
inline |
|
inline |
Definition at line 129 of file ecies.h.
Referenced by Botan::ECIES_System_Params::ECIES_System_Params().
|
delete |
References ECIES_KA_Params().
|
delete |
References ECIES_KA_Params().
|
inline |
Definition at line 134 of file ecies.h.
Referenced by compression_type(), Botan::ECIES_Encryptor::ECIES_Encryptor(), ECIES_KA_Params(), ECIES_KA_Params(), Botan::ECIES_System_Params::ECIES_System_Params(), and Botan::ECIES_System_Params::ECIES_System_Params().
|
inline |
|
inline |
Definition at line 123 of file ecies.h.
Referenced by ECIES_KA_Params(), and Botan::ECIES_System_Params::ECIES_System_Params().