Botan 3.5.0
Crypto and TLS for C&
Botan::HSS_Signature::Signed_Pub_Key Class Reference

A LMS public key signed by the HSS layer above it. More...

#include <hss.h>

Public Member Functions

const LMS_PublicKeypublic_key () const
 The signed public key.
 
const LMS_Signaturesignature () const
 The signature of the public key.
 
 Signed_Pub_Key (LMS_Signature sig, LMS_PublicKey pub)
 Constructor for a new sig-pubkey-pair.
 

Detailed Description

A LMS public key signed by the HSS layer above it.

signed_pub_key[i] = sig[i] || pub[i+1], for i between 0 and Nspk-1, inclusive.

Definition at line 322 of file hss.h.

Constructor & Destructor Documentation

◆ Signed_Pub_Key()

Botan::HSS_Signature::Signed_Pub_Key::Signed_Pub_Key ( LMS_Signature sig,
LMS_PublicKey pub )

Constructor for a new sig-pubkey-pair.

Definition at line 369 of file hss.cpp.

369 :
370 m_sig(std::move(sig)), m_pub(std::move(pub)) {}

Member Function Documentation

◆ public_key()

const LMS_PublicKey & Botan::HSS_Signature::Signed_Pub_Key::public_key ( ) const
inline

The signed public key.

Definition at line 337 of file hss.h.

337{ return m_pub; }

Referenced by Botan::HSS_LMS_PublicKeyInternal::verify_signature().

◆ signature()

const LMS_Signature & Botan::HSS_Signature::Signed_Pub_Key::signature ( ) const
inline

The signature of the public key.

Definition at line 332 of file hss.h.

332{ return m_sig; }

Referenced by Botan::HSS_LMS_PublicKeyInternal::verify_signature().


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