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.
- QC syndrome decodingIND-CPA security reduces to decisional quasi-cyclic syndrome decoding; no hidden trapdoor code
- Random oracle modelFujisaki-Okamoto-style transform in the ROM/QROM
- Hash securitySHAKE256 used as XOF and KDF
Parameter sets
Sizes in bytes| Parameter set | Category | Public key | Secret key | Ciphertext (Round 4 submission sizes) |
|---|---|---|---|---|
| HQC-128 | 1 | 2249 | 2305 | 4433 |
| HQC-192 | 3 | 4522 | 4586 | 8978 |
| HQC-256 | 5 | 7245 | 7317 | 14421 |
NIST security categories: 1 ≈ AES-128, 2 ≈ SHA-256 collision, 3 ≈ AES-192, 5 ≈ AES-256.
- 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.
Theoretical result·No action required
New generic syndrome-decoding records (length 580/weight 71; quasi-cyclic weight 64)
Reduced security margin·Action: monitor
Improved ISD puts HQC-1 about 3 bits under target; HQC team raises error weights
Implementation vulnerability·Demonstrated·Action: patch
Clang-introduced secret-dependent branches in liboqs HQC leak the key (CVE-2025-52473)
Reduced security margin·Action: patch
IND-CCA2 flaw in HQC's February 2025 specification: salt not covered by the FO check
Show all 8 entries
Implementation vulnerability·Action: patch
liboqs HQC decapsulation returned wrong secret for malformed ciphertexts (CVE-2024-54137)
Implementation vulnerability·Demonstrated·Action: patch
Timing key-recovery attack on HQC (and BIKE) via rejection sampling in decapsulation