hn.today

A Collision for 38-Step SHA-256

eprint.iacr.org16 points3 comments
Screenshot of A Collision for 38-Step SHA-256

The work presents, to the author’s knowledge, the first collision for 38-step SHA-256 starting from the standard initial value. This is a result for a reduced-step version of SHA-256, not a collision for the full hash function. The attack uses two message blocks and a differential pattern whose message-word differences match those in an earlier 38-step semi-free-start collision. Its central challenge is to make the pattern hold through the compression function’s early steps while arranging for the remaining steps to converge.

The method fixes most of the second block’s state words in advance. For each candidate first block, a precomputed table indexed by the first word of the chaining value provides candidate initial state words; a lookup keyed by 32 bits matches these with the final free state words, enforcing the differential characteristic through step 17. The later steps succeed by chance. The expected cost is about 2^54.8 evaluations of the 38-step compression function, plus 2^57.5 table accesses not included in that estimate. The tables require 7.4 GB, and selecting the fixed state words took 52,300 vCPU-hours. A GPU search located a collision in 53 GPU-hours, after roughly one-tenth of the expected work.

Read on eprint.iacr.org3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.