|
Botan 3.9.0
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 80 of file xmss_wots.cpp.
References Botan::XMSS_WOTS_Base::key_data(), Botan::XMSS_WOTS_Base::m_key_data, Botan::XMSS_WOTS_Base::m_params, Botan::XMSS_Address::set_chain_address(), and Botan::XMSS_WOTS_Base::XMSS_WOTS_Base().
| 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 92 of file xmss_wots.cpp.
References Botan::XMSS_WOTS_Base::m_key_data, Botan::XMSS_WOTS_Base::m_params, Botan::XMSS_Address::set_chain_address(), and Botan::XMSS_WOTS_Base::XMSS_WOTS_Base().
|
inlineinherited |
Definition at line 38 of file xmss_wots.h.
References m_key_data.
Referenced by Botan::XMSS_WOTS_PrivateKey::sign(), XMSS_WOTS_Base(), and Botan::XMSS_WOTS_PublicKey::XMSS_WOTS_PublicKey().
|
protectedinherited |
|
protectedinherited |
Definition at line 41 of file xmss_wots.h.
Referenced by Botan::XMSS_WOTS_PrivateKey::sign(), XMSS_WOTS_Base(), XMSS_WOTS_Base(), Botan::XMSS_WOTS_PrivateKey::XMSS_WOTS_PrivateKey(), Botan::XMSS_WOTS_PrivateKey::XMSS_WOTS_PrivateKey(), Botan::XMSS_WOTS_PublicKey::XMSS_WOTS_PublicKey(), and Botan::XMSS_WOTS_PublicKey::XMSS_WOTS_PublicKey().