Received: from eggs.gnu.org ([2001:4830:134:3::10]:56538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqFF3-0002Za-35 for qemu-devel@nongnu.org; Mon, 26 Feb 2018 04:38:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqFEy-0005WL-6W for qemu-devel@nongnu.org; Mon, 26 Feb 2018 04:38:39 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37848 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eqFEy-0005VM-0v for qemu-devel@nongnu.org; Mon, 26 Feb 2018 04:38:36 -0500 References: <20180223132311.26555-1-marcandre.lureau@redhat.com> <20180223132311.26555-5-marcandre.lureau@redhat.com> From: Laszlo Ersek Message-ID: Date: Mon, 26 Feb 2018 10:38:32 +0100 MIME-Version: 1.0 In-Reply-To: <20180223132311.26555-5-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [edk2] [PATCH 4/7] ovmf: link with Tcg2Pei module List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, edk2-devel@lists.01.org Cc: qemu-devel@nongnu.org, javierm@redhat.com, pjones@redhat.com, jiewen.yao@intel.com On 02/23/18 14:23, marcandre.lureau@redhat.com wrote: > From: Marc-Andr=C3=A9 Lureau >=20 > This module will initialize TPM device, measure reported FVs and BIOS > version. >=20 > CC: Laszlo Ersek > CC: Stefan Berger > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > OvmfPkg/OvmfPkgX64.dsc | 7 +++++++ > OvmfPkg/OvmfPkgX64.fdf | 1 + > 2 files changed, 8 insertions(+) >=20 > diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc > index b5cbe8430f..34a7c2778e 100644 > --- a/OvmfPkg/OvmfPkgX64.dsc > +++ b/OvmfPkg/OvmfPkgX64.dsc > @@ -279,6 +279,8 @@ > PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf > QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf > !if $(TPM2_ENABLE) > + BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf > + HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCrypt= oRouterPei.inf > Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLib= DTpm.inf > Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTp= m.inf > !endif > @@ -647,6 +649,11 @@ > =20 > !if $(TPM2_ENABLE) =3D=3D TRUE > SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf > + SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf { > + > + NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1= .inf > + NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSh= a256.inf > + } > !endif > =20 > !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE > diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf > index dc35d0a1f7..9558142a42 100644 > --- a/OvmfPkg/OvmfPkgX64.fdf > +++ b/OvmfPkg/OvmfPkgX64.fdf > @@ -170,6 +170,7 @@ INF MdeModulePkg/Universal/Variable/Pei/VariablePe= i.inf > !endif > !if $(TPM2_ENABLE) =3D=3D TRUE > INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf > +INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf > !endif > =20 > ######################################################################= ########## >=20 Would it be possible to drop SHA1 (include SHA256 only) by setting PcdTpm2HashMask to value 2? Or SHA1 required for some other reason? (If so please mention it in the commit message.) Thanks Laszlo