12#include <botan/pk_keys.h>
13#include <botan/xmss_parameters.h>
22class XMSS_PublicKey_Internal;
23class XMSS_PrivateKey_Internal;
71 std::string
algo_name()
const override {
return "XMSS"; }
79 size_t estimated_strength()
const override;
81 size_t key_length()
const override;
90 std::vector<uint8_t> raw_public_key_bits()
const override;
98 std::vector<uint8_t> public_key_bits()
const override;
100 BOTAN_DEPRECATED(
"Use raw_public_key_bits()") std::vector<uint8_t> raw_public_key() const;
106 std::unique_ptr<PK_Ops::Verification> create_verification_op(std::string_view params,
107 std::string_view provider)
const override;
109 std::unique_ptr<PK_Ops::Verification> create_x509_verification_op(
const AlgorithmIdentifier& alg_id,
110 std::string_view provider)
const override;
124 std::shared_ptr<XMSS_PublicKey_Internal> m_public_key;
130class XMSS_Index_Registry;
214 std::unique_ptr<Public_Key> public_key()
const override;
223 BOTAN_DEPRECATED(
"Use remaining_operations()") size_t unused_leaf_index() const;
228 BOTAN_DEPRECATED(
"Use remaining_operations()")
size_t remaining_signatures() const;
230 std::optional<uint64_t> remaining_operations() const override;
233 std::string_view params,
234 std::string_view provider) const override;
254 size_t reserve_unused_leaf_index();
275 size_t target_node_height,
281 size_t target_node_height,
285 std::shared_ptr<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
void set_root(secure_vector< uint8_t > root)
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