VirtualBox

Ignore:
Timestamp:
Apr 14, 2023 3:17:44 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156854
Message:

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/IndustryStandard/Tls1.h

    r80721 r99404  
    1414
    1515///
    16 /// TLS Cipher Suite, refers to A.5 of rfc-2246, rfc-4346 and rfc-5246.
     16/// TLS Cipher Suite, refers to A.5 of rfc-2246, rfc-4346, rfc-5246, rfc-5288 and rfc-5289.
    1717///
    1818#define TLS_RSA_WITH_NULL_MD5                    {0x00, 0x01}
     
    5252#define TLS_DHE_DSS_WITH_AES_256_CBC_SHA256      {0x00, 0x6A}
    5353#define TLS_DHE_RSA_WITH_AES_256_CBC_SHA256      {0x00, 0x6B}
     54#define TLS_DHE_RSA_WITH_AES_256_GCM_SHA384      {0x00, 0x9F}
     55#define TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256  {0xC0, 0x2B}
     56#define TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384  {0xC0, 0x2C}
     57#define TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384    {0xC0, 0x30}
    5458
    5559///
     
    7781///
    7882typedef struct {
    79   UINT8                   ContentType;
    80   EFI_TLS_VERSION         Version;
    81   UINT16                  Length;
     83  UINT8              ContentType;
     84  EFI_TLS_VERSION    Version;
     85  UINT16             Length;
    8286} TLS_RECORD_HEADER;
    8387
    84 #define TLS_RECORD_HEADER_LENGTH   5
     88#define TLS_RECORD_HEADER_LENGTH  5
    8589
    8690//
     
    8892// Refers to section 6.2 of RFC5246.
    8993//
    90 #define TLS_PLAINTEXT_RECORD_MAX_PAYLOAD_LENGTH   16384
     94#define TLS_PLAINTEXT_RECORD_MAX_PAYLOAD_LENGTH  16384
    9195
    9296//
     
    9498// Refers to section 6.2 of RFC5246.
    9599//
    96 #define TLS_CIPHERTEXT_RECORD_MAX_PAYLOAD_LENGTH   18432
     100#define TLS_CIPHERTEXT_RECORD_MAX_PAYLOAD_LENGTH  18432
     101
     102///
     103/// TLS Hash algorithm, refers to section 7.4.1.4.1. of rfc-5246.
     104///
     105typedef enum {
     106  TlsHashAlgoNone   = 0,
     107  TlsHashAlgoMd5    = 1,
     108  TlsHashAlgoSha1   = 2,
     109  TlsHashAlgoSha224 = 3,
     110  TlsHashAlgoSha256 = 4,
     111  TlsHashAlgoSha384 = 5,
     112  TlsHashAlgoSha512 = 6,
     113} TLS_HASH_ALGO;
     114
     115///
     116/// TLS Signature algorithm, refers to section 7.4.1.4.1. of rfc-5246.
     117///
     118typedef enum {
     119  TlsSignatureAlgoAnonymous = 0,
     120  TlsSignatureAlgoRsa       = 1,
     121  TlsSignatureAlgoDsa       = 2,
     122  TlsSignatureAlgoEcdsa     = 3,
     123} TLS_SIGNATURE_ALGO;
     124
     125///
     126/// TLS Supported Elliptic Curves Extensions, refers to section 5.1.1 of rfc-8422.
     127///
     128typedef enum {
     129  TlsEcNamedCurveSecp256r1 = 23,
     130  TlsEcNamedCurveSecp384r1 = 24,
     131  TlsEcNamedCurveSecp521r1 = 25,
     132  TlsEcNamedCurveX25519    = 29,
     133  TlsEcNamedCurveX448      = 30,
     134} TLS_EC_NAMED_CURVE;
    97135
    98136#pragma pack()
    99137
    100138#endif
    101 
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette