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

#include <tls_extensions.h>

Inheritance diagram for Botan::TLS::Encrypt_then_MAC:
Botan::TLS::Extension

Public Member Functions

bool empty () const override
 
 Encrypt_then_MAC ()=default
 
 Encrypt_then_MAC (TLS_Data_Reader &reader, uint16_t extension_size)
 
virtual bool is_implemented () const
 
std::vector< uint8_t > serialize (Connection_Side whoami) const override
 
Extension_Code type () const override
 

Static Public Member Functions

static Extension_Code static_type ()
 

Detailed Description

Encrypt-then-MAC Extension (RFC 7366)

Definition at line 478 of file tls_extensions.h.

Constructor & Destructor Documentation

◆ Encrypt_then_MAC() [1/2]

Botan::TLS::Encrypt_then_MAC::Encrypt_then_MAC ( )
default

◆ Encrypt_then_MAC() [2/2]

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

Definition at line 697 of file tls_extensions.cpp.

697 {
698 if(extension_size != 0) {
699 throw Decoding_Error("Invalid encrypt_then_mac extension");
700 }
701}

Member Function Documentation

◆ empty()

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

Implements Botan::TLS::Extension.

Definition at line 486 of file tls_extensions.h.

486{ return false; }

◆ 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::Encrypt_then_MAC::serialize ( Connection_Side whoami) const
overridevirtual
Returns
serialized binary for the extension

Implements Botan::TLS::Extension.

Definition at line 703 of file tls_extensions.cpp.

703 {
704 return std::vector<uint8_t>();
705}

◆ static_type()

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

Definition at line 480 of file tls_extensions.h.

◆ type()

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

Implements Botan::TLS::Extension.

Definition at line 482 of file tls_extensions.h.

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

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