{
  "id": "hmac-sha256",
  "name": "HMAC-SHA-256",
  "family_id": "hmac",
  "description": "HMAC instantiated with SHA-256 per RFC 2104 and NIST FIPS 198-1. Attack records cover the exact PRF security bound without collision resistance and a generic 2^128 internal-state recovery on the 256-bit state.",
  "status": "intact",
  "parameters": {
    "digest_bits": 256,
    "block_bits": 512,
    "state_bits": 256
  },
  "references": [
    {
      "title": "RFC 2104: HMAC: Keyed-Hashing for Message Authentication",
      "url": "https://www.rfc-editor.org/rfc/rfc2104",
      "authors": [
        "Hugo Krawczyk",
        "Mihir Bellare",
        "Ran Canetti"
      ]
    },
    {
      "title": "FIPS 198-1: The Keyed-Hash Message Authentication Code (HMAC)",
      "url": "https://doi.org/10.6028/NIST.FIPS.198-1",
      "authors": [
        "National Institute of Standards and Technology"
      ],
      "doi": "10.6028/NIST.FIPS.198-1"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "hmac-sha256-gazi-2014-exact-prf-bound",
      "target_id": "hmac-sha256",
      "title": "Exact PRF security bound for HMAC without collision resistance",
      "goal": "security-bound",
      "attack_family": "prf-security-bound",
      "setting": "HMAC PRF security analysis that does not assume collision resistance of the underlying compression function.",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2014-08-17",
      "authors": [
        "Peter Gaži",
        "Krzysztof Pietrzak",
        "Michal Rybár",
        "Mihir Bellare"
      ],
      "references": [
        {
          "title": "The Exact PRF-Security of NMAC and HMAC",
          "url": "https://eprint.iacr.org/2014/578",
          "authors": [
            "Peter Gaži",
            "Krzysztof Pietrzak",
            "Michal Rybár"
          ],
          "eprint_id": "2014/578",
          "doi": "10.1007/978-3-662-44371-2_7"
        },
        {
          "title": "New Proofs for NMAC and HMAC: Security without Collision-Resistance",
          "url": "https://eprint.iacr.org/2006/043",
          "authors": [
            "Mihir Bellare"
          ],
          "eprint_id": "2006/043",
          "doi": "10.1007/s00145-014-9185-x"
        }
      ],
      "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": "pqc_security",
        "classical_core_svp_bits": 128,
        "estimator_version": "n/a: exact PRF security proof bound; no SVP estimate"
      },
      "notes": "classical_core_svp_bits stores the 128-bit security level claimed by the bound, not a Core-SVP estimate. CRYPTO 2014 and J. Cryptology 2015."
    },
    {
      "id": "hmac-sha256-leurent-2013-distinguish-h-state-recovery",
      "target_id": "hmac-sha256",
      "title": "Generic distinguishing-H and internal state-recovery attack on HMAC-SHA-256 (about 2^128)",
      "goal": "state-recovery",
      "attack_family": "internal-state-recovery",
      "setting": "Generic attack on the full 64-step SHA-256 compression used inside HMAC: distinguishing-H and internal state recovery at about 2^128 birthday complexity on the 256-bit state.",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2013-12-01",
      "authors": [
        "Gaëtan Leurent",
        "Thomas Peyrin",
        "Lei Wang"
      ],
      "references": [
        {
          "title": "Generic Attacks against HMAC",
          "url": "https://eprint.iacr.org/2014/406",
          "authors": [
            "Gaëtan Leurent",
            "Thomas Peyrin",
            "Lei Wang"
          ],
          "eprint_id": "2014/406",
          "doi": "10.1007/978-3-642-42045-0_1"
        }
      ],
      "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": 64,
        "total_rounds": 64,
        "log2_time": 128,
        "time_unit": "birthday-bound evaluations (generic, 256-bit state)",
        "attack_goal": "distinguisher"
      },
      "notes": "attack_goal uses the schema enum value distinguisher for the distinguishing-H step; the internal state-recovery claim is the goal text. ASIACRYPT 2013 (ePrint 2014/406)."
    },
    {
      "id": "hmac-sha256-paper-0d822cf9c88441aae9af1469",
      "target_id": "hmac-sha256",
      "title": "Carry-based Differential Power Analysis (CDPA) and its Application to Attacking HMAC-SHA-2",
      "goal": "key_recovery",
      "attack_family": "differential-power-analysis",
      "setting": "Introduces Carry-based Differential Power Analysis (CDPA) targeting arithmetical addition and applies it to HMAC-SHA-2 on an FPGA. Recovers secret keys enabling universal forgery with 30K traces (3% success) to 275K traces (100% success) without profiling.",
      "claim_kind": "estimate",
      "track": "side_channel",
      "ai_assisted": false,
      "date": "2023-01-01",
      "authors": [
        "Yaacov Belenky",
        "Ira Dushar",
        "Valery Teper",
        "Vadim Bugaenko",
        "Oleg Karavaev",
        "Leonid Azriel",
        "Yury Kreimer"
      ],
      "references": [
        {
          "title": "Carry-based Differential Power Analysis (CDPA) and its Application to Attacking HMAC-SHA-2",
          "url": "https://doi.org/10.46586/tches.v2023.i3.1-29",
          "authors": [
            "Yaacov Belenky",
            "Ira Dushar",
            "Valery Teper",
            "Vadim Bugaenko",
            "Oleg Karavaev",
            "Leonid Azriel",
            "Yury Kreimer"
          ],
          "doi": "10.46586/tches.v2023.i3.1-29"
        }
      ],
      "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": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "Abstract-only side-channel extraction (unverified)"
      },
      "notes": "Extracted from title and abstract only; year-level date approximation. Introduces Carry-based Differential Power Analysis (CDPA) targeting arithmetical addition and applies it to HMAC-SHA-2 on an FPGA. Recovers secret keys enabling universal forgery with 30K traces (3% success) to 275K traces (100% success) without profiling."
    }
  ],
  "frontiers": [],
  "dead_ends": []
}
