From nobody Sun Feb 8 19:38:09 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43685+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43685+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1562978827; cv=none; d=zoho.com; s=zohoarc; b=IYuFxzluWN7a6cbQ0ITl38Zk9naz2Vcj9rw7f5egZKy1wqKmiWMmDiPD7OboctcjGb0+PcUeiGDafo4l2XEj5aV8qw3rZwQr+0+XTvtG55kQiyY0Tx7/o9i4Lr/VfIgDNBviLzbE15Nhnc8MaftpddLt+gYAmatSe9dPt3Dxwow= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562978827; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=OrB3EC+HIxZcMhaHAluYzu6OaEc8EtSoZ43on1EcZgU=; b=TQLT0Ba+udVE4L9YBvhFOVUH2MGDL5U3m4Xg/Jp4PgKAFBhAtgnGSSF9ZeUkE9rjJJAxssdbuwdWroPqcMtR/QndBvLNF+4qw8oFxHkTiosBxtmQZr9kXlJ3FXj3THTlGAcknd8bK4sT0bMbYuGBrARVYkampoEC33hQAEeZXjs= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43685+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 156297882794010.3243921362847; Fri, 12 Jul 2019 17:47:07 -0700 (PDT) Return-Path: X-Received: from mga03.intel.com (mga03.intel.com []) by groups.io with SMTP; Fri, 12 Jul 2019 17:47:05 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2019 17:47:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,484,1557212400"; d="scan'208";a="160544047" X-Received: from mariengu-mobl.amr.corp.intel.com ([10.252.129.197]) by orsmga008.jf.intel.com with ESMTP; 12 Jul 2019 17:47:04 -0700 From: "Imran Desai" To: devel@edk2.groups.io Cc: Chao Zhang , Jiewen Yao , Jian Wang Subject: [edk2-devel] [PATCH v6 3/5] SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest algorithm Date: Fri, 12 Jul 2019 17:46:59 -0700 Message-Id: <20190713004701.78253-4-imran.desai@intel.com> In-Reply-To: <20190713004701.78253-1-imran.desai@intel.com> References: <20190713004701.78253-1-imran.desai@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,imran.desai@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1562978827; bh=J3fVQSX3fhjg/zEU4uHrDxs1YoGb9aU+MJ+gwmJbFP8=; h=Cc:Date:From:Reply-To:Subject:To; b=SP4gflPHOfOCKsTdHWZJBTR1rN+QllnxPYBA3+YJ9TUBTWFerWMAowaxFL+4X4mnXYT Re2BOnbNHsLGmK4VDwEHFOBcqZO25gUwaULc1xqucpiHSg/QOtsHz7Vy1tL65DqF3Wve+ vY9bHAa5hdBiZZjH7UjG5LAGQn4uNAdBtMM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1781 GITHUB: https://github.com/idesai/edk2/tree/enable_sm3_measured_boot_v6 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 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. Cc: Chao Zhang Cc: Jiewen Yao Cc: Jian Wang Signed-off-by: Imran Desai Reviewed-by: Jian J Wang --- SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCommon.= c | 1 + 1 file changed, 1 insertion(+) diff --git a/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoR= outerCommon.c b/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryp= toRouterCommon.c index 7f3bdab53066..aec874a9e072 100644 --- a/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCo= mmon.c +++ b/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCo= mmon.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 /** --=20 2.17.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#43685): https://edk2.groups.io/g/devel/message/43685 Mute This Topic: https://groups.io/mt/32454903/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-