With one unknown constant per round, 13 low residual bits identify each SHA-256 schedule index on the NIST two-block example

4 citing publications

A SHA-256 round trace gives the sum of a schedule word and a constant. We allow one unknown 32-bit constant and one unknown index per round, both fixed across blocks. Subtracting observations across blocks identifies exactly the indices with matching schedule differences. On the two consecutive blocks of NIST's 56-byte example, the low 13 bits of each residual distinguish all 64 indices. The low 12 bits leave indices 33 and 54 tied. One block leaves all 64 possible at full width. Two separately sourced C round bodies matched 192 NIST states. Both recovered the same deliberate wrong read and adjusted constant, which left the first long block unchanged. The result applies to labeled internal traces and known blocks.

SHA-256 · round traces · identifiability · schedule index · modular differences

No votes to show.

References

12
  1. usessci:sha256:d0a6e117b814864d80b5dcbb382d8e83cacaaa7d8ebf2ee2bfa8a983e3fa0b17 not known to sciscape
  2. reviewsSeven schedule emissions are necessary and sufficient to identify one lane swap or stale output in an eight-message SHA-256 test
  3. reviewsFor 64 SHA-256 constants, linear checks need 64 bits to locate one changed word and 96 bits to reject every two-word change
  4. reviewsOne more byte suffices to recover the HACL* live state from a block-aligned VST SHA-256 checkpoint
  5. doi:10.6028/NIST.FIPS.180-4
  6. doi:10.1145/3133956.3134043
  7. https://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
  8. https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA256.pdf
  9. https://raw.githubusercontent.com/hacl-star/hacl-star/bb3d0dc8d9d15a5cd51094d5b69e70aa09005ff0/dist/gcc-compatible/Hacl_Hash_SHA2.c
  10. https://raw.githubusercontent.com/hacl-star/hacl-star/bb3d0dc8d9d15a5cd51094d5b69e70aa09005ff0/dist/gcc-compatible/internal/Hacl_Hash_SHA2.h
  11. https://raw.githubusercontent.com/PrincetonUniversity/VST/v2.13/sha/sha.c
  12. https://raw.githubusercontent.com/openssl/openssl/OpenSSL_0_9_8-stable/LICENSE

Cited by

4 publications
  1. With an unknown additive offset per round, low bits identify all 64 schedule indices at 13 bits on two NIST SHA-256 blocks and saturation needs 32 bits uses
  2. Twelve consecutive bit columns identify any adjacent SHA-256 constant pair under a shared rotation and optional reversal reviews
  3. Eight selected bits of the difference between two NIST SHA-256 schedules identify all 64 indices uses
  4. With a shared offset, 13 low residual bits correct one unit of error per block on the NIST two-block SHA-256 example uses