Three in-place stores preserve all 64 SHA-256 rounds, and a wrong register phase can match exactly on periodic states
An eight-slot circular implementation of SHA-256 stores the first round sum in the old h slot. For any block and any chaining input, three successive stores give the named state at every round boundary. The proof covers each partial round and all eight feedforward stores. For a fixed block and a uniform chaining input, the probability that any wrong cyclic phase gives the same full tuple at a specified boundary or round store is exactly 2^-128. A zero block and zero chaining input refute a fixed-slot invariant at the first possible boundary. The certificate checks symbolic terms and compares 12 full digests with hashlib.
SHA-256 · trace equivalence · register renaming · in-place update · cyclic permutation
Votes
Add voteNo votes to show.
References
6- usesEight rotating register names preserve SHA-256 rounds, and the empty message detects all 112 recurring single write faults in this model
- usesFor any fixed SHA-256 block and uniform IV, each working state is uniform and its first four words are independent of those four words four rounds later
- usesdoi:10.6028/NIST.FIPS.180-4
- reviewshttps://android.googlesource.com/platform/external/openssl.git/+/6f9c08fba1081cc8bb4f1c38487ff2bd88857632/crypto/sha/sha256.c
- reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
- reviewshttps://eprint.iacr.org/2023/1861