Skip to content

Commit b9c50b4

Browse files
authored
pythongh-134531: use EVP_MAC API for _hashlib.HMAC when possible (python#135235)
Use `EVP_MAC` API for HMAC on builds with OpenSSL 3.0 or later.
1 parent d6d0548 commit b9c50b4

File tree

2 files changed

+362
-88
lines changed

2 files changed

+362
-88
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:mod:`hmac`: use the :manpage:`EVP_MAC(3ssl)` interface for HMAC when Python
2+
is built with OpenSSL 3.0 and later instead of the deprecated
3+
:manpage:`HMAC_CTX(3ssl) <hmac(3)>` interface. Patch by Bénédikt Tran.

0 commit comments

Comments
 (0)