Botan 3.6.1
Crypto and TLS for C&
|
#include <dl_scheme.h>
Public Member Functions | |
bool | check_key (RandomNumberGenerator &rng, bool strong) const |
std::vector< uint8_t > | DER_encode () const |
DL_PublicKey (const AlgorithmIdentifier &alg_id, std::span< const uint8_t > key_bits, DL_Group_Format format) | |
DL_PublicKey (const DL_Group &group, const BigInt &public_key) | |
size_t | estimated_strength () const |
const BigInt & | get_int_field (std::string_view algo_name, std::string_view field) const |
const DL_Group & | group () const |
size_t | p_bits () const |
const BigInt & | public_key () const |
std::vector< uint8_t > | public_key_as_bytes () const |
Definition at line 21 of file dl_scheme.h.
Definition at line 38 of file dl_scheme.cpp.
Botan::DL_PublicKey::DL_PublicKey | ( | const AlgorithmIdentifier & | alg_id, |
std::span< const uint8_t > | key_bits, | ||
DL_Group_Format | format ) |
Definition at line 41 of file dl_scheme.cpp.
bool Botan::DL_PublicKey::check_key | ( | RandomNumberGenerator & | rng, |
bool | strong ) const |
Definition at line 56 of file dl_scheme.cpp.
References Botan::DL_Group::verify_group(), and Botan::DL_Group::verify_public_element().
std::vector< uint8_t > Botan::DL_PublicKey::DER_encode | ( | ) | const |
Definition at line 50 of file dl_scheme.cpp.
References Botan::DER_Encoder::encode().
size_t Botan::DL_PublicKey::estimated_strength | ( | ) | const |
Definition at line 60 of file dl_scheme.cpp.
References Botan::DL_Group::estimated_strength().
const BigInt & Botan::DL_PublicKey::get_int_field | ( | std::string_view | algo_name, |
std::string_view | field ) const |
Definition at line 101 of file dl_scheme.cpp.
References Botan::DL_Group::get_g(), Botan::DL_Group::get_p(), and Botan::DL_Group::get_q().
|
inline |
Definition at line 29 of file dl_scheme.h.
size_t Botan::DL_PublicKey::p_bits | ( | ) | const |
|
inline |
Definition at line 31 of file dl_scheme.h.
std::vector< uint8_t > Botan::DL_PublicKey::public_key_as_bytes | ( | ) | const |
Definition at line 46 of file dl_scheme.cpp.
References Botan::DL_Group::p_bytes(), and Botan::BigInt::serialize().