Botan 2.19.3
Crypto and TLS for C&
|
#include <xmss_wots.h>
Public Types | |
enum | ots_algorithm_t { WOTSP_SHA2_256 = 0x00000001 , WOTSP_SHA2_512 = 0x00000002 , WOTSP_SHAKE_256 = 0x00000003 , WOTSP_SHAKE_512 = 0x00000004 } |
Public Member Functions | |
void | append_checksum (secure_vector< uint8_t > &data) |
secure_vector< uint8_t > | base_w (const secure_vector< uint8_t > &msg, size_t out_size) const |
secure_vector< uint8_t > | base_w (size_t value) const |
size_t | element_size () const |
size_t | estimated_strength () const |
const std::string & | hash_function_name () const |
size_t | len () const |
size_t | len_1 () const |
size_t | len_2 () const |
size_t | lg_w () const |
const std::string & | name () const |
ots_algorithm_t | oid () const |
bool | operator== (const XMSS_WOTS_Parameters &p) const |
size_t | wots_parameter () const |
XMSS_WOTS_Parameters (const std::string &algo_name) | |
XMSS_WOTS_Parameters (ots_algorithm_t ots_spec) | |
Static Public Member Functions | |
static ots_algorithm_t | xmss_wots_id_from_string (const std::string ¶m_set) |
Descibes a signature method for XMSS Winternitz One Time Signatures, 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 32 of file xmss_wots.h.
Enumerator | |
---|---|
WOTSP_SHA2_256 | |
WOTSP_SHA2_512 | |
WOTSP_SHAKE_256 | |
WOTSP_SHAKE_512 |
Definition at line 35 of file xmss_wots.h.
Botan::XMSS_WOTS_Parameters::XMSS_WOTS_Parameters | ( | const std::string & | algo_name | ) |
Definition at line 36 of file xmss_wots_parameters.cpp.
Botan::XMSS_WOTS_Parameters::XMSS_WOTS_Parameters | ( | ots_algorithm_t | ots_spec | ) |
Definition at line 40 of file xmss_wots_parameters.cpp.
References BOTAN_ASSERT, element_size(), oid(), wots_parameter(), WOTSP_SHA2_256, WOTSP_SHA2_512, WOTSP_SHAKE_256, and WOTSP_SHAKE_512.
void Botan::XMSS_WOTS_Parameters::append_checksum | ( | secure_vector< uint8_t > & | data | ) |
Definition at line 124 of file xmss_wots_parameters.cpp.
References base_w(), and wots_parameter().
Referenced by Botan::XMSS_WOTS_PrivateKey::sign().
secure_vector< uint8_t > Botan::XMSS_WOTS_Parameters::base_w | ( | const secure_vector< uint8_t > & | msg, |
size_t | out_size | ||
) | const |
Algorithm 1: convert input string to base.
msg | Input string (referred to as X in [1]). |
out_size | size of message in base w. |
Definition at line 91 of file xmss_wots_parameters.cpp.
Referenced by append_checksum(), base_w(), and Botan::XMSS_WOTS_PrivateKey::sign().
secure_vector< uint8_t > Botan::XMSS_WOTS_Parameters::base_w | ( | size_t | value | ) | const |
Definition at line 113 of file xmss_wots_parameters.cpp.
References base_w(), and Botan::XMSS_Tools::concat().
|
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 85 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PrivateKey::at(), Botan::XMSS_PrivateKey::XMSS_PrivateKey(), and XMSS_WOTS_Parameters().
|
inline |
Definition at line 105 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PublicKey::estimated_strength(), and Botan::XMSS_WOTS_PublicKey::key_length().
|
inline |
Definition at line 73 of file xmss_wots.h.
|
inline |
Definition at line 95 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PrivateKey::generate_public_key(), and Botan::XMSS_WOTS_PrivateKey::sign().
|
inline |
Definition at line 97 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PrivateKey::sign().
|
inline |
Definition at line 99 of file xmss_wots.h.
|
inline |
Definition at line 101 of file xmss_wots.h.
|
inline |
Definition at line 65 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PublicKey::algo_name().
|
inline |
Definition at line 103 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PrivateKey::generate_public_key(), and XMSS_WOTS_Parameters().
|
inline |
Definition at line 107 of file xmss_wots.h.
|
inline |
The Winternitz parameter.
Definition at line 93 of file xmss_wots.h.
Referenced by append_checksum(), Botan::XMSS_WOTS_PublicKey::chain(), Botan::XMSS_WOTS_PrivateKey::generate_public_key(), and XMSS_WOTS_Parameters().
|
static |
Definition at line 23 of file xmss_wots_parameters.cpp.
References WOTSP_SHA2_256, WOTSP_SHA2_512, WOTSP_SHAKE_256, and WOTSP_SHAKE_512.