9#ifndef BOTAN_XMSS_PARAMETERS_H_
10#define BOTAN_XMSS_PARAMETERS_H_
12#include <botan/secmem.h>
13#include <botan/types.h>
82 size_t lg_w()
const {
return 4; }
84 size_t len()
const {
return m_len; }
86 size_t len_1()
const {
return m_len_1; }
88 size_t len_2()
const {
return m_len_2; }
100 XMSS_WOTS_Parameters(ots_algorithm_t
id,
size_t hash_len,
size_t len,
size_t len1,
size_t len2) :
101 m_id(id), m_element_size(hash_len), m_len(len), m_len_1(len1), m_len_2(len2) {}
103 ots_algorithm_t m_id{};
104 size_t m_element_size;
153 static xmss_algorithm_t xmss_id_from_string(std::string_view algo_name);
172 std::string_view
name() const;
213 size_t len()
const {
return m_len; }
247 m_wots_oid(wots_oid),
248 m_element_size(hash_len),
249 m_hash_id_size(hash_id_size),
250 m_tree_height(tree_height),
253 xmss_algorithm_t m_oid{};
254 XMSS_WOTS_Parameters::ots_algorithm_t m_wots_oid;
255 size_t m_element_size;
256 size_t m_hash_id_size;
257 size_t m_tree_height;
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_DEPRECATED(msg)
size_t total_number_of_signatures() const
std::string_view name() const
size_t hash_id_size() const
size_t raw_private_key_size() const
XMSS_Parameters(std::string_view algo_name)
size_t estimated_strength() const
size_t wots_parameter() const
size_t raw_public_key_size() const
size_t tree_height() const
xmss_algorithm_t oid() const
XMSS_WOTS_Parameters::ots_algorithm_t ots_oid() const
std::string_view hash_function_name() const
size_t raw_legacy_private_key_size() const
size_t element_size() const
XMSS_WOTS_Parameters wots_parameters() const
bool operator==(const XMSS_Parameters &p) const
size_t wots_parameter() const
XMSS_WOTS_Parameters(XMSS_WOTS_Parameters &&other) noexcept=default
XMSS_WOTS_Parameters(const XMSS_WOTS_Parameters &other)=default
size_t element_size() const
static XMSS_WOTS_Parameters from_id(ots_algorithm_t id)
~XMSS_WOTS_Parameters()=default
ots_algorithm_t oid() const
size_t estimated_strength() const
XMSS_WOTS_Parameters & operator=(const XMSS_WOTS_Parameters &other)=default
bool operator==(const XMSS_WOTS_Parameters &p) const
XMSS_WOTS_Parameters & operator=(XMSS_WOTS_Parameters &&other) noexcept=default