Botan 3.6.1
Crypto and TLS for C&
|
#include <dl_scheme.h>
Public Member Functions | |
bool | check_key (RandomNumberGenerator &rng, bool strong) const |
secure_vector< uint8_t > | DER_encode () const |
DL_PrivateKey (const AlgorithmIdentifier &alg_id, std::span< const uint8_t > key_bits, DL_Group_Format format) | |
DL_PrivateKey (const DL_Group &group, const BigInt &private_key) | |
DL_PrivateKey (const DL_Group &group, RandomNumberGenerator &rng) | |
const BigInt & | get_int_field (std::string_view algo_name, std::string_view field) const |
const DL_Group & | group () const |
const BigInt & | private_key () const |
std::shared_ptr< DL_PublicKey > | public_key () const |
secure_vector< uint8_t > | raw_private_key_bits () const |
Definition at line 49 of file dl_scheme.h.
Definition at line 68 of file dl_scheme.cpp.
Botan::DL_PrivateKey::DL_PrivateKey | ( | const DL_Group & | group, |
RandomNumberGenerator & | rng ) |
Botan::DL_PrivateKey::DL_PrivateKey | ( | const AlgorithmIdentifier & | alg_id, |
std::span< const uint8_t > | key_bits, | ||
DL_Group_Format | format ) |
Definition at line 78 of file dl_scheme.cpp.
bool Botan::DL_PrivateKey::check_key | ( | RandomNumberGenerator & | rng, |
bool | strong ) const |
Definition at line 93 of file dl_scheme.cpp.
References Botan::DL_Group::verify_group(), and Botan::DL_Group::verify_private_element().
secure_vector< uint8_t > Botan::DL_PrivateKey::DER_encode | ( | ) | const |
DER encode the private key
Definition at line 85 of file dl_scheme.cpp.
References Botan::DER_Encoder::encode(), and Botan::DER_Encoder::get_contents().
const BigInt & Botan::DL_PrivateKey::get_int_field | ( | std::string_view | algo_name, |
std::string_view | field ) const |
Definition at line 115 of file dl_scheme.cpp.
References Botan::DL_Group::get_g(), Botan::DL_Group::get_p(), and Botan::DL_Group::get_q().
|
inline |
Return the group this key operates in
Definition at line 67 of file dl_scheme.h.
|
inline |
Return the integer value of the private key
Definition at line 72 of file dl_scheme.h.
std::shared_ptr< DL_PublicKey > Botan::DL_PrivateKey::public_key | ( | ) | const |
Return a new shared_ptr of the associated public key
Definition at line 97 of file dl_scheme.cpp.
secure_vector< uint8_t > Botan::DL_PrivateKey::raw_private_key_bits | ( | ) | const |
Return the raw serialization of the private key
Definition at line 89 of file dl_scheme.cpp.
References Botan::BigInt::serialize().