From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: imran.desai@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Fri, 17 May 2019 11:31:29 -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 fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2019 11:31:28 -0700 X-ExtLoop1: 1 Received: from idesai-mac01.ch.intel.com ([10.78.25.143]) by fmsmga006.fm.intel.com with ESMTP; 17 May 2019 11:31:28 -0700 From: Imran Desai To: devel@edk2.groups.io Subject: [Enable measured boot with SM3 digest algorithm 0/4] Date: Fri, 17 May 2019 11:31:23 -0700 Message-Id: <20190517183127.38140-1-imran.desai@intel.com> X-Mailer: git-send-email 2.17.0 https://github.com/idesai/edk2/tree/enable_sm3_measured_boot Support for SM3 digest algorithm is needed for TPM with SM3 PCR banks. This digest algorithm is part of the China Crypto algorithm suite. Support for these algorithms is needed to enable platforms for the PRC market. This integration has dependency on the openssl_1_1_1b integration into edk2. Imran Desai (4): sm3_enabling: Augment crypt interface with calls into openssl to calculate sm3 digest prior to exercising TPM2 calls for PCR extend sm3-enabling: Add SM3 TCG algorithm registry value to the PcdTpm2HashMask sm3-enabling: Add SM3 guid reference in the TPM2 hash mask structure in HashLibBaseCryptoRouterCommon.c sm3-enabling: Add SM3 hashinstance library information to all OvmfPkg and SecurityPkg SecurityPkg/SecurityPkg.dec | 5 +- OvmfPkg/OvmfPkgIa32.dsc | 2 + OvmfPkg/OvmfPkgIa32X64.dsc | 2 + OvmfPkg/OvmfPkgX64.dsc | 2 + SecurityPkg/SecurityPkg.dsc | 3 + .../HashInstanceLibSm3/HashInstanceLibSm3.inf | 46 ++++++ MdePkg/Include/Protocol/Hash.h | 5 + SecurityPkg/Include/Library/HashLib.h | 1 + .../HashInstanceLibSm3/HashInstanceLibSm3.c | 155 ++++++++++++++++++ .../HashLibBaseCryptoRouterCommon.c | 1 + .../HashInstanceLibSm3/HashInstanceLibSm3.uni | 21 +++ 11 files changed, 241 insertions(+), 2 deletions(-) create mode 100644 SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf create mode 100644 SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.c create mode 100644 SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.uni -- 2.17.0