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.web10.9993.1581703549891028944 for ; Fri, 14 Feb 2020 10:05:50 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: amol.n.sukerkar@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2020 10:05:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,441,1574150400"; d="scan'208";a="314133885" Received: from ansukerk-desk.amr.corp.intel.com ([10.34.130.122]) by orsmga001.jf.intel.com with ESMTP; 14 Feb 2020 10:05:48 -0800 From: "Sukerkar, Amol N" To: devel@edk2.groups.io Cc: michael.d.kinney@intel.com, jiewen.yao@intel.com, jian.j.wang@intel.com, sachin.agrawal@intel.com, liming.gao@intel.com Subject: [PATCH v2 0/2] Enhancement and Fixes to BaseHashApiLib Date: Fri, 14 Feb 2020 11:05:43 -0700 Message-Id: <20200214180545.5872-1-amol.n.sukerkar@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch implements the fixes and enhancement to BaseHashApiLib in the following manner: - Remove reference to MD4 and MD5 hashing algorithms as they are deprecated; - Align the enumeration for hashing algorithmswith the one used in TPM 2.0 implementation defined in IndustryStandard/Tpm20.h; - Change the type of PcdHashApiLibPolicy to PcdsFixedAtBuild to optimize away the unused hashing algorithms for a particular instance of HashApiLib. More information can be found at Bugzilla ticket, https://bugzilla.tianocore.org/show_bug.cgi?id=2511. Amol N Sukerkar (2): CryptoPkg/BaseHashApiLib: Align BaseHashApiLib with TPM 2.0 Implementation CryptoPkg/BaseHashApiLib: Change PcdHashApiLibPolicy type to FixedAtBuild CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.c | 120 ++++++-------------- CryptoPkg/CryptoPkg.dec | 18 ++- CryptoPkg/CryptoPkg.uni | 12 +- CryptoPkg/Include/Library/HashApiLib.h | 14 +-- 4 files changed, 51 insertions(+), 113 deletions(-) -- 2.16.2.windows.1