Botan 3.7.1
Crypto and TLS for C&
|
#include <ec_key_data.h>
Public Member Functions | |
EC_PrivateKey_Data (EC_Group group, EC_Scalar x) | |
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 50 of file ec_key_data.h.
Definition at line 20 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 52 of file ec_key_data.cpp.
|
inline |
|
inline |
Definition at line 73 of file ec_key_data.h.
|
inline |
Definition at line 71 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 71 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 57 of file ec_key_data.cpp.
References Botan::EC_AffinePoint::g_mul(), and Botan::EC_Scalar::invert().
Referenced by public_key().
Definition at line 63 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 76 of file ec_key_data.cpp.
References Botan::EC_Scalar::serialize_to().
Referenced by serialize().