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.web08.5158.1663919494704097188 for ; Fri, 23 Sep 2022 00:51:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=CeZluuV/; 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=1663919494; x=1695455494; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=a12xCIfFpr8PmZqGHphIh43Nc1gqvqNxv+XLq5nA9Lc=; b=CeZluuV/dltZRYW/IuJvSbpOxysaqfa1Moo6MbPDHxpDoko8SNWeSiTm UxRsaXhlqZC0lOmya/s2cZzcZ+i+x7Af209Ri77ZErzmWnTU0LBYvLJT5 VkOM53/8cgvLRUYVFoNPtuhaLuZxo+2l5eOmpfuskUOJ3LLpvPr0rBMVt 6LCrdr6b87tJYa2fm+rKdPs2Pu2PZ3I73u4jPp5/SVGviKWwrDze+/eVQ rn3DwH1HV5YHLQw/wJxW+ud+ott8Wx9WGX5ZNMTFHhx7m4icmmN2ZuMhs dVy7Kku39/HPtnTis3zac/pveMtznPKvG76QQFzGIC0gxgOJJqMxQHN3E Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="364553145" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="364553145" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2022 00:51:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="653312352" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga001.jf.intel.com with ESMTP; 23 Sep 2022 00:51:34 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 00:51:33 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 00:51:33 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Fri, 23 Sep 2022 00:51:33 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Fri, 23 Sep 2022 00:51:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BV4/JuK0RXstvcGNSY28zRkPXwnXUeoBl+NHpZeA+3cVTT6BNNb/ww5YbY3oD2OQMJYlVT1zl6h28tUVk7CrJoWGHG6BtOp5U4KZcpxFWc6oqo0GcGxr+GDuzY/1S0fq6DcG1/7B4Se8WQn9GOqMGPNlOuOIkAA7m/LElkYDJ8HnHUzsAcK5paiCg3RNI/iAJrYjRzzmuB2U2iT2UzYkoI4wtzNzskXnsU5H6YZdh4ZGz8tlSGgk7XqbM4zFWEi90RNCjKo9SoNwseRByCWW3RQN+0bHM2BuqcpcTcdLFC+mAJireRBRbsKBbfkWT2/WeSoQOphWYs6cJV5Z0n9Sfw== 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=BOEOfMqxx3fc0ulUCugEoOdSniP90Ly4u9REFiMvI2g=; b=TzP8xvkCgJcDsTWJgmNLIJ/Vn1+NbNPZbAO1vvgr3CYWWNcMJ7zELTXf1csDKE1X4aZRqySmitmG3OQxXboXqRtKItqRbTZuH+1HrSBfSjTs8atme1jUig2pA/6cxHnWIq4skh5IiJDxF7qaeWpIETODmYxc0I573Epv5aifiz/QBpZ6VOvAnWobeR8RtJWk1d6bsOydlYHd7/VDNIOdiQmLd6yOVqlCKRfOvNfjoMTmlksyAJlB9MOi1KvzW49awGBu2SH39Ngd1D0wIr2eGcXdBfzvMf3Oy1TXbrh9WB5GQwVKKMLmh8mWtQbf2DoMMIIdOLTr8jyFASjQAkNeYg== 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 MN2PR11MB4663.namprd11.prod.outlook.com (2603:10b6:208:26f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.20; Fri, 23 Sep 2022 07:51:31 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::c17d:f1c9:e958:b5e]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::c17d:f1c9:e958:b5e%6]) with mapi id 15.20.5654.020; Fri, 23 Sep 2022 07:51:31 +0000 From: "Yao, Jiewen" To: "Zhang, Qi1" , "devel@edk2.groups.io" CC: "Wang, Jian J" , "Lu, Xiaoyu1" , "Jiang, Guomin" Subject: Re: [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support Thread-Topic: [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support Thread-Index: AQHYzxVEU2zOiIVe2UmQ9gp27AG/8K3spGPA Date: Fri, 23 Sep 2022 07:51:31 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 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-traffictypediagnostic: MW4PR11MB5872:EE_|MN2PR11MB4663:EE_ x-ms-office365-filtering-correlation-id: a105c567-3baf-403e-bbf2-08da9d386de2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PxapzQsQWOV3i9zFizhYn2Ug+3ugYYPhtWGa8eQC19JKQ+AnxtWXbnSuakwOr6nUmOvmZlti44IGej6QCwClkQ+mPH+LDQ5ufBhN7nq8H6QdT+1GhUYQCGpyHmI5065CPmVNYIJRklSY8ix+pnyB4+CvHBH5oJ6faEK0uFU4yeMSjCZVno0tQrp9DdIv0GFDImYtHgFq5oD/R/r6QRAVlZBAQ/FpKoGVy9mpel7sIYiEHE6/PHNIzDQtx0bIdb3Kwjd32+9rgLpUgttd6l1kQUkIcV1nPsdG6QyFI94YlGp91z3ebFxuFdD5OBthOxq+8ORCGf1RjSHlNxKHFWzhQ+isLnXzntLFjhWoC56+8Bs02W9JVuWAa2gN5efePucsjXqt3OhVjL3KnEBX3Ms8nqZLvVL0dpHyDB8Ai5HPNzBAiiARpBD2pJx4/rzBkECT6y5HlDS/4UhV/Y69cPu/oorYIP1+Ugi3Rbv/8cBKIvGskHxNSrsxgAtsMZB3eHMU+RQn4866VHmExDnq6bjvVduhExPyjXP7mP72lOo0iDJ34rdpk/zO3nqaIU1/7aR0oHtmAxx5ZP8KL4NTqKFY/SIvpIYeoIJJ1gvFHG/47OYWuqQdfXKSvR+8DybMIEpkC3N/z+++hTYeUqZFvmoxQxx9J22smngw0/7enRPHacTc8DeY6ZPJNUOIVuIcDqM4PPR6nwn3oMggvh/uJUuEWvOXognlCmZp8139dXa+ZuYHBRkbvBiZTemBbhgcS+UClJXnp2A18oToBruhBYoCQiVC7SDutJaqn9aTFjsnnWTaVBxCESZlkxaEZDu6n2B+evBNs91ir+KkEEltLMkJDw== 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:(13230022)(39860400002)(396003)(376002)(346002)(366004)(136003)(451199015)(2906002)(8676002)(186003)(76116006)(316002)(8936002)(110136005)(122000001)(478600001)(83380400001)(86362001)(54906003)(38100700002)(33656002)(6506007)(66476007)(7696005)(66946007)(66556008)(66446008)(4326008)(82960400001)(64756008)(53546011)(107886003)(41300700001)(38070700005)(55016003)(26005)(9686003)(52536014)(71200400001)(966005)(5660300002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?srw3d2W34mb4deg1mjFy6PHcsLjYSm75lh/hQP/uWxwn0zLBMpUogk67Ycwr?= =?us-ascii?Q?FDiKoiGJkhVo6F42LV5Tmob7sSFEdW/XZxCnzWdPeUoAb9pIqR4c+uQyDZWj?= =?us-ascii?Q?lYeTGB4i359ll+2OMYvMu3Rb+Qq/X1200Urn6E1x0otcb+korckynJ7PRRD6?= =?us-ascii?Q?7m6PcC6FrSFKy3VxCWPVfpLyhuIk80qLdwJmTWBPjC5TNm2Gjl4VQeMeMHBa?= =?us-ascii?Q?qN+wPF7cO2gDJFxGLPE9rhQHeqrkt1TnS8GnIFDWWFWjXB6fRi3pwiANRoDD?= =?us-ascii?Q?vl62YWzOxzKOongW0XnCAVaxrEwMRfPvkebEYqlEQUX4ygz+TWgzHsVnu/sk?= =?us-ascii?Q?F4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hqKC4GqqrtDNt/c0Ww?= =?us-ascii?Q?XqpKJ5xx/SbMpcc3ESv4ylNPisCa2XsUo54W+kMF6hYx8zwjKWc/pZGw4shS?= =?us-ascii?Q?5HOIKvmr9DEmeRwZ+zqKUnD9usdkZVANkMAvNGB7+E/+p2jDuGCOUrb0e6aW?= =?us-ascii?Q?6vzg3qQ6ozVAcpYp38rA6FM98p+sDZKL7Sgmt/RBHb1h80cT+lg9G7gs5I9Z?= =?us-ascii?Q?dXEYNarXtMTSxPfoNgVJR+wRTOIklf+Zsz/xyqr426KvJ3YRF79hOsLkuSk5?= =?us-ascii?Q?+BSU8Fz0i3tD9wlNyNrXP0GBfF9K7dv9GHjbWgYtPpIy9lQKYJWZzHkwTooW?= =?us-ascii?Q?HTJ3xC4+h9vjdqEsOAnH/dEbOVuuUDNYvl4hABVy?= 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: a105c567-3baf-403e-bbf2-08da9d386de2 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2022 07:51:31.3026 (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: curTU+j7xJAnxNhpKN2rCE6tJmhgJkIVzpbp3J7A9ggOQHoo43J9ybvYLi9Li4YjyvphymbWGwsOwy5e1uPeZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4663 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 Merged https://github.com/tianocore/edk2/pull/3387 > -----Original Message----- > From: Zhang, Qi1 > Sent: Friday, September 23, 2022 2:25 PM > To: devel@edk2.groups.io > Cc: Zhang, Qi1 ; Yao, Jiewen > ; Wang, Jian J ; Lu, Xiaoyu1 > ; Jiang, Guomin > Subject: [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support >=20 > Add Hkdf-SHA384 support and Hkdf-SHA256 extract and expand separately. > With this change, the size increase of BaseCyrptLib is about 6K bytes. > The new functions are verifed by the Host UnitTest. > And also it has been integratd in > https://github.com/tianocore/edk2-staging/tree/DeviceSecurity and been > verified. >=20 > All the code change is on the PR > https://github.com/tianocore/edk2/pull/3224. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4033 >=20 > Signed-off-by: Qi Zhang > Cc: Jiewen Yao > Cc: Jian J Wang > Cc: Xiaoyu Lu > Cc: Guomin Jiang > Reviewed-by: Jiewen Yao >=20 > Qi Zhang (4): > CryptoPkg: add new Hkdf api definition in Crypt Lib. > CryptoPkg: add new Hkdf api in Crypt Lib. > CryptoPkg: add new Hkdf api to Crypto Service. > CryptoPkg: add Hkdf UnitTest. >=20 > CryptoPkg/Driver/Crypto.c | 152 +++++++- > CryptoPkg/Include/Library/BaseCryptLib.h | 129 +++++++ > .../Pcd/PcdCryptoServiceFamilyEnable.h | 7 +- > .../Library/BaseCryptLib/Kdf/CryptHkdf.c | 362 +++++++++++++++++- > .../Library/BaseCryptLib/Kdf/CryptHkdfNull.c | 151 +++++++- > .../BaseCryptLibNull/Kdf/CryptHkdfNull.c | 151 +++++++- > .../BaseCryptLibOnProtocolPpi/CryptLib.c | 144 +++++++ > CryptoPkg/Private/Protocol/Crypto.h | 139 ++++++- > .../BaseCryptLib/BaseCryptLibUnitTests.c | 29 +- > .../UnitTest/Library/BaseCryptLib/HkdfTests.c | 202 ++++++++++ > .../Library/BaseCryptLib/TestBaseCryptLib.h | 3 + > .../BaseCryptLib/TestBaseCryptLibHost.inf | 1 + > .../BaseCryptLib/TestBaseCryptLibShell.inf | 1 + > 13 files changed, 1440 insertions(+), 31 deletions(-) > create mode 100644 > CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HkdfTests.c >=20 > -- > 2.26.2.windows.1