From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.1033.1589221649973930155 for ; Mon, 11 May 2020 11:27:30 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: zhichao.gao@intel.com) IronPort-SDR: Dk/jd1fi4VhMeQG4Dfe47N2QHKB3Xb/rMMFlteOfh9AatgiB0j2KzUTHXT3TB6XpGyC1/a8/M5 lHp5YZJ4vaAA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2020 11:27:29 -0700 IronPort-SDR: cWgYo6BEt9J+1WArBG+T+rBR71GyJ8lAPh/dIBRxu38tKQ+RGIkL81uEf+OKr6zpzZZ1ZDB2dR yhFGdD5o8Kww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,380,1583222400"; d="scan'208";a="265244816" Received: from fieedk001.ccr.corp.intel.com ([10.239.33.114]) by orsmga006.jf.intel.com with ESMTP; 11 May 2020 11:27:27 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Xiaoyu Lu , Siyuan Fu , Michael D Kinney , Jiewen Yao , Philippe Mathieu-Daude Subject: [PATCH V4 00/11] CryptoPkg: Retire the deprecated functions Date: Tue, 12 May 2020 02:27:07 +0800 Message-Id: <20200511182718.7728-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=1898 Retire below deprecated functions: MD4, ARC4, TDES, AES ECB MODE, HMAC MD5, HMAC SHA1. V2: Seprate the MD5 and SHA1 changes to other patch set. Change the deprecated function wrapper implementatuion in EDKII_CRYPTO_PROTOCOL to call a dummy function to print debug message and assert. V3: Remove the missing part of deprecated functions in V2. Change the name field in the EDKII_CRYPTO_PROTOCOL to indicate the function is deprecated and unsupported. V4: Fixed some typos. Separate the change of OpensslLib and make the change with process_files.pl. Moving the incorrect changes of AES_ECB from HAMC MD5 patch to Aes Ecb one. Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Siyuan Fu Cc: Michael D Kinney Cc: Jiewen Yao Cc: Philippe Mathieu-Daude Signed-off-by: Zhichao Gao Zhichao Gao (8): CryptoPkg/CryptoDxe: Add function to indicate the deprecated algorithm CryptoPkg/BaseCrpytLib: Retire MD4 algorithm CryptoPkg/BaseCryptLib: Retire ARC4 algorithm CryptoPkg/BaseCryptLib: Retire the Tdes algorithm CryptoPkg/BaseCryptLib: Retire Aes Ecb mode algorithm CryptoPkg/BaseCryptLib: Retire HMAC MD5 algorithm CryptoPkg/BaseCryptLib: Retire HMAC SHA1 algorithm CryptoPkg/Crypto.h: Update the version of Crypto Driver Zhiguang Liu (3): CryptoPkg/OpensslLib: Set MD4 disable in OpensslLib CryptoPkg/OpensslLib: Set ARC4 disable in OpensslLib CryptoPkg/OpensslLib: Set TDES disable in OpensslLib CryptoPkg/CryptoPkg.dsc | 46 +- CryptoPkg/Driver/Crypto.c | 786 ++--------- CryptoPkg/Include/Library/BaseCryptLib.h | 809 ------------ .../Library/BaseCryptLib/BaseCryptLib.inf | 7 +- .../Library/BaseCryptLib/Cipher/CryptAes.c | 114 -- .../BaseCryptLib/Cipher/CryptAesNull.c | 52 - .../Library/BaseCryptLib/Cipher/CryptArc4.c | 205 --- .../BaseCryptLib/Cipher/CryptArc4Null.c | 124 -- .../Library/BaseCryptLib/Cipher/CryptTdes.c | 364 ------ .../BaseCryptLib/Cipher/CryptTdesNull.c | 160 --- .../Library/BaseCryptLib/Hash/CryptMd4.c | 223 ---- .../Library/BaseCryptLib/Hash/CryptMd4Null.c | 143 -- .../Library/BaseCryptLib/Hmac/CryptHmacMd5.c | 216 --- .../BaseCryptLib/Hmac/CryptHmacMd5Null.c | 139 -- .../Library/BaseCryptLib/Hmac/CryptHmacSha1.c | 216 --- .../BaseCryptLib/Hmac/CryptHmacSha1Null.c | 139 -- .../Library/BaseCryptLib/PeiCryptLib.inf | 11 +- .../Library/BaseCryptLib/PeiCryptLib.uni | 8 +- CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c | 7 +- .../Library/BaseCryptLib/RuntimeCryptLib.inf | 11 +- .../Library/BaseCryptLib/RuntimeCryptLib.uni | 8 +- .../Library/BaseCryptLib/SmmCryptLib.inf | 12 +- .../Library/BaseCryptLib/SmmCryptLib.uni | 8 +- .../BaseCryptLibNull/BaseCryptLibNull.inf | 5 - .../BaseCryptLibNull/Cipher/CryptAesNull.c | 52 - .../BaseCryptLibNull/Cipher/CryptArc4Null.c | 124 -- .../BaseCryptLibNull/Cipher/CryptTdesNull.c | 160 --- .../BaseCryptLibNull/Hash/CryptMd4Null.c | 143 -- .../BaseCryptLibNull/Hmac/CryptHmacMd5Null.c | 139 -- .../BaseCryptLibNull/Hmac/CryptHmacSha1Null.c | 139 -- .../BaseCryptLibOnProtocolPpi/CryptLib.c | 1157 ++--------------- .../Library/Include/openssl/opensslconf.h | 9 + CryptoPkg/Library/OpensslLib/OpensslLib.inf | 28 - .../Library/OpensslLib/OpensslLibCrypto.inf | 28 - CryptoPkg/Library/OpensslLib/process_files.pl | 3 + CryptoPkg/Private/Protocol/Crypto.h | 709 ++-------- 36 files changed, 402 insertions(+), 6102 deletions(-) delete mode 100644 CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Cipher/CryptArc4Null.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdesNull.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hash/CryptMd4Null.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1.c delete mode 100644 CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c delete mode 100644 CryptoPkg/Library/BaseCryptLibNull/Cipher/CryptArc4Null.c delete mode 100644 CryptoPkg/Library/BaseCryptLibNull/Cipher/CryptTdesNull.c delete mode 100644 CryptoPkg/Library/BaseCryptLibNull/Hash/CryptMd4Null.c delete mode 100644 CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacMd5Null.c delete mode 100644 CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha1Null.c -- 2.21.0.windows.1