Botan 3.5.0
Crypto and TLS for C&
Botan::LMS_Instance Class Reference

Base class for LMS private and public key. Contains public data associated with this LMS instance. More...

#include <lms.h>

Inheritance diagram for Botan::LMS_Instance:
Botan::LMS_PrivateKey Botan::LMS_PublicKey

Public Member Functions

const LMS_Identifieridentifier () const
 The identifier of this LMS tree ('I' in RFC 8554)
 
const LMOTS_Paramslmots_params () const
 The LMOTS parameters used for OTS instances of this LMS instance.
 
 LMS_Instance (LMS_Params lms_params, LMOTS_Params lmots_params, LMS_Identifier identifier)
 Constructor storing the provided LMS data.
 
const LMS_Paramslms_params () const
 The LMS parameters for this LMS instance.
 

Detailed Description

Base class for LMS private and public key. Contains public data associated with this LMS instance.

Definition at line 150 of file lms.h.

Constructor & Destructor Documentation

◆ LMS_Instance()

Botan::LMS_Instance::LMS_Instance ( LMS_Params lms_params,
LMOTS_Params lmots_params,
LMS_Identifier identifier )
inline

Constructor storing the provided LMS data.

Definition at line 155 of file lms.h.

155 :
156 m_lms_params(std::move(lms_params)),
157 m_lmots_params(std::move(lmots_params)),
158 m_identifier(std::move(identifier)) {}
const LMS_Params & lms_params() const
The LMS parameters for this LMS instance.
Definition lms.h:163
const LMOTS_Params & lmots_params() const
The LMOTS parameters used for OTS instances of this LMS instance.
Definition lms.h:168
const LMS_Identifier & identifier() const
The identifier of this LMS tree ('I' in RFC 8554)
Definition lms.h:173

Member Function Documentation

◆ identifier()

const LMS_Identifier & Botan::LMS_Instance::identifier ( ) const
inline

The identifier of this LMS tree ('I' in RFC 8554)

Definition at line 173 of file lms.h.

173{ return m_identifier; }

Referenced by Botan::LMS_PublicKey::LMS_PublicKey(), Botan::LMS_PrivateKey::sign_and_get_pk(), and Botan::LMS_PublicKey::to_bytes().

◆ lmots_params()

const LMOTS_Params & Botan::LMS_Instance::lmots_params ( ) const
inline

The LMOTS parameters used for OTS instances of this LMS instance.

Definition at line 168 of file lms.h.

168{ return m_lmots_params; }

Referenced by Botan::LMS_PublicKey::from_bytes_or_throw(), Botan::LMS_PrivateKey::sign_and_get_pk(), Botan::LMS_PublicKey::to_bytes(), Botan::HSS_LMS_PublicKeyInternal::verify_signature(), and Botan::LMS_PublicKey::verify_signature().

◆ lms_params()


The documentation for this class was generated from the following file: