Botan 3.5.0
Crypto and TLS for C&
|
Container for LMS Signature data. More...
#include <lms.h>
Public Member Functions | |
StrongSpan< const LMS_AuthenticationPath > | auth_path () const |
The authentication path bytes given by the signature. | |
const LMOTS_Signature & | lmots_sig () const |
The LMOTS signature object containing the parsed LMOTS signature bytes contained in the LMS signature. | |
LMS_Algorithm_Type | lms_type () const |
The LMS algorithm type given by the signature. | |
LMS_Tree_Node_Idx | q () const |
The index of the signing leaf given by the signature. | |
Static Public Member Functions | |
static LMS_Signature | from_bytes_or_throw (BufferSlicer &slicer) |
Parse the bytes of a lms signature into a LMS Signature object. | |
static size_t | size (const LMS_Params &lms_params, const LMOTS_Params &lmots_params) |
Container for LMS Signature data.
Contains a method for secure signature parsing.
|
inline |
The authentication path bytes given by the signature.
('path[0] || ... || path[h-1]' in RFC 8554 5.4)
Definition at line 322 of file lms.h.
Referenced by from_bytes_or_throw().
|
static |
Parse the bytes of a lms signature into a LMS Signature object.
slicer | A BufferSlicer object at the position of the LMS_Signature to parse |
Decoding_Error | If parsing the signature fails. |
Definition at line 316 of file lms.cpp.
References Botan::LMOTS_Signature::algorithm_type(), auth_path(), Botan::BufferSlicer::copy(), Botan::LMOTS_Params::create_or_throw(), Botan::LMS_Params::create_or_throw(), Botan::LMOTS_Signature::from_bytes_or_throw(), Botan::LMS_Params::h(), lmots_sig(), lms_type(), Botan::load_be(), Botan::LMS_Params::m(), q(), Botan::BufferSlicer::remaining(), size(), and Botan::BufferSlicer::take().
Referenced by Botan::HSS_Signature::from_bytes_or_throw().
|
inline |
The LMOTS signature object containing the parsed LMOTS signature bytes contained in the LMS signature.
Definition at line 310 of file lms.h.
Referenced by from_bytes_or_throw(), and Botan::LMS_PublicKey::verify_signature().
|
inline |
The LMS algorithm type given by the signature.
Definition at line 315 of file lms.h.
Referenced by from_bytes_or_throw(), and Botan::LMS_PublicKey::verify_signature().
|
inline |
The index of the signing leaf given by the signature.
Definition at line 304 of file lms.h.
Referenced by from_bytes_or_throw(), and Botan::LMS_PublicKey::verify_signature().
|
static |
Definition at line 418 of file lms.cpp.
References Botan::LMS_Params::h(), Botan::LMS_Params::m(), and Botan::LMOTS_Signature::size().
Referenced by from_bytes_or_throw(), Botan::HSS_LMS_PrivateKeyInternal::sign(), Botan::LMS_PrivateKey::sign_and_get_pk(), and Botan::HSS_Signature::size().