public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH V2 0/2] CryptoPkg: Add MARCO to disable MD5 & SHA1
@ 2020-06-18  0:41 Gao, Zhichao
  2020-06-18  0:41 ` [PATCH V2 1/2] CryptoPkg/BaseCryptLib: Add MARCO to disable the deprecated MD5 Gao, Zhichao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gao, Zhichao @ 2020-06-18  0:41 UTC (permalink / raw)
  To: devel; +Cc: Jian J Wang, Xiaoyu Lu, Jiewen Yao, Siyuan Fu, Michael D Kinney

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 <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>

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


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

end of thread, other threads:[~2020-06-22  2:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-18  0:41 [PATCH V2 0/2] CryptoPkg: Add MARCO to disable MD5 & SHA1 Gao, Zhichao
2020-06-18  0:41 ` [PATCH V2 1/2] CryptoPkg/BaseCryptLib: Add MARCO to disable the deprecated MD5 Gao, Zhichao
2020-06-18  0:41 ` [PATCH V2 2/2] CryptoPkg/BaseCryptLib: Add MARCO to disable the deprecated SHA1 Gao, Zhichao
2020-06-22  2:56 ` [PATCH V2 0/2] CryptoPkg: Add MARCO to disable MD5 & SHA1 Wang, Jian J

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