Skip to content

gh-135532: module-wide cleanup for HACL*-based extension modules #135536

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

Closed
wants to merge 50 commits into from

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Jun 15, 2025

This is the first batch of cleanup. Honestly I'm sometimes lost when I navigate through files because MD5/SHA1/SHA2 have the same naming conventions, but SHA3 and BLAKE-2 have different conventions.

I've anyway introduced too many conflicts already compared to 3.14, so I don't think it'll become better. At least, when I work towards new features or bugfixes on the main branch, I won't be lost!

I will continue updating the comments as well. For now I've just move around some code and renamed some functions/attributes/variables. I find the naming _blake2_traverse especially confusing as it could have been both the module or the object traverse function!

@gpshead are you ok with this "purely cosmetic" change which still improves maintainability? I can isolate the clinic directive updates which are real issues (but never caught because they are never used)

@picnixz
Copy link
Member Author

picnixz commented Jun 15, 2025

!buildbot FIPS only

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @picnixz for commit abfa1af 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135536%2Fmerge

The command will test the builders whose names match following regular expression: FIPS only

The builders matched are:

  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 CentOS9 FIPS Only Blake2 Builtin Hash PR

@picnixz picnixz marked this pull request as ready for review June 19, 2025 09:41
@picnixz picnixz requested review from gpshead and tiran as code owners June 19, 2025 09:41
@picnixz picnixz marked this pull request as draft June 20, 2025 10:55
@picnixz
Copy link
Member Author

picnixz commented Jun 20, 2025

Waiting for other PRs to be merged. Too many conflicts will appear otherwise.

@picnixz
Copy link
Member Author

picnixz commented Jun 22, 2025

Ok some changes are not worth it at all.

@picnixz
Copy link
Member Author

picnixz commented Jun 22, 2025

Moving code around is more likely to get me annoyed in the future so I won't do it. I had rewritten SHA-2 and SHA-3 but those as well could be dropped.

@picnixz picnixz closed this Jun 22, 2025
@picnixz picnixz deleted the refactor/crypto/hacl-based-135532 branch June 22, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants