From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: imran.desai@intel.com) Received: from mga05.intel.com (mga05.intel.com []) by groups.io with SMTP; Wed, 03 Jul 2019 17:47:33 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 17:47:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,449,1557212400"; d="scan'208";a="363206897" Received: from meknutso-mobl1.amr.corp.intel.com ([10.252.137.108]) by fmsmga006.fm.intel.com with ESMTP; 03 Jul 2019 17:47:32 -0700 From: "Imran Desai" To: devel@edk2.groups.io Cc: imran.desai@intel.com, imranodesai@gmail.com, Michael D Kinney , Liming Gao Subject: [PATCH v5 1/5] MdePkg/Protocol/Hash: introduce GUID for SM3 digest algorithm Date: Wed, 3 Jul 2019 17:47:32 -0700 Message-Id: <20190704004732.77641-1-imran.desai@intel.com> X-Mailer: git-send-email 2.17.0 BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781 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 GUID for SM3 digest algorithm. Signed-off-by: Imran Desai Cc: Michael D Kinney Cc: Liming Gao --- MdePkg/Include/Protocol/Hash.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MdePkg/Include/Protocol/Hash.h b/MdePkg/Include/Protocol/Hash.h index 931d7916ef1e..8abf1a4fa305 100644 --- a/MdePkg/Include/Protocol/Hash.h +++ b/MdePkg/Include/Protocol/Hash.h @@ -48,6 +48,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent 0xcaa4381e, 0x750c, 0x4770, {0xb8, 0x70, 0x7a, 0x23, 0xb4, 0xe4, 0x21, 0x30 } \ } +#define EFI_HASH_ALGORITHM_SM3_256_GUID \ + { \ + 0x251C7818, 0x0DBF, 0xE619, { 0x7F, 0xC2, 0xD6, 0xAC, 0x43, 0x42, 0x7D, 0xA3 } \ + } + #define EFI_HASH_ALGORTIHM_MD5_GUID \ { \ 0xaf7c79c, 0x65b5, 0x4319, {0xb0, 0xae, 0x44, 0xec, 0x48, 0x4e, 0x4a, 0xd7 } \ -- 2.17.0