|
Botan 3.11.0
Crypto and TLS for C&
|
#include <xmss_signature_operation.h>
Public Member Functions | |
| AlgorithmIdentifier | algorithm_identifier () const override |
| std::string | hash_function () const override |
| std::vector< uint8_t > | sign (RandomNumberGenerator &rng) override |
| size_t | signature_length () const override |
| void | update (std::span< const uint8_t > input) override |
| XMSS_Signature_Operation (const XMSS_PrivateKey &private_key) | |
Signature generation operation for Extended Hash-Based Signatures (XMSS) as defined in:
[1] XMSS: Extended Hash-Based Signatures, Request for Comments: 8391 Release: May 2018. https://datatracker.ietf.org/doc/rfc8391/
Definition at line 29 of file xmss_signature_operation.h.
|
explicit |
Definition at line 23 of file xmss_signature_operation.cpp.
|
overridevirtual |
Return an algorithm identifier associated with this signature scheme.
Default implementation throws an exception
Reimplemented from Botan::PK_Ops::Signature.
Definition at line 90 of file xmss_signature_operation.cpp.
References Botan::OID::from_string(), and Botan::AlgorithmIdentifier::USE_EMPTY_PARAM.
|
inlineoverridevirtual |
Return the hash function being used by this signer
Implements Botan::PK_Ops::Signature.
Definition at line 47 of file xmss_signature_operation.h.
|
overridevirtual |
Creates an XMSS signature for the message provided through call to update().
Implements Botan::PK_Ops::Signature.
Definition at line 41 of file xmss_signature_operation.cpp.
References Botan::XMSS_Signature::TreeSignature::authentication_path, Botan::XMSS_Signature::bytes(), Botan::XMSS_Address::Hash_Tree_Address, Botan::XMSS_Address::OTS_Hash_Address, Botan::XMSS_Signature::TreeSignature::ots_signature, Botan::XMSS_Address::set_ots_address(), and Botan::XMSS_Address::set_type().
|
overridevirtual |
Return an upper bound on the length of the output signature
Implements Botan::PK_Ops::Signature.
Definition at line 30 of file xmss_signature_operation.cpp.
|
overridevirtual |
Add more data to the message currently being signed
| input | the input to be hashed/signed |
Implements Botan::PK_Ops::Signature.
Definition at line 36 of file xmss_signature_operation.cpp.