]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signat...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sun, 1 Jun 2025 08:27:02 +0000 (10:27 +0200)
committerGitHub <noreply@github.com>
Sun, 1 Jun 2025 08:27:02 +0000 (10:27 +0200)
commit2c325e28c306d1847b1c834f29c423982977c7de
tree2d42a56bef0445c7b3ff028a2acbeeb9fbb2a8b5
parente69ecfee5e0c747b052215940bbb3c1c45b86910
[3.13] gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signatures (GH-134713) (#134962)

OpenSSL and HACL*-based hash functions constructors now support both `data` and `string` parameters.
Previously these constructor functions inconsistently supported sometimes `data` and sometimes `string`,
while the documentation expected `data` to be given in all cases.

(cherry picked from commit c6e63d9d351f6d952000ec3bf84b3a7607989f92)
(cherry picked from commit 379d0bc95646dfe923e7ea05fb7f1befbd85572d)
18 files changed:
Lib/hashlib.py
Lib/test/test_hashlib.py
Misc/NEWS.d/next/Library/2025-05-26-14-04-39.gh-issue-134696.P04xUa.rst [new file with mode: 0644]
Modules/_blake2/blake2b_impl.c
Modules/_blake2/blake2s_impl.c
Modules/_blake2/clinic/blake2b_impl.c.h
Modules/_blake2/clinic/blake2s_impl.c.h
Modules/_hashopenssl.c
Modules/clinic/_hashopenssl.c.h
Modules/clinic/md5module.c.h
Modules/clinic/sha1module.c.h
Modules/clinic/sha2module.c.h
Modules/clinic/sha3module.c.h
Modules/hashlib.h
Modules/md5module.c
Modules/sha1module.c
Modules/sha2module.c
Modules/sha3module.c