]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131876: extract `_hashlib` helpers into a separate directory (#136995)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 28 Jul 2025 09:28:48 +0000 (11:28 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Jul 2025 09:28:48 +0000 (11:28 +0200)
commit45138d35843297395b2d646f5391be108243957a
tree2bd563460089ae851db207f7f215b1621802dd7f
parenteefd70f0ed51e46fa9ff3d465dcf977bd4af28de
gh-131876: extract `_hashlib` helpers into a separate directory (#136995)

The `Modules/hashlib.h` helper file is now removed and split into multiple files:

* `Modules/_hashlib/hashlib_buffer.[ch]` -- Utilities for getting a buffer view and handling buffer inputs.
* `Modules/_hashlib/hashlib_fetch.h` -- Utilities used when fetching a message digest from a digest-like identifier.
  Currently, this file only contains common error messages as the fetching API is not yet implemented.
* `Modules/_hashlib/hashlib_mutex.h` -- Utilities for managing the lock on cryptographic hash objects.
20 files changed:
Makefile.pre.in
Misc/NEWS.d/next/Build/2025-07-22-14-47-45.gh-issue-131876.oaYEEP.rst [new file with mode: 0644]
Modules/_hashlib/hashlib_buffer.c [new file with mode: 0644]
Modules/_hashlib/hashlib_buffer.h [new file with mode: 0644]
Modules/_hashlib/hashlib_fetch.h [new file with mode: 0644]
Modules/_hashlib/hashlib_mutex.h [new file with mode: 0644]
Modules/_hashopenssl.c
Modules/blake2module.c
Modules/hashlib.h [deleted file]
Modules/hmacmodule.c
Modules/md5module.c
Modules/sha1module.c
Modules/sha2module.c
Modules/sha3module.c
PCbuild/_hashlib.vcxproj
PCbuild/_hashlib.vcxproj.filters
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
configure
configure.ac