---
title: "HMAC and HKDF and quantum computers"
description: "HMAC, HKDF and the other symmetric message authentication and key derivation functions are not broken by quantum computers and need no replacement."
url: "https://quantum.zksecurity.xyz/replacements/hmac-hkdf/"
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# HMAC and HKDF (HMAC, HKDF, KMAC, CMAC; also GMAC and Poly1305)

Classical algorithm · Message authentication and key derivation

HMAC, HKDF and the other symmetric message authentication and key derivation functions are not broken by quantum computers and need no replacement.

**zkSecurity** · Reviewed 2026-11-25

## Against a quantum computer

> 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.

## Replacement

None needed. 256-bit keys where a policy requires them.

- [NIST IR 8547](https://quantum.zksecurity.xyz/timelines/nist-ir-8547/): NIST does not expect to transition away from its symmetric standards. The report does not name HMAC or KMAC individually.

## Notes

- No migration.

- **Type**: Message authentication and key derivation
- **Hard problem**: Key search
- **Against a quantum computer**: Holds (Grover: square-root speedup at most)
- **Recorded data**: Not exposed.
- **Replacement**: None needed
- **Used in**: Record authentication, key schedules in TLS, SSH and IKEv2, and the combination of classical and post-quantum secrets in hybrid key exchange.

### Specified in

- [FIPS 198-1, The Keyed-Hash Message Authentication Code (HMAC)](https://csrc.nist.gov/pubs/fips/198-1/final)
- [RFC 5869, HKDF](https://www.rfc-editor.org/info/rfc5869)

### Audit

zkSecurity audits post-quantum implementations and migrations. [Request an audit](https://www.zksecurity.xyz/contact.html).

### Data

[data.json](https://quantum.zksecurity.xyz/replacements/hmac-hkdf/data.json)
