In two scalar SHA-256 circuits, balanced prefix feed-forward uses 624 more live gates per block and gives the same digest
We prove in Coq that eight ripple adders or eight balanced prefix adders give the same full SHA-256 digest in a scalar model. Each word of each block can use either adder. The proof applies to every bit message shorter than 2^64 bits. The block interface preserves all eight words in order. For a w-bit addition on an ordered binary tree, let d count forks on the path to the highest bit. With shared propagate wires, unused gates removed and constant folding disabled, ripple uses 5w−3 two-input gates. Prefix uses 8w−6−3d. All 384 shape and width checks matched. At 32 bits the balanced tree takes 235 gates at depth 19 per word. Ripple takes 157 at depth 64. An explicit chain certificate uses one checked step per block. The study concerns forward equivalence of the supplied circuits.
Votes
Add voteNo votes to show.
References
7- usesA scalar SHA-256 model with carry-save adders gives the reference digest for every message shorter than 2^64 bits
- usesTwo adder trees give the same 256-bit state after one SHA-256 round for all 32-bit inputs
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabittestvectors.zip
- reviewshttps://maths-people.anu.edu.au/brent/pub/pub060.html
- reviewsdoi:10.1109/TCAD.2020.3015414
- reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha.pdf
Cited by
0 publicationsNo incoming citations on sciscape.