Botan 3.6.1
Crypto and TLS for C&
Botan::TLS::Signature_Algorithms Class Referencefinal

#include <tls_extensions.h>

Inheritance diagram for Botan::TLS::Signature_Algorithms:
Botan::TLS::Extension

Public Member Functions

bool empty () const override
 
virtual bool is_implemented () const
 
std::vector< uint8_t > serialize (Connection_Side whoami) const override
 
 Signature_Algorithms (std::vector< Signature_Scheme > schemes)
 
 Signature_Algorithms (TLS_Data_Reader &reader, uint16_t extension_size)
 
const std::vector< Signature_Scheme > & supported_schemes () const
 
Extension_Code type () const override
 

Static Public Member Functions

static Extension_Code static_type ()
 

Detailed Description

Signature Algorithms Extension for TLS 1.2 (RFC 5246)

Definition at line 379 of file tls_extensions.h.

Constructor & Destructor Documentation

◆ Signature_Algorithms() [1/2]

Botan::TLS::Signature_Algorithms::Signature_Algorithms ( std::vector< Signature_Scheme > schemes)
inlineexplicit

Definition at line 391 of file tls_extensions.h.

391: m_schemes(std::move(schemes)) {}

◆ Signature_Algorithms() [2/2]

Botan::TLS::Signature_Algorithms::Signature_Algorithms ( TLS_Data_Reader & reader,
uint16_t extension_size )

Definition at line 644 of file tls_extensions.cpp.

644 :
645 m_schemes(parse_signature_algorithms(reader, extension_size)) {}

Member Function Documentation

◆ empty()

bool Botan::TLS::Signature_Algorithms::empty ( ) const
inlineoverridevirtual
Returns
if we should encode this extension or not

Implements Botan::TLS::Extension.

Definition at line 389 of file tls_extensions.h.

389{ return m_schemes.empty(); }

◆ is_implemented()

virtual bool Botan::TLS::Extension::is_implemented ( ) const
inlinevirtualinherited
Returns
true if this extension is known and implemented by Botan

Reimplemented in Botan::TLS::Unknown_Extension.

Definition at line 116 of file tls_extensions.h.

116{ return true; }

◆ serialize()

std::vector< uint8_t > Botan::TLS::Signature_Algorithms::serialize ( Connection_Side whoami) const
overridevirtual
Returns
serialized binary for the extension

Implements Botan::TLS::Extension.

Definition at line 640 of file tls_extensions.cpp.

640 {
641 return serialize_signature_algorithms(m_schemes);
642}

Referenced by Botan::TLS::Certificate_Request_12::serialize().

◆ static_type()

static Extension_Code Botan::TLS::Signature_Algorithms::static_type ( )
inlinestatic

Definition at line 381 of file tls_extensions.h.

◆ supported_schemes()

const std::vector< Signature_Scheme > & Botan::TLS::Signature_Algorithms::supported_schemes ( ) const
inline

Definition at line 385 of file tls_extensions.h.

385{ return m_schemes; }

◆ type()

Extension_Code Botan::TLS::Signature_Algorithms::type ( ) const
inlineoverridevirtual
Returns
code number of the extension

Implements Botan::TLS::Extension.

Definition at line 383 of file tls_extensions.h.

383{ return static_type(); }
static Extension_Code static_type()

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