Botan 3.6.1
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 (const 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 831 of file tls_messages.h.

Constructor & Destructor Documentation

◆ Finished()

Botan::TLS::Finished::Finished ( const std::vector< uint8_t > & buf)
explicit

Definition at line 53 of file msg_finished.cpp.

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

Member Function Documentation

◆ Handshake_Message() [1/3]

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

◆ 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
overridevirtual
Returns
DER representation of this message

Implements Botan::TLS::Handshake_Message.

Definition at line 49 of file msg_finished.cpp.

49 {
51}

References m_verification_data.

◆ type()

Handshake_Type Botan::TLS::Finished::type ( ) const
inlineoverridevirtual
Returns
the message type

Implements Botan::TLS::Handshake_Message.

Definition at line 835 of file tls_messages.h.

◆ type_string()

std::string Botan::TLS::Handshake_Message::type_string ( ) const
inherited
Returns
string representation of this message type

Definition at line 19 of file tls_handshake_state.cpp.

19 {
21}
virtual Handshake_Type type() const =0
const char * handshake_type_to_string(Handshake_Type type)

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

◆ verify_data()

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

Definition at line 55 of file msg_finished.cpp.

55 {
57}

References m_verification_data.

◆ wire_type()

virtual Handshake_Type Botan::TLS::Handshake_Message::wire_type ( ) const
inlinevirtualinherited
Returns
the wire representation of the message's type

Reimplemented in Botan::TLS::Hello_Retry_Request.

Definition at line 39 of file tls_handshake_msg.h.

39 {
40 // Usually equal to the Handshake_Type enum value,
41 // with the exception of TLS 1.3 Hello Retry Request.
42 return type();
43 }

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 files: