Computational cryptography › Public-key encryption and key exchange › Post-quantum public-key › Codes and noisy equations
KEM / KEY EXCHANGEPrimitive

HQC

In plain words

A code-based quantum-safe encryption chosen by NIST in 2025 as a backup to ML-KEM, built on different math.

The idea: HQC also hides a message behind deliberate errors, but without disguising a special code. The public key mixes a random vector with two secret vectors that are mostly zeros. The sender adds more of that kind of sparse noise. The key holder uses the secret to cancel almost all of it. What's left is a codeword of a public, well-known code with a few errors, which it corrects. So security rests on decoding random structured codes, not on a disguise staying intact.

Why it matters: If lattices ever break, this is plan B.

The details

On the map: NIST backup KEM (2025)

Hamming Quasi-Cyclic, a code-based key encapsulation scheme NIST selected in March 2025 as a backup to ML-KEM[1]. It rests on a different problem (decoding quasi-cyclic codes)[2, 3], so a breakthrough against lattices wouldn't break both. That problem is believed, not proven, to be as hard as decoding random codes.

Its keys are far smaller than McEliece's, and the BSI notes the 2026 attacks on McEliece's Goppa codes don't affect it[4]. NIST planned a draft standard about a year after selection and a final standard in 2027.

Rests on

If any of these breaks, this breaks too.

If it falls

If this breaks, these break with it.

Nothing on the map depends on it: it is an end point, something people use directly.

References

  1. Gorjan Alagic, Maxime Bros, Pierre Ciadoux et al. Status report on the fourth round of the NIST post-quantum cryptography standardization process. National Institute of Standards and Technology (U.S.), 2025. doi:10.6028/NIST.IR.8545
  2. Carlos Aguilar-Melchor, Olivier Blazy, Jean-Christophe Deneuville et al. Efficient Encryption From Random Quasi-Cyclic Codes. IEEE Transactions on Information Theory, 2018. doi:10.1109/tit.2018.2804444
  3. Carlos Aguilar Melchor, Nicolas Aragon, Slim Bettaieb and Loïc Bidoux. HQC: Hamming Quasi-Cyclic, specification. HQC team, 2025. pqc-hqc.org/doc/hqc_specifications_2025_08_22.pdf
  4. BSI. Notes on recent developments concerning Classic McEliece (dated 29 September 2026, announced 1 October 2026). Bundesamt für Sicherheit in der Informationstechnik, 2026. bsi.bund.de/SharedDocs/Downloads/EN/BSI/Crypto/Notes_Classic_McEliece.pdf?__blob=publicationFile&v=2