From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web10.2293.1592440929291374006 for ; Wed, 17 Jun 2020 17:42:09 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: zhichao.gao@intel.com) IronPort-SDR: jEuB1ey33DOFAF933DU9AYDcUaHIe+bLAhsppiuzV+ulygNJVCUSc1lYk2Og7GdDUjlZkSpQmi 7oL9vImvMbMw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2020 17:42:08 -0700 IronPort-SDR: oo8m6q5S0XAvoXPEavd+IcraHskTDawkW/Td012+mWJA6L3txc1TXT/s/iIebYSFuFb2OboWSG xzTzyQsq3Bkw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,524,1583222400"; d="scan'208";a="383369329" Received: from fieedk001.ccr.corp.intel.com ([10.239.33.114]) by fmsmga001.fm.intel.com with ESMTP; 17 Jun 2020 17:42:07 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Xiaoyu Lu , Jiewen Yao , Siyuan Fu , Michael D Kinney Subject: [PATCH V2 0/2] CryptoPkg: Add MARCO to disable MD5 & SHA1 Date: Thu, 18 Jun 2020 08:41:35 +0800 Message-Id: <20200618004137.40276-1-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REf: https://bugzilla.tianocore.org/show_bug.cgi?id=1682 V1: Add new PCD to disable MD5 & SHA1. Using the PCD to remove the decalration and definition of the MD5 & SHA1 functions. V2: Using the MARCO as DISABLE_NEW_DEPRECATED_INTERFACES to disable the MD5 & SHA1. This MARCO would make the platform able to disable MD5 & SHA1 by setting the MARCO at their platform dsc file. In the future, if MD5 and SHA1 related functions are removed totally, we can remove all the content of MD5 & SHA1. Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Jiewen Yao Cc: Siyuan Fu Cc: Michael D Kinney Signed-off-by: Zhichao Gao Zhichao Gao (2): CryptoPkg/BaseCryptLib: Add MARCO to disable the deprecated MD5 CryptoPkg/BaseCryptLib: Add MARCO to disable the deprecated SHA1 CryptoPkg/Driver/Crypto.c | 320 ++++++++++++++++++ CryptoPkg/Include/Library/BaseCryptLib.h | 4 + .../Library/BaseCryptLib/Hash/CryptMd5.c | 3 +- .../Library/BaseCryptLib/Hash/CryptSha1.c | 3 +- .../BaseCryptLibOnProtocolPpi/CryptLib.c | 4 + 5 files changed, 332 insertions(+), 2 deletions(-) -- 2.21.0.windows.1