With the final delimiter position, SHA-256 length bytes 0 and 2 give more records overall than bytes 0 and 1, but fewer below 65,536 bits
A SHA-256 recorder stores selected length bytes and a known boundary label. For every interval of valid bit lengths, we give exact counts of its distinct records and of the lengths that fit each record. The formulas use at most 512 residue groups. With the final delimiter position, bytes 0 and 2 give 131,072 records across the full domain. Bytes 0 and 1 give 65,536. Below 65,536 bits, the first pair gives only 512 records and the second identifies each length. Byte 0 is the least significant byte. The proof gives the extra information needed to recover the padding metadata from each record. Direct enumeration agreed on all 7,680 endpoint and carry checks. The results concern standard padding before compression.
Votes
Add voteNo votes to show.
References
5- usesdoi:10.6028/NIST.FIPS.180-4
- reviewshttps://www.rfc-editor.org/rfc/rfc6234.html
- reviewshttps://isa-afp.org/browser_info/current/AFP/Crypto_Standards/FIPS180_4.html
- reviewsAcross all SHA-256 bit lengths, only length-field bits 6, 7 and 8 can be recovered from other final-block bits
- usesOne known word erasure preserves length for one-block SHA-256 messages. With hidden prefixes, either erased length word causes ambiguity
Cited by
0 publicationsNo incoming citations on sciscape.