Botan 3.14.1
Crypto and TLS for C&
Botan::XMSS_WOTS_PublicKey Class Reference

#include <xmss_wots.h>

Inheritance diagram for Botan::XMSS_WOTS_PublicKey:
Botan::XMSS_WOTS_Base

Public Member Functions

const wots_keysig_t & key_data () const
 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

Detailed Description

A Winternitz One Time Signature public key for use with Extended Hash-Based Signatures.

Definition at line 43 of file xmss_wots.h.

Constructor & Destructor Documentation

◆ XMSS_WOTS_PublicKey()

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.

Parameters
paramsThe WOTS parameters to use
public_seedThe public seed to derive the key with
signatureA WOTS signature for msg.
msgA message.
adrsThe address of the key to retrieve.
HashesInstance of XMSS_Hash, that may only be used by the thread executing at.

Definition at line 218 of file xmss_wots.cpp.

223 :
224 XMSS_WOTS_Base(params, std::move(signature)) {
225 const secure_vector<uint8_t> msg_digest = base_w_with_checksum(m_params, msg);
226 const std::vector<uint8_t> to(m_params.len(), static_cast<uint8_t>(m_params.wots_parameter() - 1));
227
228 chains(m_params, m_key_data, msg_digest, to, adrs, public_seed, hash);
229}
XMSS_WOTS_Base(XMSS_WOTS_Parameters params)
Definition xmss_wots.h:27
wots_keysig_t m_key_data
Definition xmss_wots.h:36
XMSS_WOTS_Parameters m_params
Definition xmss_wots.h:35
std::vector< T, secure_allocator< T > > secure_vector
Definition secmem.h:128

References Botan::XMSS_WOTS_Base::m_key_data, Botan::XMSS_WOTS_Base::m_params, and Botan::XMSS_WOTS_Base::XMSS_WOTS_Base().

Member Function Documentation

◆ key_data()

const wots_keysig_t & Botan::XMSS_WOTS_Base::key_data ( ) const
inlineinherited

Member Data Documentation

◆ m_key_data

◆ m_params


The documentation for this class was generated from the following files: