Botan 2.19.2
Crypto and TLS for C&
|
#include <xmss_parameters.h>
Public Types | |
enum | xmss_algorithm_t { XMSS_SHA2_10_256 = 0x00000001 , XMSS_SHA2_16_256 = 0x00000002 , XMSS_SHA2_20_256 = 0x00000003 , XMSS_SHA2_10_512 = 0x00000004 , XMSS_SHA2_16_512 = 0x00000005 , XMSS_SHA2_20_512 = 0x00000006 , XMSS_SHAKE_10_256 = 0x00000007 , XMSS_SHAKE_16_256 = 0x00000008 , XMSS_SHAKE_20_256 = 0x00000009 , XMSS_SHAKE_10_512 = 0x0000000a , XMSS_SHAKE_16_512 = 0x0000000b , XMSS_SHAKE_20_512 = 0x0000000c } |
Public Member Functions | |
size_t | element_size () const |
size_t | estimated_strength () const |
const std::string & | hash_function_name () const |
size_t | len () const |
const std::string & | name () const |
xmss_algorithm_t | oid () const |
bool | operator== (const XMSS_Parameters &p) const |
XMSS_WOTS_Parameters::ots_algorithm_t | ots_oid () const |
size_t | tree_height () const |
size_t | wots_parameter () const |
XMSS_Parameters (const std::string &algo_name) | |
XMSS_Parameters (xmss_algorithm_t oid) | |
Static Public Member Functions | |
static xmss_algorithm_t | xmss_id_from_string (const std::string &algo_name) |
Descibes a signature method for XMSS, as defined in: [1] XMSS: Extended Hash-Based Signatures, Request for Comments: 8391 Release: May 2018. https://datatracker.ietf.org/doc/rfc8391/
Definition at line 23 of file xmss_parameters.h.
Definition at line 26 of file xmss_parameters.h.
Botan::XMSS_Parameters::XMSS_Parameters | ( | const std::string & | algo_name | ) |
Definition at line 48 of file xmss_parameters.cpp.
Botan::XMSS_Parameters::XMSS_Parameters | ( | xmss_algorithm_t | oid | ) |
Definition at line 53 of file xmss_parameters.cpp.
|
inline |
Retrieves the uniform length of a message, and the size of each node. This correlates to XMSS parameter "n" defined in [1].
Definition at line 67 of file xmss_parameters.h.
Referenced by Botan::XMSS_Common_Ops::randomize_tree_hash(), Botan::XMSS_Signature_Operation::signature_length(), Botan::XMSS_PublicKey::XMSS_PublicKey(), and Botan::XMSS_Signature::XMSS_Signature().
|
inline |
Returns the estimated pre-quantum security level of the chosen algorithm.
Definition at line 95 of file xmss_parameters.h.
|
inline |
Definition at line 55 of file xmss_parameters.h.
|
inline |
Definition at line 82 of file xmss_parameters.h.
Referenced by Botan::XMSS_Common_Ops::create_l_tree(), Botan::XMSS_Signature_Operation::signature_length(), and Botan::XMSS_Signature::XMSS_Signature().
|
inline |
Definition at line 50 of file xmss_parameters.h.
|
inline |
Definition at line 84 of file xmss_parameters.h.
Referenced by Botan::create_private_key(), Botan::XMSS_Verification_Operation::is_valid_signature(), and Botan::XMSS_PublicKey::raw_public_key().
|
inline |
Definition at line 100 of file xmss_parameters.h.
|
inline |
Definition at line 86 of file xmss_parameters.h.
|
inline |
Definition at line 72 of file xmss_parameters.h.
Referenced by Botan::XMSS_Signature_Operation::signature_length(), and Botan::XMSS_Signature::XMSS_Signature().
|
inline |
The Winternitz parameter.
Definition at line 80 of file xmss_parameters.h.
|
static |
Definition at line 19 of file xmss_parameters.cpp.
References XMSS_SHA2_10_256, XMSS_SHA2_10_512, XMSS_SHA2_16_256, XMSS_SHA2_16_512, XMSS_SHA2_20_256, XMSS_SHA2_20_512, XMSS_SHAKE_10_256, XMSS_SHAKE_10_512, XMSS_SHAKE_16_256, XMSS_SHAKE_16_512, XMSS_SHAKE_20_256, and XMSS_SHAKE_20_512.