From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=203.199.198.232; helo=imsva.in.megatrends.com; envelope-from=karunakarp@amiindia.co.in; receiver=edk2-devel@lists.01.org Received: from IMSVA.IN.MEGATRENDS.COM (Webmail.amiindia.co.in [203.199.198.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5714122135D21 for ; Tue, 20 Mar 2018 00:01:35 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 43C0F82055; Tue, 20 Mar 2018 12:41:44 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36E8D8204A; Tue, 20 Mar 2018 12:41:43 +0530 (IST) Received: from webmail.amiindia.co.in (venus1.in.megatrends.com [10.0.0.5]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Tue, 20 Mar 2018 12:41:43 +0530 (IST) Received: from VENUS2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b]) by VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5%14]) with mapi id 14.01.0438.000; Tue, 20 Mar 2018 12:37:54 +0530 From: Karunakar P To: 'Jiaxin Wu' , "edk2-devel@lists.01.org" CC: Fu Siyuan , Ye Ting Thread-Topic: [Patch 1/3] MdePkg/Tls1.h: Add TLS record header length and max payload length. Thread-Index: AQHTv+O7xSgng9u7fE2akzACvaSoaaPYtBCA Date: Tue, 20 Mar 2018 07:07:54 +0000 Message-ID: References: <20180320003657.4524-1-jiaxin.wu@intel.com> <20180320003657.4524-2-jiaxin.wu@intel.com> In-Reply-To: <20180320003657.4524-2-jiaxin.wu@intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.84.140] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.2.0.1013-23730.005 X-TM-AS-Result: No--8.156-5.0-31-10 X-imss-scan-details: No--8.156-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.2.1013-23730.005 X-TMASE-Result: 10--8.155500-10.000000 X-TMASE-MatchedRID: VPleTT1nwdTSw3nP8ewgPMzWN98iBBeGF2pUb6YRYK61eX0jEQ9c6pgC Mlq+sZ+fBaov/Q4k4i/PJCJt2I0L4rBAQLqGlKiv1yMJs9mBCcUFyyHXLpCyVsnJhTYnTng9URn QJHKZHKFuq2YVo5fRiV7H9J66wCme+PfV1kZBYzTvVbHa5Rs8txyG0gcbWS6W1ccdXEIFKD52IE SVofZeoeLzNWBegCW2PerMcoCGxRgLbigRnpKlKSBuGJWwgxArGKTftmZH3RcRb4+yTaZuPmnat cnwWhceTqPvEK1Ttqrxvc2EXkYCm2cjFnImzvyS X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 Subject: Re: [Patch 1/3] MdePkg/Tls1.h: Add TLS record header length and max payload length. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2018 07:01:36 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Karunakar p -----Original Message----- From: Jiaxin Wu [mailto:jiaxin.wu@intel.com]=20 Sent: Tuesday, March 20, 2018 6:07 AM To: edk2-devel@lists.01.org Cc: Karunakar P; Fu Siyuan; Ye Ting Subject: [Patch 1/3] MdePkg/Tls1.h: Add TLS record header length and max pa= yload length. Cc: Karunakar P Cc: Fu Siyuan Cc: Ye Ting Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu --- MdePkg/Include/IndustryStandard/Tls1.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/Tls1.h b/MdePkg/Include/Indust= ryStandard/Tls1.h index 9009291ee3..cccb6db7fb 100644 --- a/MdePkg/Include/IndustryStandard/Tls1.h +++ b/MdePkg/Include/IndustryStandard/Tls1.h @@ -1,11 +1,11 @@ /** @file Transport Layer Security -- TLS 1.0/1.1/1.2 Standard definitions, from = RFC 2246/4346/5246 =20 This file contains common TLS 1.0/1.1/1.2 definitions from RFC 2246/4346= /5246 =20 - Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at http://opensource.org/licenses/bsd-license.php =20 @@ -85,9 +85,23 @@ typedef struct { UINT8 ContentType; EFI_TLS_VERSION Version; UINT16 Length; } TLS_RECORD_HEADER; =20 +#define TLS_RECORD_HEADER_LENGTH 5 + +// +// The length (in bytes) of the TLSPlaintext records payload MUST NOT exce= ed 2^14. +// Refers to section 6.2 of RFC5246.=20 +// +#define TLS_PLAINTEXT_RECORD_MAX_PAYLOAD_LENGTH 16384 + +// +// The length (in bytes) of the TLSCiphertext records payload MUST NOT exc= eed 2^14 + 2048. +// Refers to section 6.2 of RFC5246.=20 +// +#define TLS_CIPHERTEXT_RECORD_MAX_PAYLOAD_LENGTH 18432 + #pragma pack() =20 #endif =20 --=20 2.16.2.windows.1