With a known state, 14 of 68 mixed four-lane masks always recover the addends of four SHA-256 rounds
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
Votes
Add voteNo votes to show.
References
9- usesIn the Arm SHA-256 model, either result register determines the four round addends when the input state is known
- 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
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://www.scs.stanford.edu/~zyedidia/arm64/sha256h_advsimd.html
- useshttps://www.scs.stanford.edu/~zyedidia/arm64/sha256h2_advsimd.html
- useshttps://www.scs.stanford.edu/~zyedidia/arm64/shared_pseudocode.html#func_SHA256hash_4
- useshttps://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
- reviewshttps://eprint.iacr.org/2008/131
- reviewshttps://srfp311t1.com/sha256inv