{
  "slug": "hmac-hkdf",
  "name": "HMAC and HKDF",
  "aka": "HMAC, HKDF, KMAC, CMAC; also GMAC and Poly1305",
  "group": "symmetric",
  "kind": "Message authentication and key derivation",
  "summary": "HMAC, HKDF and the other symmetric message authentication and key derivation functions are not broken by quantum computers and need no replacement.",
  "used_in": "Record authentication, key schedules in TLS, SSH and IKEv2, and the combination of classical and post-quantum secrets in hybrid key exchange.",
  "problem": "Key search",
  "quantum": "holds",
  "attack": "Grover: square-root speedup at most",
  "exposure": "Not broken. Recovering the key is a search problem with at most Grover's square-root speedup. Hybrid key exchange depends on these functions: they combine the classical and the post-quantum shared secret into one key.",
  "recorded": "Not exposed.",
  "keep": "256-bit keys where a policy requires them",
  "guidance": [
    {
      "who": "NIST IR 8547",
      "href": "/timelines/nist-ir-8547/",
      "text": "NIST does not expect to transition away from its symmetric standards. The report does not name HMAC or KMAC individually."
    }
  ],
  "replace": [],
  "alternatives": [],
  "changes": [
    "No migration."
  ],
  "specified": [
    {
      "title": "FIPS 198-1, The Keyed-Hash Message Authentication Code (HMAC)",
      "url": "https://csrc.nist.gov/pubs/fips/198-1/final"
    },
    {
      "title": "RFC 5869, HKDF",
      "url": "https://www.rfc-editor.org/info/rfc5869"
    }
  ],
  "references": [],
  "tags": [],
  "page": "https://quantum.zksecurity.xyz/replacements/hmac-hkdf/",
  "reviewed": "2026-11-25",
  "standing": "no replacement needed"
}
