TianoCore EDK2 master
Loading...
Searching...
No Matches
Tls1.h File Reference

Go to the source code of this file.

Data Structures

struct  TLS_RECORD_HEADER
 

Macros

#define TLS_RSA_WITH_NULL_MD5   {0x00, 0x01}
 
#define TLS_RSA_WITH_NULL_SHA   {0x00, 0x02}
 
#define TLS_RSA_WITH_RC4_128_MD5   {0x00, 0x04}
 
#define TLS_RSA_WITH_RC4_128_SHA   {0x00, 0x05}
 
#define TLS_RSA_WITH_IDEA_CBC_SHA   {0x00, 0x07}
 
#define TLS_RSA_WITH_DES_CBC_SHA   {0x00, 0x09}
 
#define TLS_RSA_WITH_3DES_EDE_CBC_SHA   {0x00, 0x0A}
 
#define TLS_DH_DSS_WITH_DES_CBC_SHA   {0x00, 0x0C}
 
#define TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA   {0x00, 0x0D}
 
#define TLS_DH_RSA_WITH_DES_CBC_SHA   {0x00, 0x0F}
 
#define TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA   {0x00, 0x10}
 
#define TLS_DHE_DSS_WITH_DES_CBC_SHA   {0x00, 0x12}
 
#define TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA   {0x00, 0x13}
 
#define TLS_DHE_RSA_WITH_DES_CBC_SHA   {0x00, 0x15}
 
#define TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA   {0x00, 0x16}
 
#define TLS_RSA_WITH_AES_128_CBC_SHA   {0x00, 0x2F}
 
#define TLS_DH_DSS_WITH_AES_128_CBC_SHA   {0x00, 0x30}
 
#define TLS_DH_RSA_WITH_AES_128_CBC_SHA   {0x00, 0x31}
 
#define TLS_DHE_DSS_WITH_AES_128_CBC_SHA   {0x00, 0x32}
 
#define TLS_DHE_RSA_WITH_AES_128_CBC_SHA   {0x00, 0x33}
 
#define TLS_RSA_WITH_AES_256_CBC_SHA   {0x00, 0x35}
 
#define TLS_DH_DSS_WITH_AES_256_CBC_SHA   {0x00, 0x36}
 
#define TLS_DH_RSA_WITH_AES_256_CBC_SHA   {0x00, 0x37}
 
#define TLS_DHE_DSS_WITH_AES_256_CBC_SHA   {0x00, 0x38}
 
#define TLS_DHE_RSA_WITH_AES_256_CBC_SHA   {0x00, 0x39}
 
#define TLS_RSA_WITH_NULL_SHA256   {0x00, 0x3B}
 
#define TLS_RSA_WITH_AES_128_CBC_SHA256   {0x00, 0x3C}
 
#define TLS_RSA_WITH_AES_256_CBC_SHA256   {0x00, 0x3D}
 
#define TLS_DH_DSS_WITH_AES_128_CBC_SHA256   {0x00, 0x3E}
 
#define TLS_DH_RSA_WITH_AES_128_CBC_SHA256   {0x00, 0x3F}
 
#define TLS_DHE_DSS_WITH_AES_128_CBC_SHA256   {0x00, 0x40}
 
#define TLS_DHE_RSA_WITH_AES_128_CBC_SHA256   {0x00, 0x67}
 
#define TLS_DH_DSS_WITH_AES_256_CBC_SHA256   {0x00, 0x68}
 
#define TLS_DH_RSA_WITH_AES_256_CBC_SHA256   {0x00, 0x69}
 
#define TLS_DHE_DSS_WITH_AES_256_CBC_SHA256   {0x00, 0x6A}
 
#define TLS_DHE_RSA_WITH_AES_256_CBC_SHA256   {0x00, 0x6B}
 
#define TLS_DHE_RSA_WITH_AES_256_GCM_SHA384   {0x00, 0x9F}
 
#define TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256   {0xC0, 0x2B}
 
#define TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384   {0xC0, 0x2C}
 
#define TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384   {0xC0, 0x30}
 
#define TLS10_PROTOCOL_VERSION_MAJOR   0x03
 
#define TLS10_PROTOCOL_VERSION_MINOR   0x01
 
#define TLS11_PROTOCOL_VERSION_MAJOR   0x03
 
#define TLS11_PROTOCOL_VERSION_MINOR   0x02
 
#define TLS12_PROTOCOL_VERSION_MAJOR   0x03
 
#define TLS12_PROTOCOL_VERSION_MINOR   0x03
 
#define TLS_RECORD_HEADER_LENGTH   5
 
#define TLS_PLAINTEXT_RECORD_MAX_PAYLOAD_LENGTH   16384
 
#define TLS_CIPHERTEXT_RECORD_MAX_PAYLOAD_LENGTH   18432
 

Enumerations

enum  TLS_CONTENT_TYPE { TlsContentTypeChangeCipherSpec = 20 , TlsContentTypeAlert = 21 , TlsContentTypeHandshake = 22 , TlsContentTypeApplicationData = 23 }
 
enum  TLS_HASH_ALGO {
  TlsHashAlgoNone = 0 , TlsHashAlgoMd5 = 1 , TlsHashAlgoSha1 = 2 , TlsHashAlgoSha224 = 3 ,
  TlsHashAlgoSha256 = 4 , TlsHashAlgoSha384 = 5 , TlsHashAlgoSha512 = 6
}
 
enum  TLS_SIGNATURE_ALGO { TlsSignatureAlgoAnonymous = 0 , TlsSignatureAlgoRsa = 1 , TlsSignatureAlgoDsa = 2 , TlsSignatureAlgoEcdsa = 3 }
 
enum  TLS_EC_NAMED_CURVE {
  TlsEcNamedCurveSecp256r1 = 23 , TlsEcNamedCurveSecp384r1 = 24 , TlsEcNamedCurveSecp521r1 = 25 , TlsEcNamedCurveX25519 = 29 ,
  TlsEcNamedCurveX448 = 30
}
 

Detailed Description

Transport Layer Security – TLS 1.0/1.1/1.2 Standard definitions, from RFC 2246/4346/5246

This file contains common TLS 1.0/1.1/1.2 definitions from RFC 2246/4346/5246

Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Tls1.h.

Macro Definition Documentation

◆ TLS10_PROTOCOL_VERSION_MAJOR

#define TLS10_PROTOCOL_VERSION_MAJOR   0x03

TLS Version, refers to A.1 of rfc-2246, rfc-4346 and rfc-5246.

Definition at line 62 of file Tls1.h.

◆ TLS10_PROTOCOL_VERSION_MINOR

#define TLS10_PROTOCOL_VERSION_MINOR   0x01

Definition at line 63 of file Tls1.h.

◆ TLS11_PROTOCOL_VERSION_MAJOR

#define TLS11_PROTOCOL_VERSION_MAJOR   0x03

Definition at line 64 of file Tls1.h.

◆ TLS11_PROTOCOL_VERSION_MINOR

#define TLS11_PROTOCOL_VERSION_MINOR   0x02

Definition at line 65 of file Tls1.h.

◆ TLS12_PROTOCOL_VERSION_MAJOR

#define TLS12_PROTOCOL_VERSION_MAJOR   0x03

Definition at line 66 of file Tls1.h.

◆ TLS12_PROTOCOL_VERSION_MINOR

#define TLS12_PROTOCOL_VERSION_MINOR   0x03

Definition at line 67 of file Tls1.h.

◆ TLS_CIPHERTEXT_RECORD_MAX_PAYLOAD_LENGTH

#define TLS_CIPHERTEXT_RECORD_MAX_PAYLOAD_LENGTH   18432

Definition at line 100 of file Tls1.h.

◆ TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA

#define TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA   {0x00, 0x0D}

Definition at line 26 of file Tls1.h.

◆ TLS_DH_DSS_WITH_AES_128_CBC_SHA

#define TLS_DH_DSS_WITH_AES_128_CBC_SHA   {0x00, 0x30}

Definition at line 34 of file Tls1.h.

◆ TLS_DH_DSS_WITH_AES_128_CBC_SHA256

#define TLS_DH_DSS_WITH_AES_128_CBC_SHA256   {0x00, 0x3E}

Definition at line 46 of file Tls1.h.

◆ TLS_DH_DSS_WITH_AES_256_CBC_SHA

#define TLS_DH_DSS_WITH_AES_256_CBC_SHA   {0x00, 0x36}

Definition at line 39 of file Tls1.h.

◆ TLS_DH_DSS_WITH_AES_256_CBC_SHA256

#define TLS_DH_DSS_WITH_AES_256_CBC_SHA256   {0x00, 0x68}

Definition at line 50 of file Tls1.h.

◆ TLS_DH_DSS_WITH_DES_CBC_SHA

#define TLS_DH_DSS_WITH_DES_CBC_SHA   {0x00, 0x0C}

Definition at line 25 of file Tls1.h.

◆ TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA

#define TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA   {0x00, 0x10}

Definition at line 28 of file Tls1.h.

◆ TLS_DH_RSA_WITH_AES_128_CBC_SHA

#define TLS_DH_RSA_WITH_AES_128_CBC_SHA   {0x00, 0x31}

Definition at line 35 of file Tls1.h.

◆ TLS_DH_RSA_WITH_AES_128_CBC_SHA256

#define TLS_DH_RSA_WITH_AES_128_CBC_SHA256   {0x00, 0x3F}

Definition at line 47 of file Tls1.h.

◆ TLS_DH_RSA_WITH_AES_256_CBC_SHA

#define TLS_DH_RSA_WITH_AES_256_CBC_SHA   {0x00, 0x37}

Definition at line 40 of file Tls1.h.

◆ TLS_DH_RSA_WITH_AES_256_CBC_SHA256

#define TLS_DH_RSA_WITH_AES_256_CBC_SHA256   {0x00, 0x69}

Definition at line 51 of file Tls1.h.

◆ TLS_DH_RSA_WITH_DES_CBC_SHA

#define TLS_DH_RSA_WITH_DES_CBC_SHA   {0x00, 0x0F}

Definition at line 27 of file Tls1.h.

◆ TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA

#define TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA   {0x00, 0x13}

Definition at line 30 of file Tls1.h.

◆ TLS_DHE_DSS_WITH_AES_128_CBC_SHA

#define TLS_DHE_DSS_WITH_AES_128_CBC_SHA   {0x00, 0x32}

Definition at line 36 of file Tls1.h.

◆ TLS_DHE_DSS_WITH_AES_128_CBC_SHA256

#define TLS_DHE_DSS_WITH_AES_128_CBC_SHA256   {0x00, 0x40}

Definition at line 48 of file Tls1.h.

◆ TLS_DHE_DSS_WITH_AES_256_CBC_SHA

#define TLS_DHE_DSS_WITH_AES_256_CBC_SHA   {0x00, 0x38}

Definition at line 41 of file Tls1.h.

◆ TLS_DHE_DSS_WITH_AES_256_CBC_SHA256

#define TLS_DHE_DSS_WITH_AES_256_CBC_SHA256   {0x00, 0x6A}

Definition at line 52 of file Tls1.h.

◆ TLS_DHE_DSS_WITH_DES_CBC_SHA

#define TLS_DHE_DSS_WITH_DES_CBC_SHA   {0x00, 0x12}

Definition at line 29 of file Tls1.h.

◆ TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA

#define TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA   {0x00, 0x16}

Definition at line 32 of file Tls1.h.

◆ TLS_DHE_RSA_WITH_AES_128_CBC_SHA

#define TLS_DHE_RSA_WITH_AES_128_CBC_SHA   {0x00, 0x33}

Definition at line 37 of file Tls1.h.

◆ TLS_DHE_RSA_WITH_AES_128_CBC_SHA256

#define TLS_DHE_RSA_WITH_AES_128_CBC_SHA256   {0x00, 0x67}

Definition at line 49 of file Tls1.h.

◆ TLS_DHE_RSA_WITH_AES_256_CBC_SHA

#define TLS_DHE_RSA_WITH_AES_256_CBC_SHA   {0x00, 0x39}

Definition at line 42 of file Tls1.h.

◆ TLS_DHE_RSA_WITH_AES_256_CBC_SHA256

#define TLS_DHE_RSA_WITH_AES_256_CBC_SHA256   {0x00, 0x6B}

Definition at line 53 of file Tls1.h.

◆ TLS_DHE_RSA_WITH_AES_256_GCM_SHA384

#define TLS_DHE_RSA_WITH_AES_256_GCM_SHA384   {0x00, 0x9F}

Definition at line 54 of file Tls1.h.

◆ TLS_DHE_RSA_WITH_DES_CBC_SHA

#define TLS_DHE_RSA_WITH_DES_CBC_SHA   {0x00, 0x15}

Definition at line 31 of file Tls1.h.

◆ TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256

#define TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256   {0xC0, 0x2B}

Definition at line 55 of file Tls1.h.

◆ TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384

#define TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384   {0xC0, 0x2C}

Definition at line 56 of file Tls1.h.

◆ TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384

#define TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384   {0xC0, 0x30}

Definition at line 57 of file Tls1.h.

◆ TLS_PLAINTEXT_RECORD_MAX_PAYLOAD_LENGTH

#define TLS_PLAINTEXT_RECORD_MAX_PAYLOAD_LENGTH   16384

Definition at line 94 of file Tls1.h.

◆ TLS_RECORD_HEADER_LENGTH

#define TLS_RECORD_HEADER_LENGTH   5

Definition at line 88 of file Tls1.h.

◆ TLS_RSA_WITH_3DES_EDE_CBC_SHA

#define TLS_RSA_WITH_3DES_EDE_CBC_SHA   {0x00, 0x0A}

Definition at line 24 of file Tls1.h.

◆ TLS_RSA_WITH_AES_128_CBC_SHA

#define TLS_RSA_WITH_AES_128_CBC_SHA   {0x00, 0x2F}

Definition at line 33 of file Tls1.h.

◆ TLS_RSA_WITH_AES_128_CBC_SHA256

#define TLS_RSA_WITH_AES_128_CBC_SHA256   {0x00, 0x3C}

Definition at line 44 of file Tls1.h.

◆ TLS_RSA_WITH_AES_256_CBC_SHA

#define TLS_RSA_WITH_AES_256_CBC_SHA   {0x00, 0x35}

Definition at line 38 of file Tls1.h.

◆ TLS_RSA_WITH_AES_256_CBC_SHA256

#define TLS_RSA_WITH_AES_256_CBC_SHA256   {0x00, 0x3D}

Definition at line 45 of file Tls1.h.

◆ TLS_RSA_WITH_DES_CBC_SHA

#define TLS_RSA_WITH_DES_CBC_SHA   {0x00, 0x09}

Definition at line 23 of file Tls1.h.

◆ TLS_RSA_WITH_IDEA_CBC_SHA

#define TLS_RSA_WITH_IDEA_CBC_SHA   {0x00, 0x07}

Definition at line 22 of file Tls1.h.

◆ TLS_RSA_WITH_NULL_MD5

#define TLS_RSA_WITH_NULL_MD5   {0x00, 0x01}

TLS Cipher Suite, refers to A.5 of rfc-2246, rfc-4346, rfc-5246, rfc-5288 and rfc-5289.

Definition at line 18 of file Tls1.h.

◆ TLS_RSA_WITH_NULL_SHA

#define TLS_RSA_WITH_NULL_SHA   {0x00, 0x02}

Definition at line 19 of file Tls1.h.

◆ TLS_RSA_WITH_NULL_SHA256

#define TLS_RSA_WITH_NULL_SHA256   {0x00, 0x3B}

Definition at line 43 of file Tls1.h.

◆ TLS_RSA_WITH_RC4_128_MD5

#define TLS_RSA_WITH_RC4_128_MD5   {0x00, 0x04}

Definition at line 20 of file Tls1.h.

◆ TLS_RSA_WITH_RC4_128_SHA

#define TLS_RSA_WITH_RC4_128_SHA   {0x00, 0x05}

Definition at line 21 of file Tls1.h.

Enumeration Type Documentation

◆ TLS_CONTENT_TYPE

TLS Content Type, refers to A.1 of rfc-2246, rfc-4346 and rfc-5246.

Definition at line 72 of file Tls1.h.

◆ TLS_EC_NAMED_CURVE

TLS Supported Elliptic Curves Extensions, refers to section 5.1.1 of rfc-8422.

Definition at line 128 of file Tls1.h.

◆ TLS_HASH_ALGO

TLS Hash algorithm, refers to section 7.4.1.4.1. of rfc-5246.

Definition at line 105 of file Tls1.h.

◆ TLS_SIGNATURE_ALGO

TLS Signature algorithm, refers to section 7.4.1.4.1. of rfc-5246.

Definition at line 118 of file Tls1.h.