Skip to content

Use explicit wrapping arithmetic in compression rounds#134

Open
Keno wants to merge 1 commit into
JuliaCrypto:masterfrom
KenoAIStaging:kf/wrapping-arithmetic-50790
Open

Use explicit wrapping arithmetic in compression rounds#134
Keno wants to merge 1 commit into
JuliaCrypto:masterfrom
KenoAIStaging:kf/wrapping-arithmetic-50790

Conversation

@Keno

@Keno Keno commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This PR goes with JuliaLang/julia#50790. There is no particularly urgent need to merge it, but opening it for completeness in case we want to add a CI job that runs checked.

Use Julia's explicit wrapping arithmetic operators for SHA-1 and SHA-2 round and state updates. This keeps the compression routines correct when ordinary integer arithmetic is made checked, as in JuliaLang/julia#50790.

Co-authored-by: OpenAI Codex <codex@openai.com>
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.

1 participant