Botan 3.5.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 |
secure_vector< uint8_t > | sign (RandomNumberGenerator &) override |
size_t | signature_length () const override |
void | update (const uint8_t msg[], size_t msg_len) 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 28 of file xmss_signature_operation.h.
Botan::XMSS_Signature_Operation::XMSS_Signature_Operation | ( | const XMSS_PrivateKey & | private_key | ) |
Definition at line 22 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 101 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 46 of file xmss_signature_operation.h.
References Botan::XMSS_Hash::hash_function().
|
overridevirtual |
Creates an XMSS signature for the message provided through call to update().
Implements Botan::PK_Ops::Signature.
Definition at line 74 of file xmss_signature_operation.cpp.
References Botan::XMSS_Hash::h_msg_final(), and sign().
Referenced by sign().
|
overridevirtual |
Return an upper bound on the length of the output signature
Implements Botan::PK_Ops::Signature.
Definition at line 50 of file xmss_signature_operation.cpp.
References Botan::XMSS_Parameters::element_size(), and Botan::XMSS_PublicKey::xmss_parameters().
|
overridevirtual |
Add more data to the message currently being signed
msg | the message |
msg_len | the length of msg in bytes |
Implements Botan::PK_Ops::Signature.
Definition at line 69 of file xmss_signature_operation.cpp.
References Botan::XMSS_Hash::h_msg_update().