15#include <botan/exceptn.h>
16#include <botan/pk_keys.h>
17#include <botan/xmss_parameters.h>
21class RandomNumberGenerator;
24class XMSS_PrivateKey_Internal;
25class XMSS_Verification_Operation;
26class XMSS_WOTS_PublicKey;
27class XMSS_WOTS_PrivateKey;
72 std::string
algo_name()
const override {
return "XMSS"; }
82 size_t key_length()
const override {
return m_xmss_params.estimated_strength(); }
91 std::vector<uint8_t> raw_public_key_bits()
const override;
99 std::vector<uint8_t> public_key_bits()
const override;
101 BOTAN_DEPRECATED(
"Use raw_public_key_bits()") std::vector<uint8_t> raw_public_key() const;
105 bool supports_operation(
PublicKeyOperation op)
const override {
return (op == PublicKeyOperation::Signature); }
107 std::unique_ptr<PK_Ops::Verification> create_verification_op(std::string_view params,
108 std::string_view provider)
const override;
110 std::unique_ptr<PK_Ops::Verification> create_x509_verification_op(
const AlgorithmIdentifier& alg_id,
111 std::string_view provider)
const override;
217 std::unique_ptr<Public_Key> public_key()
const override;
226 BOTAN_DEPRECATED(
"Use remaining_operations()") size_t unused_leaf_index() const;
231 BOTAN_DEPRECATED("Use remaining_operations()")
size_t remaining_signatures() const;
233 std::optional<uint64_t> remaining_operations() const override;
237 std::string_view provider) const override;
256 size_t reserve_unused_leaf_index();
279 size_t target_node_height,
287 size_t target_node_height,
291 std::shared_ptr<XMSS_PrivateKey_Internal> m_private;
bool stateful_operation() const override
const secure_vector< uint8_t > & root() const
secure_vector< uint8_t > m_root
const secure_vector< uint8_t > & public_seed() const
secure_vector< uint8_t > m_public_seed
const XMSS_Parameters & xmss_parameters() const
XMSS_Parameters m_xmss_params
std::vector< uint8_t > m_raw_key
size_t estimated_strength() const override
size_t key_length() const override
XMSS_WOTS_Parameters m_wots_params
std::string algo_name() const override
AlgorithmIdentifier algorithm_identifier() const override
bool check_key(RandomNumberGenerator &, bool) const override
int(* final)(unsigned char *, CTX *)
#define BOTAN_DIAGNOSTIC_POP
#define BOTAN_DIAGNOSTIC_PUSH
#define BOTAN_DIAGNOSTIC_IGNORE_INHERITED_VIA_DOMINANCE
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_DEPRECATED(msg)
Gf448Elem root(const Gf448Elem &elem)
Compute the root of elem in the field.
std::vector< T, secure_allocator< T > > secure_vector