public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/1] CryptoPkg/BaseCryptLib: Add EVP (Envelope) Digest interface
@ 2020-08-13  1:20 Zurcher, Christopher J
  2020-08-13  1:20 ` [PATCH 1/1] " Zurcher, Christopher J
  0 siblings, 1 reply; 6+ messages in thread
From: Zurcher, Christopher J @ 2020-08-13  1:20 UTC (permalink / raw)
  To: devel; +Cc: Jiewen Yao, Jian J Wang, Xiaoyu Lu

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 <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-14 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-13  1:20 [PATCH 0/1] CryptoPkg/BaseCryptLib: Add EVP (Envelope) Digest interface Zurcher, Christopher J
2020-08-13  1:20 ` [PATCH 1/1] " Zurcher, Christopher J
2020-08-13  9:46   ` [edk2-devel] " Laszlo Ersek
2020-08-13  9:47     ` Laszlo Ersek
2020-08-13 14:38     ` Yao, Jiewen
2020-08-14 21:33       ` Zurcher, Christopher J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox