With the standard SHA-256 IV and first word 03b264be, the two updated words after two steps require 50 AND gates with free XOR

2 citing publications

We give the exact number of two-input AND gates for all sums of one variable word with a set of fixed constants. XOR, constants and fan-out are free. Each distinct nonzero low-bit residue requires one gate at each position that can affect a higher output bit. A shared carry circuit attains the count. Four input evaluations per matrix row prove a matching lower bound at unrestricted depth. With the standard SHA-256 initial value, the two updated words after the first step require 59 gates. After two steps on eight-byte messages that start with 03b264be, the two words require 50 gates. Separate optimal adders require 60. Both joint circuits have AND depth 30. We supply the circuits, rank witnesses, exhaustive small-width checks and complete symbolic checks at width 32.

SHA-256 · multiplicative complexity · constant addition · Boolean circuits · rank lower bound

No votes to show.

References

10
  1. doi:10.6028/NIST.FIPS.180-4
  2. https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/shs/shabytetestvectors.zip
  3. https://thomaschneider.de/papers/KSS09SPEEDCC.pdf
  4. https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=919080
  5. https://slopdealer.com/research/papers/mf-140/
  6. usesFor four-byte messages at the standard IV, 14,428,224 additive differences can match both XOR differences after one SHA-256 round
  7. reviewsExact affine models of the first SHA-256 round need at least 139,221 subspaces to cover all four-byte messages at the standard IV
  8. reviewsOnly the product of the two top bits has odd parity among bit pairs after one SHA-256 round on all four-byte messages at the standard IV
  9. usesWith the standard SHA-256 IV, adding one to the second message word cannot make both second-step output sums wrap
  10. reviewsThe two SHA-256 round sums need 22 carry states at cuts 9 through 29 with independent input words

Cited by

2 publications
  1. With a shared 52-byte suffix at 32 lengths, two SHA-256 schedule words have rank 1,160 modulo affine suffix functions uses
  2. Two SHA-256 round sums require 187 full adders in a shared carry-save circuit with eight word inputs