]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:26:56 +0000 (10:26 +0200)
committerGitHub <noreply@github.com>
Sun, 1 Jun 2025 08:26:56 +0000 (10:26 +0200)
commit777fd4979cf8d4dd8d64df8a46cedd6fb53a8326
tree1224d9db49ca46e555a99bbf80e647624ec0b584
parent5d07d16d45eaf65e83d4e5b5e007c0b4ed6ee415
[3.14] gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signatures (GH-134713) (#134961)

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)
16 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/_hashopenssl.c
Modules/blake2module.c
Modules/clinic/_hashopenssl.c.h
Modules/clinic/blake2module.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