git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] avoid functions deprecated in OpenSSL 3+
@ 2023-08-01  2:54 Eric Wong
  2023-08-01  2:54 ` [PATCH 1/2] sha256: " Eric Wong
  2023-08-01  2:54 ` [PATCH 2/2] avoid SHA-1 " Eric Wong
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Wong @ 2023-08-01  2:54 UTC (permalink / raw)
  To: git

OpenSSL appears to be getting rid of the SHA1* and SHA256*
functions in favor of the more generic EVP_* APIs.  The EVP_*
APIs unfortunately require more attention to be paid to memory
management and require specialized copy functions (like gcrypt),
so I'm only using them with OpenSSL 3.x (I've tested 1.1.1n, too).

I'm in favor of keeping OpenSSL support since its development
headers/libraries are more likely to be already-installed on
developers' systems than nettle or gcrypt.

On Debian systems participating in popularity-contest:
libssl-dev is in 21.95% of systems, while nettle-dev and
libgcrypt20-dev is are only in 4.08% and 2.94%, respectively:

  https://qa.debian.org/popcon.php?package=openssl
  https://qa.debian.org/popcon.php?package=nettle
  https://qa.debian.org/popcon.php?package=libgcrypt20

Eric Wong (2):
  sha256: avoid functions deprecated in OpenSSL 3+
  avoid SHA-1 functions deprecated in OpenSSL 3+

 Makefile         |  6 ++++++
 hash-ll.h        | 18 ++++++++++++++++--
 sha1/openssl.h   | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 sha256/openssl.h | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 120 insertions(+), 2 deletions(-)
 create mode 100644 sha1/openssl.h
 create mode 100644 sha256/openssl.h

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

end of thread, other threads:[~2023-08-01 20:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-01  2:54 [PATCH 0/2] avoid functions deprecated in OpenSSL 3+ Eric Wong
2023-08-01  2:54 ` [PATCH 1/2] sha256: " Eric Wong
2023-08-01  2:54 ` [PATCH 2/2] avoid SHA-1 " Eric Wong
2023-08-01 16:03   ` Junio C Hamano
2023-08-01 19:53     ` Eric Wong
2023-08-01 20:17       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).