Repository navigation
fix(crypto): M32 is u64 -- wasm32's usize cannot hold 2^32 (Refs #11840) - #11841
Merged
Merged
Conversation
… (Refs #11840) The T27 OS lab's wasm step (the live closure's scalar plane, built for wasm32 where usize is 32 bits) refused work_graph.zig: 'type usize cannot represent integer value 4294967296' -- sha256.t27's M32 (the 2^32 modulus of every sigma and round) was declared usize. u64 is the honest type: every operand it modulates is a u64 accumulator, and the digest tests pin the same bits. 5/5 under t27c test-report and under t27b. Found by the T27 OS lab dispatching on master b065be2 -- the lab caught a defect the host-64 builds never see. That is the lab working as t27os#3 intends.
gHashTag
enabled auto-merge
October 23, 2026 15:37
Contributor
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found by the T27 OS lab's wasm step (the live closure scalar plane, wasm32 = 32-bit usize) refusing work_graph.zig with 'type usize cannot represent integer value 4294967296' — sha256.t27's M32, the 2^32 modulus of every sigma and round, was declared usize. u64 is the honest type: every operand it modulates is a u64 accumulator; the digest tests pin the same bits. 5/5 under t27c test-report and t27b. The lab caught a defect the host-64 builds never see — exactly what t27os#3 built it to do. Epic: #11840.