-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
gh-131876: extract _hashlib
helpers into a separate directory
#137319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
259a802
to
ffe7db7
Compare
…python#136995) The `Modules/hashlib.h` helper file is now removed and split into multiple files: * `Modules/_hashlib/hashlib_buffer.h` -- 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.
ffe7db7
to
2fb8a6c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
What is the point of splitting a header file into three? |
Maintainability for me. This will grow into more code when I plan to move some of the OpenSSL fetch interface from _hashopenssl there as I want to be able to use it in HMAC as well. However I had linker issues :( so for now I wanted to lay out the structure first. What I can do is hold this change and design the fetch API. Then merge both of them at the same time. |
!buildbot emscripten |
🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 2fb8a6c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137319%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
So this reverts the revert and fixes the WASM build. The WASI build was not affected but it should have been I think but I can't seem to make it fail (maybe duplicated symbols are allowed?)
_hashlib
and_hmac
#131876