Botan 3.4.0
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 |
uint32_t | k () const |
uint32_t | leaf_digest_bytes () const |
uint32_t | log_w () const |
uint32_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 SPHINCS+ parameters defined by a specific instance (see Table 3 of Sphincs+ round 3.1 spec). Also contains getters for various parameters that are derived from the given parameters.
Definition at line 38 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 95 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 204 of file sp_parameters.cpp.
|
inline |
Definition at line 111 of file sp_parameters.h.
|
static |
Definition at line 196 of file sp_parameters.cpp.
References Botan::OID::to_formatted_string().
|
static |
Definition at line 155 of file sp_parameters.cpp.
References BOTAN_ASSERT_UNREACHABLE.
Referenced by Botan::create_private_key().
|
static |
|
inline |
Definition at line 87 of file sp_parameters.h.
Referenced by Botan::ht_sign(), Botan::ht_verify(), and Botan::xmss_gen_root().
|
inline |
Definition at line 166 of file sp_parameters.h.
|
inline |
Definition at line 161 of file sp_parameters.h.
Referenced by Botan::fors_sign_and_pkgen().
|
inline |
Definition at line 82 of file sp_parameters.h.
|
inline |
Definition at line 197 of file sp_parameters.h.
std::string Botan::Sphincs_Parameters::hash_name | ( | ) | const |
Definition at line 180 of file sp_parameters.cpp.
References BOTAN_ASSERT_UNREACHABLE, and Botan::fmt().
|
inline |
Definition at line 57 of file sp_parameters.h.
Referenced by Botan::Sphincs_Hash_Functions::create().
|
inline |
Definition at line 126 of file sp_parameters.h.
Referenced by Botan::ht_sign(), and Botan::ht_verify().
|
inline |
Definition at line 100 of file sp_parameters.h.
Referenced by Botan::fors_public_key_from_signature(), and Botan::fors_sign_and_pkgen().
|
inline |
Definition at line 191 of file sp_parameters.h.
|
inline |
Definition at line 131 of file sp_parameters.h.
|
inline |
Definition at line 77 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 200 of file sp_parameters.cpp.
|
inline |
Definition at line 62 of file sp_parameters.h.
|
inline |
Definition at line 181 of file sp_parameters.h.
Referenced by Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey().
|
inline |
Definition at line 176 of file sp_parameters.h.
Referenced by Botan::SphincsPlus_PrivateKey::SphincsPlus_PrivateKey().
|
inline |
Definition at line 171 of file sp_parameters.h.
std::string Botan::Sphincs_Parameters::to_string | ( | ) | const |
Definition at line 192 of file sp_parameters.cpp.
References Botan::fmt().
|
inline |
Definition at line 186 of file sp_parameters.h.
|
inline |
Definition at line 105 of file sp_parameters.h.
Referenced by Botan::wots_public_key_from_signature(), and Botan::wots_sign_and_pkgen().
|
inline |
Definition at line 151 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 156 of file sp_parameters.h.
|
inline |
Definition at line 146 of file sp_parameters.h.
Referenced by Botan::wots_public_key_from_signature(), and Botan::wots_sign_and_pkgen().
|
inline |
Definition at line 136 of file sp_parameters.h.
Referenced by Botan::chain_lengths().
|
inline |
Definition at line 141 of file sp_parameters.h.
Referenced by Botan::chain_lengths().
|
inline |
Definition at line 121 of file sp_parameters.h.
Referenced by Botan::ht_sign().
|
inline |
Definition at line 116 of file sp_parameters.h.
Referenced by Botan::ht_sign(), Botan::ht_verify(), Botan::xmss_gen_root(), and Botan::xmss_sign_and_pkgen().