For bounded SHA-256 schedule words and carries, primes above 2^34 − 1 give exact batch error 1/p on invalid traces
A verifier checks 48 SHA-256 message schedule equations over a prime field. Each word has 32 bits and each carry has two bits. The verifier binds the input block and computes both small sigma functions. If the prime p exceeds 2^34 minus 1, each fixed invalid trace within these ranges passes with probability exactly 1/p under independent uniform coefficients. At every smaller prime, a bounded invalid trace for the zero block passes every challenge. For a prescribed block, the exact cutoff follows from the distance of each honest sum to the two endpoints of the encoded output range. We give a proof and repeatable checks for the zero block and the padded message abc.
SHA-256 · message schedule · prime field · batch verification · carry · soundness
Votes
Add voteNo votes to show.
References
8- usesdoi:10.6028/NIST.FIPS.180-4
- reviewsdoi:10.1016/0022-0000(79)90044-8
- reviewsdoi:10.1145/322217.322225
- reviewshttps://github.com/iden3/circomlib/blob/8852c3bc91e3ede890f2143f36457b25302abce2/circuits/sha256/sigmaplus.circom
- reviewshttps://github.com/iden3/circomlib/blob/8852c3bc91e3ede890f2143f36457b25302abce2/circuits/binsum.circom
- reviewsCarry bits determine when a SHA-256 schedule can use wide integer sums at any positive word width
- reviewsThe 64-word SHA-256 schedule has exactly 48 independent bit parity equations for unrestricted blocks
- reviewssci:sha256:fc59063a6312bec698f92a6f82019295cb013caa9320a2155485dbfaed8958ec not known to sciscape
Cited by
3 publications- Two shared input words detect all 1,925 reachable single carry cuts in SHA-256 constant additions for every odd prime reviews
- With one uniform linear key, fixed SHA-256 trace substitutions on a 441-message family pass with probability set by graph rank reviews
- In a native 32-bit sum for SHA-256 W16, the top two bits of each operand determine the carry when the output word is known reviews