FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-99108: Refactor _sha256 & _sha512 into _sha2. by gpshead · Pull Request #101924 · python/cpython · GitHub

/ cpython Public

gh-99108: Refactor _sha256 & _sha512 into _sha2. - #101924

Merged
gpshead merged 13 commits into
python:mainfrom
gpshead:build/sha2
Feb 16, 2023
Merged

gh-99108: Refactor _sha256 & _sha512 into _sha2.#101924
gpshead merged 13 commits into
python:mainfrom
gpshead:build/sha2

Conversation

gpshead commented Feb 15, 2023
edited
Loading

Copy link
Copy Markdown
Member

This merges their code. They're backed by the same single HACL* static library, having them be a single module simplifies maintenance.

This should unbreak the wasm enscripten builds that currently fail due to linking in --whole-archive mode and the HACL* library appearing twice.

Long unnoticed error fixed: _sha512.SHA384Type was doubly assigned and was actually SHA512Type. Nobody depends on those internal names.

This is a followup to PRs #101707 and #101917.

This merges their code. They're backed by the same single HACL* star static
library, having them be a single module simplifies maintenance.

This should unbreak the wasm enscripten builds that currently fail due to
linking in --whole-archive mode and the HACL* library appearing twice.

Long unnoticed error fixed: `_sha512.SHA384Type` was doubly assigned and was
actually SHA512Type. Nobody depends on those internal names.
gpshead self-assigned this Feb 15, 2023
gpshead added extension-modules C modules in the Modules dir build The build process and cross-build labels Feb 15, 2023
gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 15, 2023

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @gpshead for commit 4c6a4fb 🤖

If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 15, 2023
gpshead marked this pull request as ready for review February 15, 2023 03:04
Comment thread configure.ac
Comment thread Modules/sha2module.c Outdated
Comment thread Modules/sha2module.c Outdated
Comment thread Modules/sha2module.c
Comment thread Modules/sha2module.c
Comment thread Modules/sha2module.c Outdated
Comment thread Modules/sha2module.c Outdated
Comment thread Modules/sha2module.c Outdated

Copy link
Copy Markdown
Contributor

BTW, I'm pretty sure the refleaks are related to #101908.

gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 16, 2023

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @gpshead for commit fb6454d 🤖

If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 16, 2023
gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 16, 2023

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @gpshead for commit 32b8f91 🤖

If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 16, 2023
gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 16, 2023

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @gpshead for commit b67918d 🤖

If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 16, 2023
gpshead merged commit 0b13575 into python:main Feb 16, 2023
gpshead deleted the build/sha2 branch February 16, 2023 06:08
picnixz added a commit that referenced this pull request Mar 3, 2025
Since we plan to introduce a built-in implementation for HMAC based on HACL*,
it becomes important for the HMAC tests to be flexible enough to avoid code
duplication.

In addition to the new layout based on mixin classes, we extend test coverage by
also testing the `__repr__` of HMAC objects and the HMAC one-shot functions.

We also fix the import to `_sha256` which, since gh-101924, resulted in some tests being
skipped as the module is no more available (its content was moved to the `_sha2` module).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build The build process and cross-build extension-modules C modules in the Modules dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL