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

Base class for LMOTS private and public key. Contains the parameters for the specific OTS instance. More...

#include <lm_ots.h>

Inheritance diagram for Botan::OTS_Instance:
Botan::LMOTS_Private_Key Botan::LMOTS_Public_Key

Public Member Functions

const LMS_Identifieridentifier () const
 The LMS identifier of the LMS tree containing this OTS instance ('I' in RFC 8554)
 
 OTS_Instance (const LMOTS_Params &params, const LMS_Identifier &identifier, LMS_Tree_Node_Idx q)
 Constructor storing the specific OTS parameters.
 
const LMOTS_Paramsparams () const
 The LMOTS parameters.
 
LMS_Tree_Node_Idx q () const
 The index of the LMS tree leaf associated with this OTS instance.
 

Detailed Description

Base class for LMOTS private and public key. Contains the parameters for the specific OTS instance.

Definition at line 222 of file lm_ots.h.

Constructor & Destructor Documentation

◆ OTS_Instance()

Botan::OTS_Instance::OTS_Instance ( const LMOTS_Params & params,
const LMS_Identifier & identifier,
LMS_Tree_Node_Idx q )
inline

Constructor storing the specific OTS parameters.

Definition at line 227 of file lm_ots.h.

227 :
228 m_params(params), m_identifier(identifier), m_q(q) {}
const LMS_Identifier & identifier() const
The LMS identifier of the LMS tree containing this OTS instance ('I' in RFC 8554)
Definition lm_ots.h:238
LMS_Tree_Node_Idx q() const
The index of the LMS tree leaf associated with this OTS instance.
Definition lm_ots.h:243
const LMOTS_Params & params() const
The LMOTS parameters.
Definition lm_ots.h:233

Member Function Documentation

◆ identifier()

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

The LMS identifier of the LMS tree containing this OTS instance ('I' in RFC 8554)

Definition at line 238 of file lm_ots.h.

238{ return m_identifier; }

Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), and Botan::LMOTS_Private_Key::sign().

◆ params()

const LMOTS_Params & Botan::OTS_Instance::params ( ) const
inline

The LMOTS parameters.

Definition at line 233 of file lm_ots.h.

233{ return m_params; }

Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), and Botan::LMOTS_Private_Key::sign().

◆ q()

LMS_Tree_Node_Idx Botan::OTS_Instance::q ( ) const
inline

The index of the LMS tree leaf associated with this OTS instance.

Definition at line 243 of file lm_ots.h.

243{ return m_q; }

Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), and Botan::LMOTS_Private_Key::sign().


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