Botan 3.11.0
Crypto and TLS for C&
tls_magic.h File Reference

Public Header. More...

#include <botan/strong_type.h>
#include <botan/types.h>
#include <array>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  Botan
namespace  Botan::TLS

Typedefs

using Botan::TLS::Ticket_Nonce = Strong<std::vector<uint8_t>, struct Ticket_Nonce_>
 Used to derive the ticket's PSK from the resumption_master_secret.
using Botan::TLS::Transcript_Hash = std::vector<uint8_t>

Enumerations

enum class  Botan::TLS::Connection_Side : uint8_t { Botan::TLS::Client = 1 , Botan::TLS::Server = 2 , Botan::TLS::CLIENT = Client , Botan::TLS::SERVER = Server }
enum class  Botan::TLS::Handshake_Type : uint8_t {
  Botan::TLS::HelloRequest = 0 , Botan::TLS::ClientHello = 1 , Botan::TLS::ServerHello = 2 , Botan::TLS::HelloVerifyRequest = 3 ,
  Botan::TLS::NewSessionTicket = 4 , Botan::TLS::EndOfEarlyData = 5 , Botan::TLS::EncryptedExtensions = 8 , Botan::TLS::Certificate = 11 ,
  Botan::TLS::ServerKeyExchange = 12 , Botan::TLS::CertificateRequest = 13 , Botan::TLS::ServerHelloDone = 14 , Botan::TLS::CertificateVerify = 15 ,
  Botan::TLS::ClientKeyExchange = 16 , Botan::TLS::Finished = 20 , Botan::TLS::CertificateUrl = 21 , Botan::TLS::CertificateStatus = 22 ,
  Botan::TLS::KeyUpdate = 24 , Botan::TLS::HelloRetryRequest = 253 , Botan::TLS::HandshakeCCS = 254 , Botan::TLS::None = 255
}
enum class  Botan::TLS::Record_Type : uint8_t {
  Botan::TLS::Invalid = 0 , Botan::TLS::ChangeCipherSpec = 20 , Botan::TLS::Alert = 21 , Botan::TLS::Handshake = 22 ,
  Botan::TLS::ApplicationData = 23 , Botan::TLS::Heartbeat = 24
}
enum  Botan::TLS::Size_Limits : size_t {
  Botan::TLS::TLS_HEADER_SIZE = 5 , Botan::TLS::DTLS_HEADER_SIZE = TLS_HEADER_SIZE + 8 , Botan::TLS::MAX_PLAINTEXT_SIZE = 16 * 1024 , Botan::TLS::MAX_COMPRESSED_SIZE = MAX_PLAINTEXT_SIZE + 1024 ,
  Botan::TLS::MAX_CIPHERTEXT_SIZE = MAX_COMPRESSED_SIZE + 1024 , Botan::TLS::MAX_AEAD_EXPANSION_SIZE_TLS13 = 255 , Botan::TLS::MAX_CIPHERTEXT_SIZE_TLS13 = MAX_PLAINTEXT_SIZE + MAX_AEAD_EXPANSION_SIZE_TLS13 + 1
}

Functions

const char * Botan::TLS::handshake_type_to_string (Handshake_Type type)

Variables

constexpr uint64_t Botan::TLS::DOWNGRADE_TLS11 = 0x444F574E47524400
constexpr uint64_t Botan::TLS::DOWNGRADE_TLS12 = 0x444F574E47524401
constexpr std::array< uint8_t, 32 > Botan::TLS::HELLO_RETRY_REQUEST_MARKER

Detailed Description

Public Header.

Definition in file tls_magic.h.