Botan 3.8.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 411 of file sp_parameters.cpp.
References algorithm_identifier(), object_identifier(), and Botan::AlgorithmIdentifier::USE_EMPTY_PARAM.
Referenced by algorithm_identifier().
|
inline |
Definition at line 130 of file sp_parameters.h.
|
static |
Definition at line 403 of file sp_parameters.cpp.
References create(), and Botan::OID::to_formatted_string().
|
static |
Definition at line 350 of file sp_parameters.cpp.
References BOTAN_ASSERT_UNREACHABLE, create(), Botan::SLHDSA128Fast, Botan::SLHDSA128Small, Botan::SLHDSA192Fast, Botan::SLHDSA192Small, Botan::SLHDSA256Fast, Botan::SLHDSA256Small, Botan::Sphincs128Fast, Botan::Sphincs128Small, Botan::Sphincs192Fast, Botan::Sphincs192Small, Botan::Sphincs256Fast, and Botan::Sphincs256Small.
Referenced by create(), create(), create(), and Botan::create_private_key().
|
static |
Definition at line 378 of file sp_parameters.cpp.
References create(), and hash_type().
|
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 387 of file sp_parameters.cpp.
References BOTAN_ASSERT_UNREACHABLE, Botan::fmt(), Botan::Haraka, hash_name(), n(), Botan::Sha256, and Botan::Shake256.
Referenced by hash_name().
|
inline |
Definition at line 71 of file sp_parameters.h.
Referenced by Botan::Sphincs_Hash_Functions::create(), create(), and to_string().
|
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 325 of file sp_parameters.cpp.
References is_available(), is_slh_dsa(), Botan::Sha256, and Botan::Shake256.
Referenced by is_available(), 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 383 of file sp_parameters.cpp.
References is_slh_dsa().
Referenced by is_available(), and is_slh_dsa().
|
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(), hash_name(), 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 407 of file sp_parameters.cpp.
References Botan::OID::from_string(), object_identifier(), and to_string().
Referenced by algorithm_identifier(), and object_identifier().
|
inline |
Definition at line 76 of file sp_parameters.h.
Referenced by to_string().
|
inline |
Definition at line 200 of file sp_parameters.h.
References public_key_bytes().
Referenced by Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey().
|
inline |
Definition at line 195 of file sp_parameters.h.
Referenced by private_key_bytes(), and 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 399 of file sp_parameters.cpp.
References hash_type(), parameter_set(), and to_string().
Referenced by object_identifier(), and to_string().
|
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().