Two SHA-256 round sums require 187 full adders in a shared carry-save circuit with eight word inputs
A SHA-256 round has two new working words. Five of their eight distinct addends are common. We count full adders that compress each sum to two rows. Each gate uses three live bits in one column. The projections may share any gate with the same input wires. With eight dense 32-bit ports, separate trees need 282 cells and the joint circuit needs 187. A column count bounds the number of shared cells by 95. A supplied circuit attains the bound. If only the zero bits of the round constant are removed, the exact joint counts for the 64 constants range from 179 to 188. The counts exclude the two final binary additions.
SHA-256 · carry-save addition · full adder · circuit size · multi-operand addition
Votes
Add voteNo votes to show.
References
7- doi:10.6028/NIST.FIPS.180-4
- https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/2004/date04/df_files/04d_5.pdf
- doi:10.3390/s22239160
- sci:sha256:a7cdbe803d3af010e401410669525fd3aedcad23024eb6d7e47ea7fcd7f09db4 not known to sciscape
- The two SHA-256 round sums need 22 carry states at cuts 9 through 29 with independent input words
- With the standard SHA-256 IV and first word 03b264be, the two updated words after two steps require 50 AND gates with free XOR
Cited by
6 publications- The optimal adder counts for two dense 32-bit SHA-256 round sums change at 32 half-adder prices reviews
- Two adder trees give the same 256-bit state after one SHA-256 round for all 32-bit inputs
- Two SHA-256 round outputs need seven, eight or nine unit-delay word adders on the frontier when W arrives at 4.5 and K at 2.25
- With two-load input bits, duplicating the 32-bit SHA-256 common sum costs less above 125/32 adder cells per buffer reviews
- Sharing cuts the minimum from 345 to 220 equal-cost adder cells for two binary SHA-256 round outputs with eight dense ports uses
- A 15-bit low limb and a 17-bit high limb give unique carries for every free SHA-256 round exactly when the field prime exceeds 651,883 reviews