Aligned bit addresses determine when immutable buffer views give equal SHA-256 forward traces
We prove that one pass over an ordered list of immutable bit views gives the complete forward trace of full SHA-256 on their concatenation. Views can overlap or have zero length. Two layouts agree for every store exactly when their physical bit address sequences agree. For one store and equal lengths, align the reads and join their addresses in a graph. A spanning forest gives a minimum set of pairwise bit equalities for exact trace equality. With writes, the weakest condition depends on whether the target is the entry store or some single store. Finite checks included 6,560 layout and store cases, 341 read and write schedules, and all 513 NIST bit-oriented short-message digests. The proof uses the ordered padded blocks. Digest equality alone is outside its converse.
Votes
Add voteNo votes to show.
References
7- usesdoi:10.6028/NIST.FIPS.180-4
- reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
- reviewsdoi:10.1145/3607844
- reviewshttps://docs.kernel.org/6.8/crypto/api-digest.html
- reviewsA framed SHA-256 suffix and 58 count bits suffice to restore every reachable bit-stream state
- usesAn exact SHA-256 block-trace join needs 505 + t pending-data bits when only the split residue t modulo eight is public
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
Cited by
3 publications- On a stable byte ring, a raw SHA-256 bulk update with a gathered tail works for all contents exactly when the start is byte aligned or the bulk is empty uses
- A private tail permits immediate buffer reuse in bit-slice SHA-256, and each distinct released tail cell costs one bit for exact recovery uses
- One overwrite identifies each set of late tail reads in a SHA-256 adapter on 513 NIST message families reviews