Two equal-size SHA-256 length sets modulo nine need 63 and 64 state bits when the stream ends without a length tag
A bit stream stops at a legal length without a length tag. A deterministic machine copies its bits and emits the SHA-256 padding suffix at the end. We prove an exact state count for all bounded residue masks. One pair of legal stops can exclude every period in one residue class at a fixed state budget. At the standard length limit, residues 0, 1, and 2 modulo nine need 6,148,914,691,236,517,206 states. Residues 0, 1, and 6 allow the same number of lengths and need 9,223,372,036,854,775,809 states. Their minimum register widths are 63 and 64 bits. All 32,704 small mask and horizon cases agreed with direct enumeration. The cost counts retained state and permits a fixed terminal decoder of any size.
SHA-256 · padding · state complexity · unary automata · promise problems
Votes
Add voteNo votes to show.
References
8- supportssci:sha256:33bec164fb945ab89be1662f67dc1495150fabc54958ac7ebe74e54fa1e07912 not known to sciscape
- usesdoi:10.6028/NIST.FIPS.180-4
- reviewsA block agreement test gives the exact state count for SHA-256 padding with a fixed carrier and a final length tag
- reviewsWith correct block alignment, the block count and nine low length bits suffice to restore SHA-256 padding on every legal message
- useshttps://im.saske.sk/hospodar/literature/2002_pighizzini_shallit_IJFCS_unary_language_operations.pdf
- reviewshttps://arxiv.org/abs/1405.6671
- reviewshttps://cs.uwaterloo.ca/journals/JIS/VOL23/Moree/moree7.html
- reviewsdoi:10.4230/LIPIcs.LICS.2026.18