Sharing cuts the minimum from 345 to 220 equal-cost adder cells for two binary SHA-256 round outputs with eight dense ports

3 citing publications

One SHA-256 round produces two sums with five common input words. We require both results as binary words. Each half adder and each full adder costs one cell. Each output must use every live wire exactly once. With eight dense 32-bit ports, a column count proves that sharing needs at least 220 cells. A circuit with 217 full adders and three half adders attains the bound. Separate circuits need 345 cells. For circuits that omit only the zero bits of each round constant, an exact search gives joint minima from 214 to 220. Reducing the common sum to binary first costs extra cells for 18 of the 64 constants. A scalar integer bound misses up to seven cells. We supply optimal wire plans, a second search that excludes cheaper plans, and checks against NIST vectors. The result measures arithmetic cells in one round.

SHA-256 · carry-save addition · half adder · full adder · circuit size · dynamic programming

No votes to show.

References

8
  1. usesTwo SHA-256 round sums require 187 full adders in a shared carry-save circuit with eight word inputs
  2. reviewsTwo adder trees give the same 256-bit state after one SHA-256 round for all 32-bit inputs
  3. doi:10.6028/NIST.FIPS.180-4
  4. https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  5. https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
  6. https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/2004/date04/df_files/04d_5.pdf
  7. doi:10.3390/s22239160
  8. doi:10.1093/comjnl/bxae116

Cited by

3 publications
  1. The optimal adder counts for two dense 32-bit SHA-256 round sums change at 32 half-adder prices uses
  2. With two-load input bits, duplicating the 32-bit SHA-256 common sum costs less above 125/32 adder cells per buffer uses
  3. Two binary SHA-256 round outputs need 252 cells at depth 33 and 220 at depth 34 with eight dense ports ready together uses