Botan 3.6.1
Crypto and TLS for C&
|
#include <sp_parameters.h>
Public Member Functions | |
uint32_t | a () const |
AlgorithmIdentifier | algorithm_identifier () const |
uint32_t | bitsec () const |
uint32_t | d () const |
uint32_t | fors_message_bytes () const |
uint32_t | fors_signature_bytes () const |
uint32_t | h () const |
uint32_t | h_msg_digest_bytes () const |
std::string | hash_name () const |
Sphincs_Hash_Type | hash_type () const |
uint32_t | ht_signature_bytes () const |
bool | is_available () const |
bool | is_slh_dsa () const |
uint32_t | k () const |
uint32_t | leaf_digest_bytes () const |
uint32_t | log_w () const |
size_t | n () const |
OID | object_identifier () const |
Sphincs_Parameter_Set | parameter_set () const |
uint32_t | private_key_bytes () const |
uint32_t | public_key_bytes () const |
uint32_t | sphincs_signature_bytes () const |
std::string | to_string () const |
uint32_t | tree_digest_bytes () const |
uint32_t | w () const |
uint32_t | wots_bytes () const |
uint32_t | wots_checksum_bytes () const |
uint32_t | wots_len () const |
uint32_t | wots_len_1 () const |
uint32_t | wots_len_2 () const |
uint32_t | xmss_signature_bytes () const |
uint32_t | xmss_tree_height () const |
Static Public Member Functions | |
static Sphincs_Parameters | create (const OID &oid) |
static Sphincs_Parameters | create (Sphincs_Parameter_Set set, Sphincs_Hash_Type hash) |
static Sphincs_Parameters | create (std::string_view name) |
Container for all SLH-DSA parameters defined by a specific instance (see FIPS 205, Table 2). Also contains getters for various parameters that are derived from the given parameters.
Definition at line 45 of file sp_parameters.h.
|
inline |
This is the desired height of the FORS trees, aka log(t)
with t being the number of leaves in each FORS tree.
Definition at line 114 of file sp_parameters.h.
Referenced by Botan::fors_public_key_from_signature(), and Botan::fors_sign_and_pkgen().
AlgorithmIdentifier Botan::Sphincs_Parameters::algorithm_identifier | ( | ) | const |
Definition at line 410 of file sp_parameters.cpp.
|
inline |
Definition at line 130 of file sp_parameters.h.
|
static |
Definition at line 402 of file sp_parameters.cpp.
References Botan::OID::to_formatted_string().
|
static |
Definition at line 349 of file sp_parameters.cpp.
References BOTAN_ASSERT_UNREACHABLE.
Referenced by Botan::create_private_key().
|
static |
Definition at line 377 of file sp_parameters.cpp.
References name.
|
inline |
Definition at line 106 of file sp_parameters.h.
Referenced by Botan::ht_sign(), Botan::ht_verify(), and Botan::xmss_gen_root().
|
inline |
Definition at line 185 of file sp_parameters.h.
|
inline |
Definition at line 180 of file sp_parameters.h.
Referenced by Botan::fors_sign_and_pkgen().
|
inline |
Definition at line 101 of file sp_parameters.h.
|
inline |
Definition at line 216 of file sp_parameters.h.
std::string Botan::Sphincs_Parameters::hash_name | ( | ) | const |
Definition at line 386 of file sp_parameters.cpp.
References BOTAN_ASSERT_UNREACHABLE, and Botan::fmt().
|
inline |
Definition at line 71 of file sp_parameters.h.
Referenced by Botan::Sphincs_Hash_Functions::create().
|
inline |
Definition at line 145 of file sp_parameters.h.
Referenced by Botan::ht_sign(), and Botan::ht_verify().
bool Botan::Sphincs_Parameters::is_available | ( | ) | const |
Definition at line 324 of file sp_parameters.cpp.
Referenced by Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey(), Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey(), and Botan::SphincsPlus_PublicKey::SphincsPlus_PublicKey().
bool Botan::Sphincs_Parameters::is_slh_dsa | ( | ) | const |
Definition at line 382 of file sp_parameters.cpp.
|
inline |
Definition at line 119 of file sp_parameters.h.
Referenced by Botan::fors_public_key_from_signature(), and Botan::fors_sign_and_pkgen().
|
inline |
Definition at line 210 of file sp_parameters.h.
|
inline |
Definition at line 150 of file sp_parameters.h.
|
inline |
Definition at line 96 of file sp_parameters.h.
Referenced by Botan::compute_root(), Botan::fors_public_key_from_signature(), Botan::fors_sign_and_pkgen(), Botan::ht_verify(), Botan::Sphincs_Hash_Functions_Sha2::Sphincs_Hash_Functions_Sha2(), Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey(), Botan::treehash(), Botan::wots_public_key_from_signature(), Botan::wots_sign_and_pkgen(), Botan::xmss_gen_root(), and Botan::xmss_sign_and_pkgen().
OID Botan::Sphincs_Parameters::object_identifier | ( | ) | const |
Definition at line 406 of file sp_parameters.cpp.
|
inline |
Definition at line 76 of file sp_parameters.h.
|
inline |
Definition at line 200 of file sp_parameters.h.
Referenced by Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey().
|
inline |
Definition at line 195 of file sp_parameters.h.
Referenced by Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey().
|
inline |
Definition at line 190 of file sp_parameters.h.
std::string Botan::Sphincs_Parameters::to_string | ( | ) | const |
Definition at line 398 of file sp_parameters.cpp.
|
inline |
Definition at line 205 of file sp_parameters.h.
|
inline |
Definition at line 124 of file sp_parameters.h.
Referenced by Botan::wots_public_key_from_signature(), and Botan::wots_sign_and_pkgen().
|
inline |
Definition at line 170 of file sp_parameters.h.
Referenced by Botan::ht_verify(), Botan::wots_sign_and_pkgen(), Botan::xmss_gen_root(), and Botan::xmss_sign_and_pkgen().
|
inline |
Definition at line 175 of file sp_parameters.h.
|
inline |
Definition at line 165 of file sp_parameters.h.
Referenced by Botan::wots_public_key_from_signature(), and Botan::wots_sign_and_pkgen().
|
inline |
Definition at line 155 of file sp_parameters.h.
Referenced by Botan::chain_lengths().
|
inline |
Definition at line 160 of file sp_parameters.h.
Referenced by Botan::chain_lengths().
|
inline |
Definition at line 140 of file sp_parameters.h.
Referenced by Botan::ht_sign().
|
inline |
Definition at line 135 of file sp_parameters.h.
Referenced by Botan::ht_sign(), Botan::ht_verify(), Botan::xmss_gen_root(), and Botan::xmss_sign_and_pkgen().