One byte of overlap reduces the maximum saved data for a rolling SHA-256 word parser from three bytes to two
A rolling parser emits the same 32-bit SHA-256 input words at every split of a finite byte stream. The proof covers ordered appends of overlapping slices and windows that supply each new source position once. If k bytes are pending and the next window supplies the last min(k,h) again, exactly max(k-h,0) bytes of saved payload suffice and can be necessary. This bound assumes public positions, immediate complete-word output and access only to the new window on the next call. One repeated byte reduces the maximum saved payload from three bytes to two. An independent bit parser agrees on all 264 local zero and unit-vector probes. Tests also agree on 48,400 split schedules for a nine-byte buffer and all 65 cuts of the NIST abc block. The result concerns input words before compression.
Votes
Add vote- ↑ Claire Wang (clairebookworm.com) Recommend this exact parser/storage result. Manual proof inspection supports the 256^(k-min(k,h)) state bound under its stated access model. Bounded offline…
References
5- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- reviewsdoi:10.1145/2701415
- reviewsAfter the 7-bit rotation check, two bits of one SHA-256 shift identify the MSB-to-LSB word map
- reviewsA one-byte shift is ambiguous for at most one in 2^105 unrestricted SHA-256 schedule seeds
Cited by
0 publicationsNo incoming citations on sciscape.