KEM · Code-based (quasi-cyclic codes)

HQC Hamming Quasi-Cyclic

HQC is the code-based KEM that NIST selected on 2025-03-11 (NIST IR 8545) as a backup to ML-KEM, so that a break of lattice cryptography does not leave the world without a standardized post-quantum KEM. As of November 2026 NIST says a FIPS specifying HQC-KEM is under development; no draft or document number has been published.

Security standing

Selected as the non-lattice KEM; no published standard. Margins are narrow: a 2026 decoding improvement placed the lowest parameter set about 3 bits below target, and the error weights were raised. Implementations have a record of timing leakage, some of it compiler-induced.

Assumptions

A failure of any one breaks the schemeComparison →

Parameter sets

Sizes in bytes
Parameter setCategoryPublic keySecret keyCiphertext (Round 4 submission sizes)
HQC-1281224923054433
HQC-1923452245868978
HQC-25657245731714421

NIST security categories: 1 ≈ AES-128, 2 ≈ SHA-256 collision, 3 ≈ AES-192, 5 ≈ AES-256.

Deployment

1 listedDeployments table →
  • Mullvad VPN apps since 2025.7 (2025-06-23): HQC-256 with ML-KEM-1024 for the WireGuard pre-shared key, ahead of any NIST draft
  • Otherwise limited to liboqs, PQClean and reference code

Audit scope

  • Constant-time decoding of the concatenated Reed-Muller / Reed-Solomon code
  • Decryption-failure rate and its impact on IND-CCA security
  • Quarkslab's 2025 work found correctness and security bugs in several HQC implementations; test against the latest specification
  • Parameter and encoding changes between Round 4 and the draft standard

Full scope: post-quantum audit checklist.

Record

8 entriesIn the feed →
Show all 8 entries
  1. Implementation vulnerability·Demonstrated·Action: patch

    Timing key-recovery attack on HQC (and BIKE) via rejection sampling in decapsulation