I wrote a CDCL solver for SHA-256 from scratch (C++17, F2 Gauss-Jordan elimination, 12-thread lemma sharing) and I'm stuck on how far it can go with round-reduced versions.
At 18 rounds it finds a preimage in about 4.5 s (11,451 conflicts). Caveat: that's one benchmark target, the 18-round digest of the padded "abc" block, not a random one. I fix the six registers A..F at step 16 to values derived algebraically from the digest, and absorb the last two rounds backwards against W16/W17. No external hints.
At 19 rounds it just dies. 241M conflicts over 11.75 h, no solution. My guess is nested Ch multiplexers and carry chains, but I haven't tested that, so take it as a guess.
For comparison I also implemented a simplified 18-step version of Wain/Basra's algebraic method (dropped the third Q-inversion, set a4 = a3). After an ~11 s table build it handles arbitrary 18-round targets in under 0.1 s. The 19-20 step results are Wain's (arXiv:2611.00512), and I re-verified his 46 witnesses.
So has anyone seen a similar cliff between 18 and 19 rounds with other encodings? And is there a better way to encode Ch and the carries for CDCL? Code:
https://github.com/nxvr443/sha256-cryptanalysis-20rounds