Code-based key encapsulation (backup to ML-KEM)
HQC
Selected in March 2025 as the backup KEM; its only scheme-level attack hit a parameter set removed in 2020.
Deployment assessment
Specialist review required
Check the exact construction, parameters and protocol profile before deployment. The catalog verdict alone is not a deployment recommendation.
- Intended use
- Code-based key encapsulation (backup to ML-KEM)
- Conditions
- Selected in March 2025 as the backup KEM; its only scheme-level attack hit a parameter set removed in 2020.
This caution summarizes the existing catalog evidence. A separate deployment-source review has not yet been recorded. How to read this assessment.
How HQC works
The sender hides an encoded random message under binary noise. The receiver removes a shared masking term, leaving a word that a public error-correcting code can usually repair.
Read the construction, mathematics and worked examples →Compare the mathematical families →Cryptanalytic assessment
A code-based alternative chosen so the KEM portfolio does not depend on lattices alone. A 2020 decryption-failure attack applied only to a since-removed parameter set and was certificational. Implementation timing bugs have been found and fixed. The draft standard was not yet published as of October 2026.
- Quantum
- Quantum-resistant. Designed to resist known quantum algorithms.
- Standard
- Draft standard pending (selected 11 March 2025)
- Names and historical labels
- Hamming Quasi-Cyclic
Evidence for the verdict
- Math(the math)Decryption-failure attack retires HQC's hqc-256-1 parameter setQian Guo and Thomas Johansson (Lund) presented a new decryption-failure attack on HQC at ASIACRYPT 2020. Crafted ciphertexts that are more likely to cause decoding failures leak information about the secret key, and the attack recovered keys for the round-2 category-5 set hqc-256-1 faster than its claimed security, at a certificational cost of roughly 2^246 versus 2^256. HQC dropped the set; its round-3 specification kept one parameter set per category, each with a decryption failure rate low enough to avoid the attack.
- Protocol(not the math)HQC's KEM transform left the salt unchecked (CVE-2025-48946)Markku-Juhani Saarinen reported on the pqc-forum that HQC's Fujisaki-Okamoto variant compared only the (u, v) ciphertext components in its re-encryption check and ignored the salt. Many distinct malformed ciphertexts therefore share one implicit-rejection key, which lets an attacker detect decryption failures and voids the IND-CCA2 behaviour the spec claimed. liboqs disabled HQC by default (0.13.0, advisory May 2025). The HQC team fixed the transform in its 22 August 2025 specification, adopting an ML-KEM-style implicit-rejection construction that also binds the encapsulation key and salt into key derivation.
- MilestoneNIST selects HQC as backup KEM; Round 4 endsNIST selected the code-based HQC as a second KEM to back up ML-KEM, so that a lattice break would not leave the US without a standard. BIKE and Classic McEliece were not selected (NIST IR 8545). A draft HQC standard was planned for about a year later, with a final standard in 2027.
Case file
Every event on file that names HQC.
16 case files, newest first.
2020s
- Side channelLimitedBouncy Castle HQC leaks private-key information through cache and timing behavior
HQC
- MilestoneStatus, October 2026: no practical math break of any NIST-selected PQC algorithm
ML-KEM / ML-DSA / SLH-DSA / FN-DSA / HQC / Classic McEliece
- ImplementationLimitedHQC reference decapsulation silently skipped implicit rejection (CVE-2024-54137)
HQC
- MilestoneNIST selects Kyber, Dilithium, Falcon and SPHINCS+; opens Round 4
CRYSTALS-Kyber / CRYSTALS-Dilithium / FALCON / SPHINCS+ / BIKE / Classic McEliece
- Side channelLimited'Don't Reject This': timing attacks on HQC and BIKE via rejection sampling
HQC / BIKE
- MilestoneRound 3: seven finalists and eight alternates
Classic McEliece / CRYSTALS-Kyber / NTRU / SABER / CRYSTALS-Dilithium / FALCON
2010s
- MilestoneRound 2: 26 candidates advance (17 KEM/PKE, 9 signatures)
CRYSTALS-Kyber / FrodoKEM / LAC / NewHope / NTRU / NTRU Prime