Botan 3.5.0
Crypto and TLS for C&
Botan::TLS::Finished_13 Class Referencefinal

#include <tls_messages.h>

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

Public Member Functions

 Finished (const std::vector< uint8_t > &buf)
 
 Finished_13 (Cipher_State *cipher_state, const Transcript_Hash &transcript_hash)
 
std::vector< uint8_t > serialize () const override
 
Handshake_Type type () const override
 
std::string type_string () const
 
bool verify (Cipher_State *cipher_state, const Transcript_Hash &transcript_hash) 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

Definition at line 855 of file tls_messages.h.

Constructor & Destructor Documentation

◆ Finished_13()

Botan::TLS::Finished_13::Finished_13 ( Cipher_State * cipher_state,
const Transcript_Hash & transcript_hash )

Definition at line 80 of file msg_finished.cpp.

80 {
81 m_verification_data = cipher_state->finished_mac(transcript_hash);
82}
std::vector< uint8_t > m_verification_data

References Botan::TLS::Cipher_State::finished_mac(), and Botan::TLS::Finished::m_verification_data.

Member Function Documentation

◆ Finished()

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

Definition at line 833 of file msg_finished.cpp.

53: m_verification_data(buf) {}

◆ Handshake_Message() [1/3]

Botan::TLS::Handshake_Message::Handshake_Message ( )
protecteddefaultinherited

◆ Handshake_Message() [2/3]

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

◆ Handshake_Message() [3/3]

Botan::TLS::Handshake_Message::Handshake_Message ( Handshake_Message && )
protecteddefaultinherited

◆ serialize()

std::vector< uint8_t > Botan::TLS::Finished::serialize ( ) const
overridevirtualinherited
Returns
DER representation of this message

Implements Botan::TLS::Handshake_Message.

Definition at line 49 of file msg_finished.cpp.

49 {
51}

References Botan::TLS::Finished::m_verification_data.

◆ type()

Handshake_Type Botan::TLS::Finished::type ( ) const
inlineoverridevirtualinherited
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()

bool Botan::TLS::Finished_13::verify ( Cipher_State * cipher_state,
const Transcript_Hash & transcript_hash ) const

Definition at line 84 of file msg_finished.cpp.

84 {
85 return cipher_state->verify_peer_finished_mac(transcript_hash, m_verification_data);
86}

References Botan::TLS::Finished::m_verification_data, and Botan::TLS::Cipher_State::verify_peer_finished_mac().

◆ verify_data()

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

Definition at line 55 of file msg_finished.cpp.

55 {
57}

References Botan::TLS::Finished::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
protectedinherited

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