|
Botan 3.10.0
Crypto and TLS for C&
|
#include <ec_key_data.h>
Public Member Functions | |
| EC_PrivateKey_Data (const EC_Group &group, std::span< const uint8_t > bytes) | |
| EC_PrivateKey_Data (const EC_PrivateKey_Data &)=default | |
| EC_PrivateKey_Data (EC_Group group, EC_Scalar x) | |
| EC_PrivateKey_Data (EC_PrivateKey_Data &&)=default | |
| const EC_Group & | group () const |
| const BigInt & | legacy_bigint () const |
| EC_PrivateKey_Data & | operator= (const EC_PrivateKey_Data &)=default |
| EC_PrivateKey_Data & | operator= (EC_PrivateKey_Data &&)=default |
| 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 |
| ~EC_PrivateKey_Data () | |
Definition at line 47 of file ec_key_data.h.
Definition at line 25 of file ec_key_data.cpp.
References BOTAN_ARG_CHECK, and Botan::EC_Scalar::is_nonzero().
| Botan::EC_PrivateKey_Data::EC_PrivateKey_Data | ( | const EC_Group & | group, |
| std::span< const uint8_t > | bytes ) |
Definition at line 61 of file ec_key_data.cpp.
|
default |
|
default |
| Botan::EC_PrivateKey_Data::~EC_PrivateKey_Data | ( | ) |
Definition at line 64 of file ec_key_data.cpp.
References Botan::EC_Scalar::zeroize().
|
inline |
|
inline |
Definition at line 76 of file ec_key_data.h.
|
default |
|
default |
|
inline |
Definition at line 74 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 81 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 68 of file ec_key_data.cpp.
References Botan::EC_AffinePoint::g_mul(), and Botan::EC_Scalar::invert().
Referenced by public_key().
Definition at line 66 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 86 of file ec_key_data.cpp.
References Botan::EC_Scalar::serialize_to().
Referenced by serialize().