---
title: "HQC (Hamming Quasi-Cyclic)"
description: "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."
url: "https://pqt-19a6ffd695e12a.pages.dev/algorithms/hqc/"
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# HQC (Hamming Quasi-Cyclic)

KEM · Code-based (quasi-cyclic codes)

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.

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

## 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 scheme · [Comparison](https://pqt-19a6ffd695e12a.pages.dev/assumptions/)

- [QC syndrome decoding](https://pqt-19a6ffd695e12a.pages.dev/assumptions/qcsd/): IND-CPA security reduces to decisional quasi-cyclic syndrome decoding; no hidden trapdoor code
- [Random oracle model](https://pqt-19a6ffd695e12a.pages.dev/assumptions/random-oracle-model/): Fujisaki-Okamoto-style transform in the ROM/QROM
- [Hash security](https://pqt-19a6ffd695e12a.pages.dev/assumptions/hash-functions/): SHAKE256 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.

## Deployment

1 listed · [Deployments table](https://pqt-19a6ffd695e12a.pages.dev/deployments/?alg=hqc)

- 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](https://pqt-19a6ffd695e12a.pages.dev/audit-checklist/).

## Record

8 entries · [In the feed](https://pqt-19a6ffd695e12a.pages.dev/feed/?scheme=hqc)

- 2026-11-24 · Theoretical result · No action required · [New generic syndrome-decoding records (length 580/weight 71; quasi-cyclic weight 64)](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-11-24-new-generic-syndrome-decoding-records-length-580/)
- 2026-09-29 · Policy · Action: monitor · [Germany: BSI advises against Classic McEliece in new developments after new cryptanalysis](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-09-29-germany-bsi-advises-against-classic-mceliece-in/)
- 2026-07-22 · Reduced security margin · Action: monitor · [Improved ISD puts HQC-1 about 3 bits under target; HQC team raises error weights](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-07-22-improved-isd-puts-hqc-1-about-3-bits-under-targe/)
- 2025-07-10 · Implementation vulnerability · Demonstrated · Action: patch · [Clang-introduced secret-dependent branches in liboqs HQC leak the key (CVE-2025-52473)](https://pqt-19a6ffd695e12a.pages.dev/feed/2025-07-10-clang-introduced-secret-dependent-branches-in-li/)
- 2025-04-02 · Reduced security margin · Action: patch · [IND-CCA2 flaw in HQC's February 2025 specification: salt not covered by the FO check](https://pqt-19a6ffd695e12a.pages.dev/feed/2025-04-02-ind-cca2-flaw-in-hqc-s-february-2025-specificati/)
- 2025-03-11 · Selection · [NIST selects HQC as a second KEM; fourth round ends (NIST IR 8545)](https://pqt-19a6ffd695e12a.pages.dev/feed/2025-03-11-nist-selects-hqc-as-a-second-kem-fourth-round-en/)
- 2024-12-06 · Implementation vulnerability · Action: patch · [liboqs HQC decapsulation returned wrong secret for malformed ciphertexts (CVE-2024-54137)](https://pqt-19a6ffd695e12a.pages.dev/feed/2024-12-06-liboqs-hqc-decapsulation-returned-wrong-secret-f/)
- 2022-06-08 · Implementation vulnerability · Demonstrated · Action: patch · [Timing key-recovery attack on HQC (and BIKE) via rejection sampling in decapsulation](https://pqt-19a6ffd695e12a.pages.dev/feed/2022-06-08-timing-key-recovery-attack-on-hqc-and-bike-via-r/)

- **Type**: Key-encapsulation mechanism (KEM)
- **Family**: Code-based (quasi-cyclic codes)
- **Standard**: [FIPS (no number yet)](https://csrc.nist.gov/pubs/ir/8545/final)
- **Standardized by**: NIST
- **Published**: Not published (Selected 2025-03-11; no public draft as of 2026-11)
- **Status**: Selected, in development

**Primary sources (3)**

- [NIST selects HQC as fifth algorithm (2025-03-11)](https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption)
- [NIST IR 8545, Status report on the fourth round](https://csrc.nist.gov/pubs/ir/8545/final)
- [Quarkslab: Finding bugs in implementations of HQC](https://blog.quarkslab.com/finding-bugs-in-implementations-of-hqc-the-fifth-post-quantum-standard.html)

### Audit

zkSecurity audits HQC implementations and integrations. [Request an audit](https://www.zksecurity.xyz/contact.html).

### Data

[data.json](https://pqt-19a6ffd695e12a.pages.dev/algorithms/hqc/data.json)
