Skip to content
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

Update modhashlib.c : adler32 checksum. #15322

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

massimosala
Copy link

No description provided.

Signed-off-by: massimosala <massimo.sala.71@gmail.com>
@massimosala massimosala changed the title Update modhashlib.c : adler32 checksum Update modhashlib.c : adler32 checksum. Jun 20, 2024
Signed-off-by: massimosala <massimo.sala.71@gmail.com>
Copy link

Code size report:


@andrewleech
Copy link
Sponsor Contributor

hashlib is intended to be a subset of the official cpython hashlib, as are all builtins that have a matching name cpython module.

Screenshot_20240621-102224.png

@mattytrentini
Copy link
Sponsor Contributor

Yes, as @andrewleech has mentioned, this should be added to zlib, same as in CPython and the signature needs to match.

That adds a slight complication since it's recommended that deflate should be preferred to zlib for compression - and so the zlib library is less likely to be included. May be worth a discussion to carefully specify #define's to allow for adler32 to be included separate from compress/decompress.

It also needs documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants