Botan 3.5.0
Crypto and TLS for C&
|
Representation of a LM-OTS signature. More...
#include <lm_ots.h>
Public Member Functions | |
LMOTS_Algorithm_Type | algorithm_type () const |
Returns the LM-OTS algorithm type. | |
std::span< const uint8_t > | C () const |
The n-byte randomizer of the signature. | |
StrongSpan< const LMOTS_Node > | y (uint16_t chain_idx) const |
Returns the part of the signature for chain_idx . | |
Static Public Member Functions | |
static LMOTS_Signature | from_bytes_or_throw (BufferSlicer &slicer) |
Parse a LM-OTS signature. | |
static size_t | size (const LMOTS_Params ¶ms) |
The expected size of the signature. | |
|
inline |
Returns the LM-OTS algorithm type.
Definition at line 192 of file lm_ots.h.
Referenced by from_bytes_or_throw(), Botan::LMS_Signature::from_bytes_or_throw(), Botan::lmots_compute_pubkey_from_sig(), and Botan::LMS_PublicKey::verify_signature().
|
inline |
The n-byte randomizer of the signature.
Definition at line 197 of file lm_ots.h.
Referenced by from_bytes_or_throw(), and Botan::lmots_compute_pubkey_from_sig().
|
static |
Parse a LM-OTS signature.
slicer | The private key bytes to parse. |
Decoding_Error | If parsing the signature fails. |
Definition at line 234 of file lm_ots.cpp.
References algorithm_type(), C(), Botan::BufferSlicer::copy_as_vector(), Botan::LMOTS_Params::create_or_throw(), Botan::load_be(), Botan::LMOTS_Params::n(), Botan::LMOTS_Params::p(), Botan::BufferSlicer::remaining(), size(), and Botan::BufferSlicer::take().
Referenced by Botan::LMS_Signature::from_bytes_or_throw().
|
inlinestatic |
The expected size of the signature.
Definition at line 207 of file lm_ots.h.
References Botan::LMOTS_Params::n(), and Botan::LMOTS_Params::p().
Referenced by from_bytes_or_throw(), Botan::LMOTS_Private_Key::sign(), Botan::LMS_PrivateKey::sign_and_get_pk(), and Botan::LMS_Signature::size().
|
inline |
Returns the part of the signature for chain_idx
.
Definition at line 202 of file lm_ots.h.
Referenced by Botan::lmots_compute_pubkey_from_sig().