From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Fri, 19 Jul 2019 05:41:06 -0700 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ADEDA30B1ACE; Fri, 19 Jul 2019 12:41:05 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-195.ams2.redhat.com [10.36.116.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1868061F21; Fri, 19 Jul 2019 12:41:00 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH v7 0/4] Implement SM3 measured boot To: devel@edk2.groups.io, imran.desai@intel.com Cc: Michael D Kinney , Liming Gao , Chao Zhang , Jiewen Yao , Jian Wang , Jordan Justen , Ard Biesheuvel , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Stefan Berger References: <20190718225326.40839-1-imran.desai@intel.com> From: "Laszlo Ersek" Message-ID: <2da5d5e6-71ea-d1ba-0ca0-4d1ff7ba05c0@redhat.com> Date: Fri, 19 Jul 2019 14:41:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190718225326.40839-1-imran.desai@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Fri, 19 Jul 2019 12:41:05 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 07/19/19 00:53, Imran Desai wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1781 > GITHUB: https://github.com/idesai/edk2/tree/enable_sm3_measured_boot_v7 >=20 > EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 = PCR > banks. This digest algorithm is part of the China Crypto algorithm suit= e. > This integration has dependency on the openssl_1_1_1b integration into > edk2. >=20 > Delta in v7: > 1. Dropped 95a040cff from v6 to address https://edk2.groups.io/g/devel/= topic/ > 32454898?p=3D,,,20,0,0,0::Created,,sm3,20,2,0,32454898,ct=3D1&ct=3D1 > 2. Relocated SM3 GUID definition from MdePkg to SecurityPkg in 9728b54f= 4 >=20 >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Chao Zhang > Cc: Jiewen Yao > Cc: Jian Wang > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Cc: Marc-Andr=C3=A9 Lureau > Cc: Stefan Berger >=20 > Imran Desai (4): > SecurityPkg: introduce the SM3 digest algorithm > SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest > algorithm > SecurityPkg: set SM3 bit in TPM 2.0 hash mask by default > OvmfPkg: link SM3 support into Tcg2Pei and Tcg2Dxe >=20 > OvmfPkg/OvmfPkgIa32.dsc | 2 + > OvmfPkg/OvmfPkgIa32X64.dsc | 2 + > OvmfPkg/OvmfPkgX64.dsc | 2 + > SecurityPkg/Include/Library/HashLib.h | 4 + > .../HashInstanceLibSm3/HashInstanceLibSm3.c | 150 ++++++++++++++++++ > .../HashInstanceLibSm3/HashInstanceLibSm3.inf | 41 +++++ > .../HashInstanceLibSm3/HashInstanceLibSm3.uni | 15 ++ > .../HashLibBaseCryptoRouterCommon.c | 1 + > SecurityPkg/SecurityPkg.dec | 5 +- > SecurityPkg/SecurityPkg.dsc | 3 + > 10 files changed, 223 insertions(+), 2 deletions(-) > create mode 100644 SecurityPkg/Library/HashInstanceLibSm3/HashInstance= LibSm3.c > create mode 100644 SecurityPkg/Library/HashInstanceLibSm3/HashInstance= LibSm3.inf > create mode 100644 SecurityPkg/Library/HashInstanceLibSm3/HashInstance= LibSm3.uni >=20 Pushed as commit range 296c908c6968..5d3ef15da7c3. Thanks Laszlo