From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.1156.1597281655421476218 for ; Wed, 12 Aug 2020 18:20:55 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: christopher.j.zurcher@intel.com) IronPort-SDR: izSeJ47zS7fbgJYzuriH9s2HBaIs8YCa5pOju7NIhTKejiHvgwzi/I5Mb9Vrb845oTyXCgbFEM QHSjdURFsSWw== X-IronPort-AV: E=McAfee;i="6000,8403,9711"; a="155266566" X-IronPort-AV: E=Sophos;i="5.76,306,1592895600"; d="scan'208";a="155266566" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2020 18:20:53 -0700 IronPort-SDR: EX2A7hjVM+lkePRoNwIbeaapPiUbodZaStuhIRUQGihwFTYwsSu033PleKa0Foy+I3poK8VY2c nHRHGVxdluRQ== X-IronPort-AV: E=Sophos;i="5.76,306,1592895600"; d="scan'208";a="470035743" Received: from cjzurch-desk.amr.corp.intel.com ([10.9.70.181]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2020 18:20:52 -0700 From: "Zurcher, Christopher J" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Xiaoyu Lu Subject: [PATCH 0/1] CryptoPkg/BaseCryptLib: Add EVP (Envelope) Digest interface Date: Wed, 12 Aug 2020 18:20:48 -0700 Message-Id: <20200813012049.7402-1-christopher.j.zurcher@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2545 Low-level interfaces to message digest (hash) functions have been deprecated in OpenSSL 3. In order to upgrade to OpenSSL 3, all direct calls to low-level functions (such as SHA256_Init() in CryptSha256.c) will need to be replaced by EVP inteface calls. For reviewers: The added file CryptEvpMd.c is based on CryptHmacSha256.c and can be compared to that file to easily highlight changes. References: https://www.openssl.org/docs/manmaster/man7/evp.html https://www.openssl.org/docs/manmaster/man3/SHA256_Init.html Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Christopher J Zurcher (1): CryptoPkg/BaseCryptLib: Add EVP (Envelope) Digest interface CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf | 1 + CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 1 + CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf | 1 + CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 1 + CryptoPkg/Include/Library/BaseCryptLib.h | 122 +++++++++++ CryptoPkg/Library/BaseCryptLib/Evp/CryptEvpMd.c | 228 ++++++++++++++++++++ 6 files changed, 354 insertions(+) create mode 100644 CryptoPkg/Library/BaseCryptLib/Evp/CryptEvpMd.c -- 2.28.0.windows.1