Botan 3.6.1
Crypto and TLS for C&
|
#include <xmss_wots.h>
Public Member Functions | |
const wots_keysig_t & | key_data () const |
XMSS_WOTS_PublicKey (XMSS_WOTS_Parameters params, std::span< const uint8_t > public_seed, const XMSS_WOTS_PrivateKey &private_key, XMSS_Address &adrs, XMSS_Hash &hash) | |
XMSS_WOTS_PublicKey (XMSS_WOTS_Parameters params, std::span< const uint8_t > public_seed, wots_keysig_t signature, const secure_vector< uint8_t > &msg, XMSS_Address &adrs, XMSS_Hash &hash) | |
Protected Attributes | |
wots_keysig_t | m_key_data |
XMSS_WOTS_Parameters | m_params |
A Winternitz One Time Signature public key for use with Extended Hash-Based Signatures.
Definition at line 49 of file xmss_wots.h.
Botan::XMSS_WOTS_PublicKey::XMSS_WOTS_PublicKey | ( | XMSS_WOTS_Parameters | params, |
std::span< const uint8_t > | public_seed, | ||
const XMSS_WOTS_PrivateKey & | private_key, | ||
XMSS_Address & | adrs, | ||
XMSS_Hash & | hash ) |
Algorithm 4: "WOTS_genPK" Initializes a Winternitz One Time Signature+ (WOTS+) Public Key's key data, with passed-in private key data using the WOTS chaining function.
This overload is used in multithreaded scenarios, where it is required to provide seperate instances of XMSS_Hash to each thread.
params | The WOTS parameters to use |
public_seed | The public seed for the public key generation |
private_key | The private key to derive the public key from |
adrs | The address of the key to retrieve. |
hash | Instance of XMSS_Hash, that may only be used by the thread executing at. |
Definition at line 79 of file xmss_wots.cpp.
References Botan::XMSS_WOTS_Parameters::len(), Botan::XMSS_WOTS_Base::m_key_data, Botan::XMSS_WOTS_Base::m_params, Botan::XMSS_Address::set_chain_address(), and Botan::XMSS_WOTS_Parameters::wots_parameter().
Botan::XMSS_WOTS_PublicKey::XMSS_WOTS_PublicKey | ( | XMSS_WOTS_Parameters | params, |
std::span< const uint8_t > | public_seed, | ||
wots_keysig_t | signature, | ||
const secure_vector< uint8_t > & | msg, | ||
XMSS_Address & | adrs, | ||
XMSS_Hash & | hash ) |
Creates a XMSS_WOTS_PublicKey from a message and signature using Algorithm 6 WOTS_pkFromSig defined in the XMSS standard. This overload is used to verify a message using a public key.
params | The WOTS parameters to use |
public_seed | The public seed to derive the key with |
signature | A WOTS signature for msg. |
msg | A message. |
adrs | The address of the key to retrieve. |
hash | Instance of XMSS_Hash, that may only be used by the thread executing at. |
Definition at line 91 of file xmss_wots.cpp.
References Botan::XMSS_WOTS_Parameters::append_checksum(), Botan::XMSS_WOTS_Parameters::base_w(), Botan::XMSS_WOTS_Parameters::len(), Botan::XMSS_WOTS_Parameters::len_1(), Botan::XMSS_WOTS_Base::m_key_data, Botan::XMSS_WOTS_Base::m_params, Botan::XMSS_Address::set_chain_address(), and Botan::XMSS_WOTS_Parameters::wots_parameter().
|
inlineinherited |
Definition at line 38 of file xmss_wots.h.
References Botan::XMSS_WOTS_Base::m_key_data.
Referenced by Botan::XMSS_WOTS_PrivateKey::sign().
|
protectedinherited |
Definition at line 42 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_Base::key_data(), Botan::XMSS_WOTS_PrivateKey::XMSS_WOTS_PrivateKey(), Botan::XMSS_WOTS_PrivateKey::XMSS_WOTS_PrivateKey(), XMSS_WOTS_PublicKey(), and XMSS_WOTS_PublicKey().
|
protectedinherited |
Definition at line 41 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PrivateKey::sign(), Botan::XMSS_WOTS_PrivateKey::XMSS_WOTS_PrivateKey(), Botan::XMSS_WOTS_PrivateKey::XMSS_WOTS_PrivateKey(), XMSS_WOTS_PublicKey(), and XMSS_WOTS_PublicKey().