gh-131418: remove unused legacy typedefs in {md5,sha1}module.c#131420
gh-131418: remove unused legacy typedefs in {md5,sha1}module.c#131420picnixz merged 1 commit intopython:mainfrom
{md5,sha1}module.c#131420Conversation
|
I forgot to merge this one this morning. I'm leaving for a few days so I'll merge it on Sunday (with a commit message indicating which |
vstinner
left a comment
There was a problem hiding this comment.
LGTM. If the code still builds after this change, the code was dead code :-)
|
I'll backport them to 3.12 and 3.13, as HACL* MD5 and HACL* SHA-1 are already present. It doesn't hurt (it's also good to reduce the number of lines in the file) |
|
Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
pythonGH-131420) - Remove legacy typedefs `MD5_INT32` and `MD5_INT64` in `Modules/md5module.c` - Remove legacy typedefs `SHA1_INT32` and `SHA1_INT64` in `Modules/sha1module.c`. Those legacy typedefs were used to detect whether the host platform could correctly implement MD5 and SHA-1, but this is no longer needed as we now fallback to HACL* implementations. (cherry picked from commit a9a399f) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-131619 is a backport of this pull request to the 3.12 branch. |
pythonGH-131420) - Remove legacy typedefs `MD5_INT32` and `MD5_INT64` in `Modules/md5module.c` - Remove legacy typedefs `SHA1_INT32` and `SHA1_INT64` in `Modules/sha1module.c`. Those legacy typedefs were used to detect whether the host platform could correctly implement MD5 and SHA-1, but this is no longer needed as we now fallback to HACL* implementations. (cherry picked from commit a9a399f) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-131620 is a backport of this pull request to the 3.13 branch. |
…c` (GH-131420) (#131619) gh-131418: remove unused legacy typedefs in `{md5,sha1}module.c` (GH-131420) - Remove legacy typedefs `MD5_INT32` and `MD5_INT64` in `Modules/md5module.c` - Remove legacy typedefs `SHA1_INT32` and `SHA1_INT64` in `Modules/sha1module.c`. Those legacy typedefs were used to detect whether the host platform could correctly implement MD5 and SHA-1, but this is no longer needed as we now fallback to HACL* implementations. (cherry picked from commit a9a399f) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
…c` (GH-131420) (#131620) gh-131418: remove unused legacy typedefs in `{md5,sha1}module.c` (GH-131420) - Remove legacy typedefs `MD5_INT32` and `MD5_INT64` in `Modules/md5module.c` - Remove legacy typedefs `SHA1_INT32` and `SHA1_INT64` in `Modules/sha1module.c`. Those legacy typedefs were used to detect whether the host platform could correctly implement MD5 and SHA-1, but this is no longer needed as we now fallback to HACL* implementations. (cherry picked from commit a9a399f) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
md5module.candsha1module.c#131418