Botan 3.13.0
Crypto and TLS for C&
Botan::TLS::Finished Class Reference

#include <tls_messages.h>

Inheritance diagram for Botan::TLS::Finished:
Botan::TLS::Handshake_Message Botan::TLS::Finished_12 Botan::TLS::Finished_13

Public Member Functions

 Finished (std::vector< uint8_t > buf)
std::vector< uint8_t > serialize () const override
Handshake_Type type () const override
std::string type_string () const
std::vector< uint8_t > verify_data () const
virtual Handshake_Type wire_type () const

Protected Member Functions

 Handshake_Message ()=default
 Handshake_Message (const Handshake_Message &)=delete
 Handshake_Message (Handshake_Message &&)=default

Protected Attributes

std::vector< uint8_t > m_verification_data

Detailed Description

Finished Message

Definition at line 268 of file tls_messages.h.

Constructor & Destructor Documentation

◆ Finished()

Botan::TLS::Finished::Finished ( std::vector< uint8_t > buf)
inlineexplicit

Definition at line 270 of file tls_messages.h.

270: m_verification_data(std::move(buf)) {}
std::vector< uint8_t > m_verification_data

References m_verification_data.

Member Function Documentation

◆ Handshake_Message() [1/3]

◆ Handshake_Message() [2/3]

Botan::TLS::Handshake_Message::Handshake_Message ( const Handshake_Message & )
protecteddelete

◆ Handshake_Message() [3/3]

Botan::TLS::Handshake_Message::Handshake_Message ( Handshake_Message && )
protecteddefault

◆ serialize()

std::vector< uint8_t > Botan::TLS::Finished::serialize ( ) const
inlineoverridevirtual

Serialize this handshake message

Implements Botan::TLS::Handshake_Message.

Definition at line 276 of file tls_messages.h.

276{ return m_verification_data; }

References m_verification_data.

◆ type()

Handshake_Type Botan::TLS::Finished::type ( ) const
inlineoverridevirtual

Return the TLS handshake type code

Returns
the message type

Implements Botan::TLS::Handshake_Message.

Definition at line 272 of file tls_messages.h.

References Botan::TLS::Finished.

◆ type_string()

std::string Botan::TLS::Handshake_Message::type_string ( ) const
inherited

Return a free-form string describing this message type

Returns
string representation of this message type

Definition at line 21 of file tls_handshake_state.cpp.

21 {
23}
virtual Handshake_Type type() const =0
const char * handshake_type_to_string(Handshake_Type type)
Definition tls_magic.cpp:15

References Botan::TLS::handshake_type_to_string(), and type().

◆ verify_data()

std::vector< uint8_t > Botan::TLS::Finished::verify_data ( ) const
inline

Definition at line 274 of file tls_messages.h.

274{ return m_verification_data; }

References m_verification_data.

◆ wire_type()

virtual Handshake_Type Botan::TLS::Handshake_Message::wire_type ( ) const
inlinevirtualinherited

Return the wire encoding of the message type code

Note
This is usually equal to type with the exception of a TLS 1.3 Helloy Retry Request.
Returns
the wire representation of the message's type

Reimplemented in Botan::TLS::Hello_Retry_Request.

Definition at line 47 of file tls_handshake_msg.h.

47{ return type(); }

References type().

Referenced by Botan::TLS::Stream_Handshake_IO::send().

Member Data Documentation

◆ m_verification_data

std::vector<uint8_t> Botan::TLS::Finished::m_verification_data
protected

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