{
  "id": "sha-256",
  "name": "SHA-256",
  "family_id": "sha2",
  "description": "256-bit Merkle-Damgård hash function standardized in NIST FIPS 180-4 using 64 compression steps over 32-bit words. Full-round security remains intact; reduced-round cryptanalysis reaches 38-39 steps for collisions and 45 steps for preimages (52 steps for pseudo-preimages).",
  "status": "intact",
  "parameters": {
    "digest_bits": 256,
    "block_bits": 512,
    "word_bits": 32,
    "rounds": 64,
    "construction": "Merkle-Damgård with Davies-Meyer compression",
    "standard": "NIST FIPS 180-4"
  },
  "references": [
    {
      "title": "FIPS 180-4: Secure Hash Standard",
      "url": "https://doi.org/10.6028/NIST.FIPS.180-4",
      "authors": [
        "National Institute of Standards and Technology"
      ],
      "doi": "10.6028/NIST.FIPS.180-4",
      "quote_location": "Section 6.2 (SHA-256)"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "sha256-aoki-etal-2009-42r-preimage",
      "target_id": "sha-256",
      "title": "Meet-in-the-middle preimage attack on 42-step SHA-256",
      "goal": "preimage",
      "attack_family": "meet_in_the_middle",
      "setting": "Step-reduced SHA-256 (42 of 64 steps) using partial-fixing and partial-matching",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2009-12-06",
      "authors": [
        "Kazumaro Aoki",
        "Jian Guo",
        "Krystian Matusiewicz",
        "Yu Sasaki",
        "Lei Wang"
      ],
      "references": [
        {
          "title": "Preimages for Step-Reduced SHA-2",
          "url": "https://eprint.iacr.org/2009/477",
          "authors": [
            "Kazumaro Aoki",
            "Jian Guo",
            "Krystian Matusiewicz",
            "Yu Sasaki",
            "Lei Wang"
          ],
          "eprint_id": "2009/477",
          "doi": "10.1007/978-3-642-10366-7_34",
          "quote_location": "ASIACRYPT 2009 / ePrint 2009/477 (42-step SHA-256 preimage)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 42,
        "total_rounds": 64,
        "log2_time": 251.7,
        "log2_memory": 12,
        "time_unit": "42-step SHA-256 compression function evaluations",
        "attack_goal": "preimage"
      },
      "notes": "Paper also reports a 43-step preimage variant; memory cost reported as order of 2^12."
    },
    {
      "id": "sha256-khovratovich-etal-2011-45r-preimage",
      "target_id": "sha-256",
      "title": "Biclique preimage attack on 45-step SHA-256",
      "goal": "preimage",
      "attack_family": "biclique",
      "setting": "Step-reduced SHA-256 (45 of 64 steps) preimage; paper also reaches 52 steps for pseudo-preimages",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2011-06-01",
      "authors": [
        "Dmitry Khovratovich",
        "Christian Rechberger",
        "Alexandra Savelieva"
      ],
      "references": [
        {
          "title": "Bicliques for Preimages: Attacks on Skein-512 and the SHA-2 Family",
          "url": "https://eprint.iacr.org/2011/286",
          "authors": [
            "Dmitry Khovratovich",
            "Christian Rechberger",
            "Alexandra Savelieva"
          ],
          "eprint_id": "2011/286",
          "quote_location": "FSE 2012 / ePrint 2011/286 (45-step SHA-256 biclique preimage)"
        }
      ],
      "supersedes": [
        "sha256-aoki-etal-2009-42r-preimage"
      ],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 45,
        "total_rounds": 64,
        "log2_time": 255.5,
        "time_unit": "45-step SHA-256 compression function evaluations",
        "attack_goal": "preimage"
      },
      "notes": "Extends to 52 steps for compression-function pseudo-preimage attacks. Memory cost omitted here."
    },
    {
      "id": "sha256-mendel-nad-schlaffer-2013-31r-collision",
      "target_id": "sha-256",
      "title": "Two-block collision attack on 31-step SHA-256",
      "goal": "collision",
      "attack_family": "differential",
      "setting": "Step-reduced SHA-256 (31 of 64 steps), standard IV, two-block local collision",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2013-05-26",
      "authors": [
        "Florian Mendel",
        "Tomislav Nad",
        "Martin Schläffer"
      ],
      "references": [
        {
          "title": "Improving Local Collisions: New Attacks on Reduced SHA-256",
          "url": "https://doi.org/10.1007/978-3-642-38348-9_16",
          "authors": [
            "Florian Mendel",
            "Tomislav Nad",
            "Martin Schläffer"
          ],
          "doi": "10.1007/978-3-642-38348-9_16",
          "quote_location": "EUROCRYPT 2013, LNCS 7881 (31-step SHA-256 collision)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 31,
        "total_rounds": 64,
        "log2_time": 65.5,
        "time_unit": "31-step SHA-256 compression function evaluations",
        "attack_goal": "collision"
      },
      "notes": "Paper also demonstrates practical collisions on 28 steps and semi-free-start collisions on 38 steps."
    },
    {
      "id": "sha256-gong-etal-2026-39r-collision",
      "target_id": "sha-256",
      "title": "39-step SHA-256 collision estimate below the birthday bound",
      "goal": "collision",
      "attack_family": "differential",
      "setting": "Step-reduced SHA-256 (39 of 64 steps) using joint message-word pinning",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2026-11-13",
      "authors": [
        "Jiaying Gong",
        "Yongzhuang Wei",
        "Fengrong Zhang",
        "Bohua Wei"
      ],
      "references": [
        {
          "title": "Collision Attacks on SHA-2: 39-Step SHA-256 below the Birthday Bound",
          "url": "https://eprint.iacr.org/2026/2867",
          "authors": [
            "Jiaying Gong",
            "Yongzhuang Wei",
            "Fengrong Zhang",
            "Bohua Wei"
          ],
          "eprint_id": "2026/2867",
          "quote_location": "ePrint 2026/2867 (39-step SHA-256 collision estimate)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "preprint",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 39,
        "total_rounds": 64,
        "log2_time": 108.8,
        "time_unit": "39-step SHA-256 compression function evaluations",
        "attack_goal": "collision"
      },
      "notes": "Preprint estimate pinning expanded message words W_16 and W_17; remains 25 steps short of full 64-step SHA-256."
    },
    {
      "id": "sha256-goldzweig-2026-38r-collision",
      "target_id": "sha-256",
      "title": "Practical two-block collision for 38-step SHA-256",
      "goal": "collision",
      "attack_family": "differential",
      "setting": "Step-reduced SHA-256 (38 of 64 steps) starting from standard initial value",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2026-11-21",
      "authors": [
        "Omer Goldzweig"
      ],
      "references": [
        {
          "title": "A Collision for 38-Step SHA-256",
          "url": "https://eprint.iacr.org/2026/2913",
          "authors": [
            "Omer Goldzweig"
          ],
          "eprint_id": "2026/2913",
          "quote_location": "ePrint 2026/2913, abstract (expected time complexity 2^54.8)"
        }
      ],
      "supersedes": [
        "sha256-mendel-nad-schlaffer-2013-31r-collision"
      ],
      "disputed_by": [],
      "evidence": {
        "source_status": "preprint",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 38,
        "total_rounds": 64,
        "log2_time": 54.8,
        "time_unit": "38-step SHA-256 compression function evaluations",
        "attack_goal": "collision"
      },
      "notes": "Executed GPU/table-assisted search yielding an explicit colliding message pair for 38 steps from the standard IV."
    }
  ],
  "frontiers": [
    {
      "id": "sha256-collision-step-margin",
      "target_id": "sha-256",
      "title": "Collision step margin beyond 39 of 64 steps",
      "description": "Practical standard-IV collisions reach 38 steps and below-birthday estimates reach 39 steps, leaving a 25-step margin to the full 64-step SHA-256 compression function.",
      "references": [
        {
          "title": "Collision Attacks on SHA-2: 39-Step SHA-256 below the Birthday Bound",
          "url": "https://eprint.iacr.org/2026/2867",
          "authors": [
            "Jiaying Gong",
            "Yongzhuang Wei",
            "Fengrong Zhang",
            "Bohua Wei"
          ],
          "eprint_id": "2026/2867"
        },
        {
          "title": "A Collision for 38-Step SHA-256",
          "url": "https://eprint.iacr.org/2026/2913",
          "authors": [
            "Omer Goldzweig"
          ],
          "eprint_id": "2026/2913"
        }
      ]
    },
    {
      "id": "sha256-preimage-step-margin",
      "target_id": "sha-256",
      "title": "Preimage and pseudo-preimage margin beyond 45-52 steps",
      "description": "Meet-in-the-middle and biclique attacks reach 45 steps for preimages (52 steps for pseudo-preimages) with complexity near the 2^256 generic bound. Extending these techniques over full 64-step SHA-256 remains open.",
      "references": [
        {
          "title": "Bicliques for Preimages: Attacks on Skein-512 and the SHA-2 Family",
          "url": "https://eprint.iacr.org/2011/286",
          "authors": [
            "Dmitry Khovratovich",
            "Christian Rechberger",
            "Alexandra Savelieva"
          ],
          "eprint_id": "2011/286"
        }
      ]
    }
  ],
  "dead_ends": []
}
