12#include <botan/pk_keys.h>
13#include <botan/xmss_parameters.h>
22class XMSS_PublicKey_Internal;
23class XMSS_PrivateKey_Internal;
81 std::string
algo_name()
const override {
return "XMSS"; }
89 size_t estimated_strength()
const override;
91 size_t key_length()
const override;
100 std::vector<uint8_t> raw_public_key_bits()
const override;
108 std::vector<uint8_t> public_key_bits()
const override;
110 BOTAN_DEPRECATED(
"Use raw_public_key_bits()") std::vector<uint8_t> raw_public_key() const;
116 std::unique_ptr<PK_Ops::Verification> create_verification_op(std::string_view params,
117 std::string_view provider)
const override;
119 std::unique_ptr<PK_Ops::Verification> create_x509_verification_op(
const AlgorithmIdentifier& alg_id,
120 std::string_view provider)
const override;
132 std::shared_ptr<const XMSS_PublicKey_Internal> m_public_key;
138class XMSS_Index_Registry;
231 std::unique_ptr<Public_Key> public_key()
const override;
240 BOTAN_DEPRECATED(
"Use remaining_operations()") size_t unused_leaf_index() const;
245 BOTAN_DEPRECATED(
"Use remaining_operations()")
size_t remaining_signatures() const;
247 std::optional<uint64_t> remaining_operations() const override;
250 std::string_view params,
251 std::string_view provider) const override;
274 struct Keygen_Material;
278 Keygen_Material material);
280 static Keygen_Material generate_keygen_material(
XMSS_Parameters::xmss_algorithm_t xmss_algo_id,
284 size_t reserve_unused_leaf_index();
304 size_t target_node_height,
308 std::shared_ptr<const XMSS_PrivateKey_Internal> m_private;
#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)
#define BOTAN_FUTURE_EXPLICIT
virtual OID object_identifier() const
bool stateful_operation() const override
friend class XMSS_Signature_Operation
WOTS_Derivation_Method wots_derivation_method() const
XMSS_PrivateKey(XMSS_Parameters::xmss_algorithm_t xmss_algo_id, RandomNumberGenerator &rng, WOTS_Derivation_Method wots_derivation_method=WOTS_Derivation_Method::NIST_SP800_208)
const secure_vector< uint8_t > & root() const
const secure_vector< uint8_t > & public_seed() const
const XMSS_Parameters & xmss_parameters() const
bool supports_operation(PublicKeyOperation op) const override
friend class XMSS_Verification_Operation
std::string algo_name() const override
AlgorithmIdentifier algorithm_identifier() const override
XMSS_PublicKey(XMSS_Parameters::xmss_algorithm_t xmss_oid, RandomNumberGenerator &rng)
std::vector< T, secure_allocator< T > > secure_vector