Botan 3.6.1
Crypto and TLS for C&
|
#include <ec_key_data.h>
Public Member Functions | |
EC_PrivateKey_Data (EC_Group group, const BigInt &x) | |
EC_PrivateKey_Data (EC_Group group, EC_Scalar x) | |
EC_PrivateKey_Data (EC_Group group, RandomNumberGenerator &rng) | |
EC_PrivateKey_Data (EC_Group group, std::span< const uint8_t > bytes) | |
const EC_Group & | group () const |
const BigInt & | legacy_bigint () const |
const EC_Scalar & | private_key () const |
std::shared_ptr< EC_PublicKey_Data > | public_key (bool with_modular_inverse) const |
std::shared_ptr< EC_PublicKey_Data > | public_key (RandomNumberGenerator &rng, bool with_modular_inverse) const |
template<typename T > | |
T | serialize () const |
void | serialize_to (std::span< uint8_t > output) const |
Definition at line 40 of file ec_key_data.h.
Botan::EC_PrivateKey_Data::EC_PrivateKey_Data | ( | EC_Group | group, |
RandomNumberGenerator & | rng ) |
Definition at line 16 of file ec_key_data.cpp.
Definition at line 19 of file ec_key_data.cpp.
Definition at line 22 of file ec_key_data.cpp.
Botan::EC_PrivateKey_Data::EC_PrivateKey_Data | ( | EC_Group | group, |
std::span< const uint8_t > | bytes ) |
Definition at line 25 of file ec_key_data.cpp.
|
inline |
|
inline |
Definition at line 67 of file ec_key_data.h.
|
inline |
Definition at line 65 of file ec_key_data.h.
std::shared_ptr< EC_PublicKey_Data > Botan::EC_PrivateKey_Data::public_key | ( | bool | with_modular_inverse | ) | const |
Definition at line 42 of file ec_key_data.cpp.
References public_key().
std::shared_ptr< EC_PublicKey_Data > Botan::EC_PrivateKey_Data::public_key | ( | RandomNumberGenerator & | rng, |
bool | with_modular_inverse ) const |
Definition at line 28 of file ec_key_data.cpp.
References Botan::EC_AffinePoint::g_mul(), and Botan::EC_Scalar::invert().
Referenced by public_key().
Definition at line 57 of file ec_key_data.h.
References group(), serialize_to(), and T.
void Botan::EC_PrivateKey_Data::serialize_to | ( | std::span< uint8_t > | output | ) | const |
Definition at line 47 of file ec_key_data.cpp.
References Botan::EC_Scalar::serialize_to().
Referenced by serialize().