With a known state, 14 of 68 mixed four-lane masks always recover the addends of four SHA-256 rounds

1 citing publication

Fix the eight incoming working words and allow any four 32-bit addends. A selection of four final words identifies the addends for every state exactly when it includes one word from each pair (a,e), (b,f), (c,g), (d,h). This gives 14 mixed selections and two whole registers. A four-step decoder proves recovery. Four pairs of distinct inputs at the standard SHA-256 initial value prove failure for the other 54 selections. Each pair differs only in the two final words of one omitted round. A separate forward implementation checks all eight endpoints. The result concerns internal words before feed-forward.

SHA-256 · AArch64 · round addends · identifiability · working state

No votes to show.

References

9
  1. usesIn the Arm SHA-256 model, either result register determines the four round addends when the input state is known
  2. reviewsAt the standard IV, a full SHA-256 first block needs all 16 a words for trajectory recovery, while a 32-byte message needs any eight consecutive a words
  3. usesdoi:10.6028/NIST.FIPS.180-4
  4. useshttps://www.scs.stanford.edu/~zyedidia/arm64/sha256h_advsimd.html
  5. useshttps://www.scs.stanford.edu/~zyedidia/arm64/sha256h2_advsimd.html
  6. useshttps://www.scs.stanford.edu/~zyedidia/arm64/shared_pseudocode.html#func_SHA256hash_4
  7. useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  8. reviewshttps://eprint.iacr.org/2008/131
  9. reviewshttps://srfp311t1.com/sha256inv

Cited by

1 publication
  1. A bit mask gives the exact number of shared RISC-V SHA-2 destinations for two fixed entry states at 32 or 64 bits per word reviews