From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web12.1710.1615949803913697578 for ; Tue, 16 Mar 2021 19:56:44 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: qi1.zhang@intel.com) IronPort-SDR: R6QUVHRGjD1Cm8T8BDPwG0Qp4Oc1OmmpU+kIo7KcvexiE9ioPtpKbMhuSjE3cI/p2/I33lHVJi K+22sXx97Csw== X-IronPort-AV: E=McAfee;i="6000,8403,9925"; a="274420666" X-IronPort-AV: E=Sophos;i="5.81,254,1610438400"; d="scan'208";a="274420666" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2021 19:56:43 -0700 IronPort-SDR: f7gOURfDguMsa6k6uqYuRaDprkwJooxc7rWFa2F1RjzbCtWkMeIXOA1JjwrpAHM5c6ezUSi3ss RDkOj00s1+CA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,254,1610438400"; d="scan'208";a="605516785" Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.157.130]) by fmsmga005.fm.intel.com with ESMTP; 16 Mar 2021 19:56:42 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Qi Zhang , Jiewen Yao , Jian J Wang , Rahul Kumar Subject: [PATCH] SecurityPkg/Tcg2Config: hide PCR Bank SHA1 checkbox Date: Wed, 17 Mar 2021 10:56:32 +0800 Message-Id: <20210317025632.3640-1-qi1.zhang@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable wrap SHA1 related by DISABLE_SHA1_DEPRECATED_INTERFACES. Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Qi Zhang --- SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c b/SecurityPkg/Tcg/= Tcg2Config/Tcg2ConfigImpl.c index 2946f95db0..81a4d3fa6a 100644 --- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c +++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigImpl.c @@ -710,9 +710,11 @@ SetConfigInfo ( )=0D {=0D switch (TpmAlgHash) {=0D +#ifndef DISABLE_SHA1_DEPRECATED_INTERFACES=0D case TPM_ALG_SHA1:=0D Tcg2ConfigInfo->Sha1Supported =3D TRUE;=0D break;=0D +#endif=0D case TPM_ALG_SHA256:=0D Tcg2ConfigInfo->Sha256Supported =3D TRUE;=0D break;=0D --=20 2.26.2.windows.1