Two fixed cyclic checks are necessary and sufficient to detect one replaced word in a full SHA-256 schedule with both ends observed
The checker reads all 64 words of a SHA-256 schedule for an unrestricted block. One observed word can change after expansion. We prove that no single fixed additive map of the 48 modular residuals to a finite cyclic group detects every such edit. A necessary parity equation would require a degree-16 polynomial to divide a power of X+1. Two explicit row sums modulo 2^32 detect every edit, and 2^32 is the smallest common modulus for a bank of these checks. A fair choice between the two sums misses each fixed edit with probability at most one half. A last-word edit attains the bound. For a checker that first converts each residual to a nonnegative integer, we give the exact miss law for uniform weights and bounds on the minimum deterministic modulus. The proof concerns schedule words and uses no compression rounds.
Votes
Add voteNo votes to show.
References
8- usesdoi:10.6028/NIST.FIPS.180-4
- usesA private one-pass SHA-256 schedule check needs 32 bits for one failed equation at miss probability at most 1/65,536
- usesEight retained bits suffice for one-pass SHA-256 schedule validation with public coins and one-sided error 1/2
- reviewssci:sha256:7153c863b3e499543cc9a3d7dfc268ddaaaec783ec29f294fb81a1bbb900e684 not known to sciscape
- usesSingle-unknown equations recover any 12 erased words in the unrestricted 64-word SHA-256 schedule
- usesEvery 16-word window in the SHA-256 schedule determines one block, and padding limits which windows occur
- reviewshttps://msp.org/pjm/1955/5-4/pjm-v5-n4-p07-s.pdf
- reviewsdoi:10.3390/s22135028
Cited by
0 publicationsNo incoming citations on sciscape.