From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.4769.1651659184836004143 for ; Wed, 04 May 2022 03:13:05 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=AIQ7UMnQ; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651659184; x=1683195184; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SfTR7yQsqQ6D+0JTk84PQjW7rYytPeuAn/vNMD/bPcw=; b=AIQ7UMnQjqJuWSgoYJFQJ5YFhxbXO3Zj4tt869e/KJlFeSzZOzHbK3hy D9sn4+8yMhDskt7ZF+K0U2GdVCOEyDQkd2RKNCMKu1JoG0x9NXt6GgFtW hQSpZqAr4fprZRFp7CfNXF7acrjOqZx74H1BWDZBLes4fe6/1E7LEY5ka 4brQ5Eox2G0iS2tBSncc0/BTNMSqRqWY3aFXzJuqOFAQIcf5nDhSHofbN PyhpPeOZ0hnIVXCvETKxy0RpBkWMAKD1lc7sQGcukyqLHk0H4tvlrpp4d 8w8Ij4uwyU1TGd/4dfGNG6/iq9FYq6//ghItZG3GfCRrlP6lv/HHnD1MX A==; X-IronPort-AV: E=McAfee;i="6400,9594,10336"; a="330709255" X-IronPort-AV: E=Sophos;i="5.91,197,1647327600"; d="scan'208";a="330709255" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 03:13:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,197,1647327600"; d="scan'208";a="620742549" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga008.fm.intel.com with ESMTP; 04 May 2022 03:13:03 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 4 May 2022 03:13:02 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 4 May 2022 03:13:02 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 4 May 2022 03:13:02 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 4 May 2022 03:13:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e66kN/vQzxyQimi0hoBFAx+Xu1imohEQf2sJ2v+QBSQ9lvvti84ry2yMHdR1LLhUVc/F2epMWIKX79yPrWVHPbWoEtAfPeV422avcjdq3HenHUt3j2EPz6rCJBq4d8humkSwSVa40J5mZsyH6NsevLsHnol5NIxwiW4MPTooBeAlZiXxBii8FqwEY8P1/jNGisBE19zBVe3wUxDvMztACpUUANVIz8B2EhvfAxxX6tlG49C7NIscoQGLBBHZm5My0V09jrO+ySiJPoEf4GL2tekq6zjlmlWJAFfm9cXMkwYXmiqsMy1QWTJaSTgQpSpyzv7Aao2IOdIftzflpd69UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CgMTzKFd8cgcMLI9Loeey4lLnR067aKQJdhVDfj0+wY=; b=ULEcFeKHnMFfXucHl+uhfHBv1A0CcstfkAtKjgjFlFTj7BV1cukT5tkWdYstiYHRvncX0W/tX2MoTmEzlYJ/XxF7nWcl+wOaeNeXl/5IwuLakCaZw5W5cv+5VJfZI+nu7iDRujxC+fRowesEPEWVZcAmvNjAJSm8nJb40b4B/I6IGihbuX02S+kd59mtkfOMUGEOYiIbzKfkkI5piVzGOyL8VFKfwS4Cj3yz6aY1CDIqmeNXberr7d6lwwq1dJGg5aBoR0jiQxAaw99bnPsF3oBnpjRI5aRUpxxbNdzKezB36Alf9Yd5X3+VCn+segYuZJ0RpJHlvh4smB5AC5HCpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by MWHPR11MB1838.namprd11.prod.outlook.com (2603:10b6:300:10c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.20; Wed, 4 May 2022 10:12:59 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::d55d:28c1:bfab:3dd]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::d55d:28c1:bfab:3dd%6]) with mapi id 15.20.5206.024; Wed, 4 May 2022 10:12:59 +0000 From: "Yao, Jiewen" To: "devel@edk2.groups.io" , "Li, Yi1" CC: "Kinney, Michael D" , "Gao, Liming" Subject: Re: [edk2-devel] [PATCH 1/1] MdePkg: Add WPA3 related TLS configure macro Thread-Topic: [edk2-devel] [PATCH 1/1] MdePkg: Add WPA3 related TLS configure macro Thread-Index: AQHYX5m9m8n8rVRZWEmC/wtE4T0Gya0OdZKg Date: Wed, 4 May 2022 10:12:59 +0000 Message-ID: References: <075f00b16013a2c401de91304f0ce4ff5bf4dfc5.1651656533.git.yi1.li@intel.com> In-Reply-To: <075f00b16013a2c401de91304f0ce4ff5bf4dfc5.1651656533.git.yi1.li@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.401.20 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d20a83dd-69e7-41f4-d88c-08da2db6aac7 x-ms-traffictypediagnostic: MWHPR11MB1838:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TFgSz1kEh89+Vj6iVTAhV7Lz1Utl/Hyf2eKh8chx7XckMJo9UBJ/06NcucdosqdsjxgvOUMdTpDTORBIEHPa3koS4FJ0f0h0Z5p8lWcvrviK5eopscrvTA0ThfykVuhx+u08Yo7DmF5B/19G7rUKM0edaKM1Tuz+jLbzHimsz1e+50cK+8uD/FeMgrU6CEqyJpuGcWT1ko552RoV5ATBvta8+I/iiqeWJ7L2LCiDSABIahibHZyZJsmwjEiag13mMRlyVHbZCfRm1fAhddAWs+iauHi7BBNb4gUAbw/xtDU8T9Rttm2mTTrVlEiy2xnIC0aBxjORM6GYb3FXtDKO9ku8bX1FMhDImsOKKO/BmXOCEYYWgbFOWZSLwgYWHMU0K57IX3WlTE4Fb5NdgEsrwgPSt9q0+mKkBDv5LOsJuEguI8y7simhSrzNekFm2/OjG5cMeSMgr/cTw3AmlilOeO2tiWkAAkJlidbLuD6/Pws4lmeBFt5zAHZb9Rw3C+U2rNVAaiqM2SC1nythCLX49ez8OCZfueC8E+cFPa/qg8H4Q/HBSrv72466P3Ni9yFlRDJ4Ca6cFQjLwIK1i5W9gvo7f8o3xMwRaUbR9m3hM0rf6hdoy6aoKzo8dIfwEJmlL37LVzX8XI9mAgFw5o+ObEP+Yde/TMWF7/Ld8BC0WSZHmYPT1uhJ04IxDcbcmKhjETbu+QBALI+wt2qtR+8BoxJJ+Ra6+jPEW9Ldr6eQitGa3+XwX9BGrzBnJKs60pBZzpRte5CHTQyXut9q1xsd/gx16c8entNUWJBZ+SZPhmMr2VWBlWN/y8xxiRNKyUkTuZJvNDIqB8d4pubaW9wq0Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(508600001)(966005)(5660300002)(55016003)(186003)(4326008)(30864003)(66946007)(64756008)(66476007)(8676002)(76116006)(38100700002)(66446008)(66556008)(71200400001)(8936002)(52536014)(19627235002)(6636002)(86362001)(110136005)(316002)(54906003)(2906002)(7696005)(26005)(53546011)(9686003)(83380400001)(122000001)(38070700005)(82960400001)(33656002)(6506007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?W3lEDN1X/KnnKgFBFFpryPtciGVABFUloTKXPI8LnWJtwuTDIwkHxsHrSga1?= =?us-ascii?Q?S5NMqrIdPAnfsUnp9iqJlozyVFUOkhwN6+/x3ZeFjizomSzsy404/lL4weCB?= =?us-ascii?Q?zWZN8PInzLobJKJtWgEUG0C1cKg4O1gg5fMDjHy/9mdvW8nQwz9XVWdPnR4v?= =?us-ascii?Q?TpGCEGzqNe6uYxJLyCAuOOULgpyj49rKIs5MbOPVawey9WSyyMEl6YQvW5UF?= =?us-ascii?Q?reeooESypGTsy7SSBKQarskULeokzjdwySLj16Bv1H/8KXaxuvTRl91ccXHp?= =?us-ascii?Q?m7TATN9Y59UYqADd+YpgZWu/Uf6anDE1Qn3gMWTZdedUXUxjkOn54jB0Gvq8?= =?us-ascii?Q?i9vjZu346HqsE51+wm6/n8KDVT7D9c+YbAkzHk4Z2qQSAPGhnnhLgh9RkoEX?= =?us-ascii?Q?OxrLSwxY/d+u/9btNN9wgmkCSZpTf3DZ6Pp6dbcNNOfPwksq0ssA8RHf0BJn?= =?us-ascii?Q?UIejxFlCYCoe5kwdkjSdR2AGGWXYa8aAdlPibfWtXYTX+/qyXteNz4JvLcH0?= =?us-ascii?Q?5ME/qHMY/8ZwCSCxveFjj27vBaWW339ayOvh6zTHm78iIZ6S2Ziz2vGhcI6h?= =?us-ascii?Q?UOnn6Z2hvWZVMjJSVXBvWHBqjuRifff93ohkGuqQLcTL3dg8NbK6WbJQuQMl?= =?us-ascii?Q?EM1484uDmqXYh3qmv0wchHAtAVoAswhlrsj77aUE+Djou4qTPWSxpLGKcqp8?= =?us-ascii?Q?5wo4uRwyEWpPA2chDc5oS7WZR4juWqtpAdwbHY9Ws9RwEO2fS+G14Hu0gXUG?= =?us-ascii?Q?6tu3qaSH5E7jrEPlkQsLKdMqo55UEJ55VGY3Hu/Lc/sj0Gv/AUgCqoV75O1D?= =?us-ascii?Q?JKkNJs/qmXAMbVR/ndNNlKhNsipgRmEInJFPfDOADQdCiVwRFhqgZLRXdTdm?= =?us-ascii?Q?coQLX4rNfrrPitn2gctG8kDEmMP7kP4dq/J9PzJMxaZTE0WPKUc+bycZqOmi?= =?us-ascii?Q?poEFVJi8HtsXoIgzD70ewXw1fiJiBJhcTP1lDAHtLUie9l60a0jxndHdXnuw?= =?us-ascii?Q?QTPXCkxIQXHDNMJ5GCmMMl0q6OtJWnLyekfmpnW657B7eBAVU3Xg+h9iP/yu?= =?us-ascii?Q?TMF0a8aTcoGccar14GTuqLBlg85dZvxQTexL0s37WIk3gH0j7ljYjOAjwJ0d?= =?us-ascii?Q?jnpGg0QHsPF9lS9wGMP5Lfho52EanbSxLxfOYxvsRvY8nB4lulVATySvb6Uu?= =?us-ascii?Q?+caxhBHcJi2373Yo/e80kJaN572wz5Shks9yRlHhF6AU6Gg6rCGxWWj3/4+5?= =?us-ascii?Q?zg4d226T3HxsHY9vb12QEULkZ6kHn7v5oWHNn7ZaZzk+vJEzyMsyEtq4arPi?= =?us-ascii?Q?6CKhheVNprDQ7OlOEDMmO5fTp7YmvVJtPcYF53oZJQexZluq+EWbYzVgC4b8?= =?us-ascii?Q?NzmWZuAb79iassDCM5rPHGPifHpQtUhcOx8aGpVmVGgRxXzMOM/aDj4ELdKO?= =?us-ascii?Q?JKyWUKmPRkbv5m4fnpgbmv6EnIDDegbZWvNvQc6JZsRwZ6aWhjl1OByhNX2a?= =?us-ascii?Q?wLNK3UKA65hrAdaxlsmSkYSz/wileMwe5E1w3XZ7F9ifMFy9Ixxquei/eP06?= =?us-ascii?Q?GOGDGsrKW1+xQfeZc/55ytYhbliTkHUw/Sreqp/Tb1kXNeWwfMUfStKDKQgU?= =?us-ascii?Q?ADgIzK84zycVqUFOeXyPmzylgwLhm4Ol1MDsc49h/UkArFpYng0uI7St3bA4?= =?us-ascii?Q?MN6C1IxL0LMxYWxhq+eKPKWVeqfC3aaVTBawz5VgckRk/FcAAZyvaAwaIEeC?= =?us-ascii?Q?j4qhp2RkUQ=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d20a83dd-69e7-41f4-d88c-08da2db6aac7 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2022 10:12:59.8399 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /zp/AKXxLAh6pKc7BNs77TAyCGR5tqojyIDBOrAwWX64IfZUHlde9EOiDIM9xaHfAZaiu133mjLlSmeqoeCLfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1838 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Yi. Some feedback: 1) {0x13, *} is defined in TLS1.3 - https://datatracker.ietf.org/doc/html/r= fc8446#appendix-B.4 The comment "> /// TLS Cipher Suite, refers to A.5 of rfc-2246, rfc-4346 a= nd rfc-5246." should be updated to include 8446 as well. 2) Although it is not absolutely required, I highly recommend to add specif= ic value to TLS_HASH_ALGO, to align with definition in RFC. > + TlsHashAlgoNone =3D 0, > + TlsHashAlgoMd5 =3D 1, > + TlsHashAlgoSha1 =3D 2, > + TlsHashAlgoSha224 =3D 3, > + TlsHashAlgoSha256 =3D 4, > + TlsHashAlgoSha384 =3D 5, > + TlsHashAlgoSha512 =3D 6, > +} TLS_HASH_ALGO; 3) Ditto, for TLS_SIGNATURE_ALGO. > + TlsSignatureAlgoAnonymous =3D 0, > + TlsSignatureAlgoRsa =3D 1, > + TlsSignatureAlgoDsa =3D 2, > + TlsSignatureAlgoEcdsa =3D 3, > +} TLS_SIGNATURE_ALGO; The value is assigned in the spec. It cannot be changed. 4) RFC4492 is obsoleted by RFC8422 - https://datatracker.ietf.org/doc/html/= rfc8422#section-5.1.1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RFC 4492 defined 25 different curves in the NamedCurve registry (now renamed the "TLS Supported Groups" registry, although the enumeration below is still named NamedCurve) for use in TLS. Only three have seen much use. This specification is deprecating the rest (with numbers 1-22). =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I don't see a reason to define so many deprecated algorithms. Would you please align with section 5.1.1 in RFC8422? You may consider to a= dd x25519 and x448 as well. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D enum { deprecated(1..22), secp256r1 (23), secp384r1 (24), secp521r1 (25), x25519(29), x448(30), reserved (0xFE00..0xFEFF), deprecated(0xFF01..0xFF02), (0xFFFF) } NamedCurve; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 5) Since you added TLS 1.3 cipher suit, I assume you also want to add defin= ition for TLS 1.3. Please aware that "signature_algorithms" is changed in TLS 1.3 - https://da= tatracker.ietf.org/doc/html/rfc8446#section-4.2.3. I am not sure if you need define that as well. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D enum { /* RSASSA-PKCS1-v1_5 algorithms */ rsa_pkcs1_sha256(0x0401), rsa_pkcs1_sha384(0x0501), rsa_pkcs1_sha512(0x0601), /* ECDSA algorithms */ ecdsa_secp256r1_sha256(0x0403), ecdsa_secp384r1_sha384(0x0503), ecdsa_secp521r1_sha512(0x0603), /* RSASSA-PSS algorithms with public key OID rsaEncryption */ rsa_pss_rsae_sha256(0x0804), rsa_pss_rsae_sha384(0x0805), rsa_pss_rsae_sha512(0x0806), /* EdDSA algorithms */ ed25519(0x0807), ed448(0x0808), /* RSASSA-PSS algorithms with public key OID RSASSA-PSS */ rsa_pss_pss_sha256(0x0809), rsa_pss_pss_sha384(0x080a), rsa_pss_pss_sha512(0x080b), ... } SignatureScheme; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 6) Ditto. Please aware that "NamedCurve" is changed in TLS 1.3 - https://da= tatracker.ietf.org/doc/html/rfc8446#section-4.2.7 I am not sure if you need define that as well. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D enum { /* Elliptic Curve Groups (ECDHE) */ secp256r1(0x0017), secp384r1(0x0018), secp521r1(0x0019), x25519(0x001D), x448(0x001E), ... } NamedGroup; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 7) Last but not least, I hope to see how those new definition is used. Without consumer, it is hard for me to understand why they are needed, or i= f we miss something else. Thank you Yao, Jiewen > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of yi1 li > Sent: Wednesday, May 4, 2022 5:31 PM > To: devel@edk2.groups.io > Cc: Li, Yi1 ; Kinney, Michael D ; > Gao, Liming > Subject: [edk2-devel] [PATCH 1/1] MdePkg: Add WPA3 related TLS configure > macro >=20 > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3892 >=20 > Which are needed for SUITE-B and SUITE-B-192. >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Signed-off-by: yi1 li > --- > MdePkg/Include/IndustryStandard/Tls1.h | 133 ++++++++++++++++++------- > 1 file changed, 97 insertions(+), 36 deletions(-) >=20 > diff --git a/MdePkg/Include/IndustryStandard/Tls1.h > b/MdePkg/Include/IndustryStandard/Tls1.h > index cf67428b1129..6519afe15e78 100644 > --- a/MdePkg/Include/IndustryStandard/Tls1.h > +++ b/MdePkg/Include/IndustryStandard/Tls1.h > @@ -15,42 +15,49 @@ > /// > /// TLS Cipher Suite, refers to A.5 of rfc-2246, rfc-4346 and rfc-5246. > /// > -#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_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_AES_128_GCM_SHA256 {0x13, 0x01} > +#define TLS_AES_256_GCM_SHA384 {0x13, 0x02} > +#define TLS_CHACHA20_POLY1305_SHA256 {0x13, 0x03} > +#define TLS_ECDHE_ECDSA_AES128_GCM_SHA256 {0xC0, 0x2B} > +#define TLS_ECDHE_ECDSA_AES256_GCM_SHA384 {0xC0, 0x2C} > +#define TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 {0xC0, 0x30} >=20 > /// > /// TLS Version, refers to A.1 of rfc-2246, rfc-4346 and rfc-5246. > @@ -95,6 +102,60 @@ typedef struct { > // > #define TLS_CIPHERTEXT_RECORD_MAX_PAYLOAD_LENGTH 18432 >=20 > +/// > +/// TLS Hash algorithm, refers to section 7.4.1.4.1. of rfc-5246. > +/// > +typedef enum { > + TlsHashAlgoNone =3D 0, > + TlsHashAlgoMd5, > + TlsHashAlgoSha1, > + TlsHashAlgoSha224, > + TlsHashAlgoSha256, > + TlsHashAlgoSha384, > + TlsHashAlgoSha512, > +} TLS_HASH_ALGO; > + > +/// > +/// TLS Signature algorithm, refers to section 7.4.1.4.1. of rfc-5246. > +/// > +typedef enum { > + TlsSignatureAlgoAnonymous =3D 0, > + TlsSignatureAlgoRsa, > + TlsSignatureAlgoDsa, > + TlsSignatureAlgoEcdsa, > +} TLS_SIGNATURE_ALGO; > + > +/// > +/// TLS Supported Elliptic Curves Extensions, refers to section 5.1.1 of= rfc-4492 > +/// > +typedef enum { > + TlsEcNamedCurve_sect163k1 =3D 1, > + TlsEcNamedCurve_sect163r1, // 2, > + TlsEcNamedCurve_sect163r2, // 3, > + TlsEcNamedCurve_sect193r1, // 4, > + TlsEcNamedCurve_sect193r2, // 5, > + TlsEcNamedCurve_sect233k1, // 6, > + TlsEcNamedCurve_sect233r1, // 7, > + TlsEcNamedCurve_sect239k1, // 8, > + TlsEcNamedCurve_sect283k1, // 9, > + TlsEcNamedCurve_sect283r1, // 10, > + TlsEcNamedCurve_sect409k1, // 11, > + TlsEcNamedCurve_sect409r1, // 12, > + TlsEcNamedCurve_sect571k1, // 13, > + TlsEcNamedCurve_sect571r1, // 14, > + TlsEcNamedCurve_secp160k1, // 15, > + TlsEcNamedCurve_secp160r1, // 16, > + TlsEcNamedCurve_secp160r2, // 17, > + TlsEcNamedCurve_secp192k1, // 18, > + TlsEcNamedCurve_secp192r1, // 19, > + TlsEcNamedCurve_secp224k1, // 20, > + TlsEcNamedCurve_secp224r1, // 21, > + TlsEcNamedCurve_secp256k1, // 22, > + TlsEcNamedCurve_secp256r1, // 23, > + TlsEcNamedCurve_secp384r1, // 24, > + TlsEcNamedCurve_secp521r1, // 25, > +} TLS_EC_NAMED_CUREVE; > + > #pragma pack() >=20 > #endif > -- > 2.31.1.windows.1 >=20 >=20 >=20 >=20 >=20