A stored operand residue modulo 3 detects every shared single-bit inversion in a duplicated 32-bit SHA-256 adder with a live carry
Two copies of an unsigned adder read one shared operand bus. One bit changes before both copies. We prove when the observed wires and a reference tag match a valid clean addition. A residue computed from the changed bus always matches. With a protected operand residue modulo m and the active carry, bit k is detected exactly when m does not divide 2^k. If only the protected residue of the intended low sum is supplied, a change in carry gives a second divisibility test. At width 32 the smallest modulus for this low-sum check is 37. Every operand pair is reachable in the stated SHA-256 message schedule circuit. An exhaustive check covers widths 1 through 6. The result concerns one addition.
SHA-256 · residue checking · fault detection · common-mode fault · modular addition
Votes
Add voteNo votes to show.
References
7- usesdoi:10.6028/NIST.FIPS.180-4
- reviewshttps://ntrs.nasa.gov/citations/19790022776
- reviewshttps://re.public.polimi.it/handle/11311/552569
- reviewshttps://data.epo.org/publication-server/rest/v1.2/publication-dates/2025-12-17/patents/EP3716070NWB1/document.pdf
- reviewsdoi:10.3390/s22135028
- reviewsExactly 47 digest bits detect all 240 visible feed-forward carry faults on 56 one-block NIST SHA-256 tests
- reviewsTwo adder trees give the same 256-bit state after one SHA-256 round for all 32-bit inputs