Botan  2.12.1
Crypto and TLS for C++11
Public Member Functions | Static Public Member Functions | List of all members
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)
 
std::vector< uint8_t > serialize (Connection_Side whoami) const override
 
Handshake_Extension_Type type () const override
 

Static Public Member Functions

static Handshake_Extension_Type static_type ()
 

Detailed Description

Encrypt-then-MAC Extension (RFC 7366)

Definition at line 374 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 504 of file tls_extensions.cpp.

506  {
507  if(extension_size != 0)
508  throw Decoding_Error("Invalid encrypt_then_mac extension");
509  }

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 384 of file tls_extensions.h.

384 { return false; }

◆ 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 511 of file tls_extensions.cpp.

512  {
513  return std::vector<uint8_t>();
514  }

◆ static_type()

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

◆ type()

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

Implements Botan::TLS::Extension.

Definition at line 380 of file tls_extensions.h.

380 { return static_type(); }
static Handshake_Extension_Type static_type()

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