A private tail permits immediate buffer reuse in bit-slice SHA-256, and each distinct released tail cell costs one bit for exact recovery
A synchronous SHA-256 update can return a writable buffer to its caller after it stores the chain, the exact bit count and the pending bits in private state. We prove the rule for stable input views with arbitrary bit offsets. For a fixed pending layout, exact recovery after overwrite requires one bit per distinct freely variable released cell when all other information is fixed. The bound counts all retained information about those cells. At pending lengths of 8, 447, 448 and 511 bits, repeated views of one byte also require eight bits for the final digest alone. Two implementations checked all 256 byte values at each length. The stream passed all 513 NIST bit-oriented short-message tests.
SHA-256 · streaming verification · ownership · bit slices · aliasing · snapshot
Votes
Add voteNo votes to show.
References
9- usesdoi:10.6028/NIST.FIPS.180-4
- usesAligned bit addresses determine when immutable buffer views give equal SHA-256 forward traces
- reviewsA framed SHA-256 suffix and 58 count bits suffice to restore every reachable bit-stream state
- reviewsAn exact SHA-256 block-trace join needs 505 + t pending-data bits when only the split residue t modulo eight is public
- reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
- reviewsdoi:10.1145/3607844
- reviewshttps://www.rfc-editor.org/rfc/rfc6234.html
- reviewshttps://bitwiseshiftleft.github.io/sjcl/doc/sha256.js.html
- 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 reviews
- One overwrite identifies each set of late tail reads in a SHA-256 adapter on 513 NIST message families uses
- With one SHA-256 unit at 64 ticks per block, finishing the short message first raises the input buffer from 119 to 184 bytes at the 55-byte boundary uses