From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: jian.j.wang@intel.com) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by groups.io with SMTP; Fri, 07 Jun 2019 15:18:18 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jun 2019 15:18:18 -0700 X-ExtLoop1: 1 Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 07 Jun 2019 15:18:17 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 7 Jun 2019 15:18:17 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 7 Jun 2019 15:18:17 -0700 Received: from shsmsx107.ccr.corp.intel.com ([169.254.9.98]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.137]) with mapi id 14.03.0415.000; Sat, 8 Jun 2019 06:18:15 +0800 From: "Wang, Jian J" To: "devel@edk2.groups.io" , "Desai, Imran" Subject: Re: [edk2-devel] [PATCH v2 3/5] SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest algorithm Thread-Topic: [edk2-devel] [PATCH v2 3/5] SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest algorithm Thread-Index: AQHVFZXC+CCxxpEG6k+jyE6LBY/Vg6aQ0pDw Date: Fri, 7 Jun 2019 22:18:15 +0000 Message-ID: References: <20190528204049.86463-1-imran.desai@intel.com> <20190528204049.86463-4-imran.desai@intel.com> In-Reply-To: <20190528204049.86463-4-imran.desai@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDFkN2JmOTAtNjVlMC00YWZkLWI1NjAtYTI2MWQ0Y2UzNGE2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNHQ5aGl6eWtRUnV0dk0xSDkxdDV0dHRuWkUrbk9UbVZsdHhNQUlyR2t1aXV5SXdieXRKaU1hXC9GNkZ2dHE2VFoifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: jian.j.wang@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jian J Wang > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Im= ran > Desai > Sent: Wednesday, May 29, 2019 4:41 AM > To: devel@edk2.groups.io > Subject: [edk2-devel] [PATCH v2 3/5] SecurityPkg/HashLibBaseCryptoRouter= : > recognize the SM3 digest algorithm >=20 >=20 > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1781 >=20 > EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 P= CR > banks. This digest algorithm is part of the China Crypto algorithm suite= . > This integration has dependency on the openssl_1_1_1b integration into > edk2. > This patch adds SM3 as an available digest algorithm to crypto router. >=20 >=20 > Signed-off-by: Imran Desai > Cc: Chao Zhang > Cc: Jiewen Yao > Cc: Jian Wang > --- >=20 > SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterComm > on.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git > a/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom > mon.c > b/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom > mon.c > index 7f3bdab53066..aec874a9e072 100644 > --- > a/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom > mon.c > +++ > b/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom > mon.c > @@ -25,6 +25,7 @@ TPM2_HASH_MASK mTpm2HashMask[] =3D { > {HASH_ALGORITHM_SHA256_GUID, HASH_ALG_SHA256}, > {HASH_ALGORITHM_SHA384_GUID, HASH_ALG_SHA384}, > {HASH_ALGORITHM_SHA512_GUID, HASH_ALG_SHA512}, > + {HASH_ALGORITHM_SM3_256_GUID, HASH_ALG_SM3_256}, > }; >=20 > /** > -- > 2.17.0 >=20 >=20 >=20