|
Botan 3.14.1
Crypto and TLS for C&
|
#include <xmss_tree_builder.h>
Public Member Functions | |
| const secure_vector< uint8_t > & | public_seed () const |
| secure_vector< uint8_t > | tree_hash (size_t start_idx, size_t target_node_height, const XMSS_Address &adrs, XMSS_Hash &hash) const |
| XMSS_WOTS_PrivateKey | wots_private_key_for (const XMSS_Address &adrs, XMSS_Hash &hash) const |
| XMSS_Tree_Builder (const XMSS_WOTS_Parameters &wots_params, WOTS_Derivation_Method wots_derivation_method, const secure_vector< uint8_t > &public_seed, const secure_vector< uint8_t > &private_seed) | |
Bundles the inputs needed to compute the internal nodes (and root) of an XMSS Merkle tree: the WOTS+ parameters and the public/private seeds. The same computation is needed both during key generation (before the immutable public key exists) and during signing (auth path computation), so it is factored out here and shared via thin wrappers on XMSS_PrivateKey. It is also used by XMSS^MT, which builds one XMSS tree per hypertree node; the caller then presets the layer/tree fields of the passed XMSS_Address.
Definition at line 33 of file xmss_tree_builder.h.
|
inline |
Definition at line 35 of file xmss_tree_builder.h.
References public_seed().
|
inline |
Definition at line 51 of file xmss_tree_builder.h.
Referenced by tree_hash(), wots_private_key_for(), and XMSS_Tree_Builder().
| secure_vector< uint8_t > Botan::XMSS_Tree_Builder::tree_hash | ( | size_t | start_idx, |
| size_t | target_node_height, | ||
| const XMSS_Address & | adrs, | ||
| XMSS_Hash & | hash ) const |
Definition at line 30 of file xmss_tree_builder.cpp.
References BOTAN_ASSERT, BOTAN_ASSERT_NOMSG, Botan::copy_mem(), Botan::XMSS_Address::get_tree_height(), Botan::XMSS_Address::get_tree_index(), Botan::XMSS_Address::Hash_Tree_Address, public_seed(), Botan::XMSS_Common_Ops::randomize_tree_hash(), Botan::XMSS_Address::set_tree_height(), Botan::XMSS_Address::set_tree_index(), and Botan::XMSS_Address::set_type().
| XMSS_WOTS_PrivateKey Botan::XMSS_Tree_Builder::wots_private_key_for | ( | const XMSS_Address & | adrs, |
| XMSS_Hash & | hash ) const |
Definition at line 161 of file xmss_tree_builder.cpp.
References Botan::Botan2x, Botan::NIST_SP800_208, and public_seed().