All insights
·Governance & Standards·IQCDL

HQC and ML-KEM: Planning Post-Quantum Algorithm Diversity Before 2030

NIST selected HQC as a backup to ML-KEM in 2025; this guide explains what it is, what it is not and how to plan for algorithm diversity.


HQC and ML-KEM: Planning Post-Quantum Algorithm Diversity Before 2030

For most of the post-quantum standardisation effort, NIST's only standardised key-establishment mechanism has been ML-KEM, published as FIPS 203 in August 2024. That is a single mathematical family carrying the confidentiality of a very large share of future traffic and stored data. In March 2025 NIST announced that it would also standardise HQC as a backup. This article explains what that decision does and does not change, and how security architects and policy owners can plan for algorithm diversity without deploying anything prematurely.

What NIST decided about HQC

The announcement in brief

On 11 March 2025 NIST announced the selection of HQC (Hamming Quasi-Cyclic) after the fourth round of its post-quantum process. The reasoning is documented in NIST IR 8545, the status report on that round. NIST described HQC as a backup to ML-KEM, not a replacement, and said it expected to publish a draft standard in about a year, with a final standard in 2027. Treat those dates as stated intentions rather than commitments, and check the NIST Computer Security Resource Center for the current position.

Two points are easy to miss:

  • HQC is selected, not standardised. There is no FIPS publication to cite in a procurement requirement yet.
  • NIST did not say that ML-KEM has a known weakness. The selection is a risk-management decision about concentration.

What HQC is

HQC is a key encapsulation mechanism based on error-correcting codes. Its security relies on the difficulty of decoding certain structured random codes, a family of problems that has been studied since the McEliece cryptosystem was proposed in 1978. ML-KEM relies on the Module Learning With Errors problem over structured lattices. The two do not share an underlying hard problem, which is the entire point.

The cost is size. ML-KEM-768 has a 1,184-byte encapsulation key and a 1,088-byte ciphertext. For HQC at the 128-bit security level, the round-four specification lists a public key of roughly 2.2 KB and a ciphertext of roughly 4.5 KB. That matters for TLS handshakes, constrained devices and any protocol with strict datagram limits.

Why a second KEM family matters

The concentration risk

New mathematics can fail late. The NIST process itself supplied two examples in 2022. The Rainbow signature scheme was broken by Ward Beullens during the third round, and SIKE, an isogeny-based KEM that had reached the fourth round, was broken by a classical key-recovery attack from Castryck and Decru. Neither attack used a quantum computer, and both were found before standardisation. The lesson is not that lattices are fragile: no practical attack on the standardised ML-KEM parameter sets is publicly known, and they have received extensive scrutiny. The lesson is that a long-lived dependency on one problem family is a risk that should be priced rather than ignored.

Why a hybrid with X25519 does not solve it

Hybrid key exchange, such as X25519MLKEM768 in TLS 1.3, protects against a flaw in ML-KEM only while the classical component remains unbroken. Once a cryptographically relevant quantum computer exists, the X25519 half contributes nothing and the session depends on ML-KEM alone. Hybrids are a transition tool that hedges implementation maturity. They are not a hedge against a future lattice break in the period that matters most. Only a second post-quantum family covers that case.

Signatures already have more diversity

For digital signatures the picture is better. FIPS 204 (ML-DSA) is lattice-based, while FIPS 205 (SLH-DSA) is hash-based and rests on more conservative assumptions. FN-DSA, based on Falcon, is in development as a further standard. KEMs were the thinner area until HQC was selected.

How HQC compares with other non-lattice and alternative KEMs

HQC is not the only alternative KEM that governments discuss. Germany's BSI, in its technical guideline TR-02102-1, lists FrodoKEM and Classic McEliece alongside ML-KEM. Neither is a NIST standard, so check the current status of any national or ISO/IEC work before citing it in policy.

Property ML-KEM (FIPS 203) HQC Classic McEliece FrodoKEM
Mathematical basis Module lattices (MLWE) Quasi-cyclic codes Goppa codes Unstructured lattices (LWE)
NIST status Final standard, August 2024 Selected 2025, draft expected Not selected by NIST Not selected by NIST
Intended role Primary KEM Backup KEM Named in some national guidance Named in some national guidance
Size profile Small Several times larger than ML-KEM Very large public keys, small ciphertexts Larger than ML-KEM
Independence from ML-KEM None Different problem family Different problem family Related lattice family, fewer structural assumptions

The practical reading is that HQC is the one most likely to sit in the same federal standards ecosystem as ML-KEM, which is what matters for validated products and procurement. Classic McEliece suits cases where large static public keys are tolerable. FrodoKEM reduces structural assumptions but does not diversify away from lattices in the way HQC does.

What to do now

Do not deploy HQC yet

Without a published standard there are no CAVP algorithm validations or FIPS 140-3 module validations to rely on for HQC. Using early library implementations in production would trade a speculative diversity benefit for real implementation and compliance risk. Deploy ML-KEM now, in line with the timelines in NIST IR 8547, the EU coordinated roadmap and national guidance, and treat HQC as a planning item.

Design for substitution

The useful work today is engineering that makes a second KEM cheap to add:

  1. Record KEM usage in your CBOM. Capture which protocols, libraries, HSMs and key-management services perform key encapsulation, and who owns each.
  2. Record data lifetime. For each asset, ask how long the protected data must remain confidential. That is the X in Mosca's inequality.
  3. Require algorithm identifiers everywhere. Stored wrapped keys, envelope formats and protocol messages should state which algorithm produced them and never assume one.
  4. Allow multiple key slots. Envelope encryption that can hold more than one wrapped key lets you add a second KEM later without re-encrypting bulk data.
  5. Budget for size. Test message limits, MTU assumptions, fragmentation behaviour and memory on constrained devices against KEM payloads several times larger than ML-KEM.
  6. Ask suppliers about extensibility. Does the product support negotiating additional KEMs, and will the vendor commit to a roadmap once HQC is standardised?

This is a narrow application of cryptographic agility. It requires nothing speculative, only the removal of assumptions that would make a later addition expensive.

Worked example: where a second KEM is worth planning for

The following is an illustrative scenario with assumed figures, not data from a real organisation. A regional insurer has three KEM-dependent estates and wants a rule for deciding where to plan for diversity.

Estate Confidentiality lifetime Replacement cost Decision
Public web and API TLS Minutes to days of useful secrecy Low: configuration and library updates ML-KEM hybrid; no second family planned
Customer records archive, keys wrapped through a cloud KMS Assumed 25 years under retention policy High: bulk re-encryption and key migration ML-KEM now; design envelope for a second wrapped key
Site-to-site VPN between data centres Sensitive for several years Medium: gateway firmware and testing ML-KEM hybrid; review again when HQC is final

Applying Mosca's inequality to the archive: the data must stay confidential for 25 years (X) and migration would take an assumed 5 years (Y), so the insurer needs confidence that the protecting algorithm will hold for at least 30 years (Z). That is a long time to rest on a single mathematical family. The insurer therefore commits to two changes that cost little now. The archive envelope format will carry an algorithm identifier and support more than one wrapped data-encryption key, and the KMS contract will include a clause requiring support for additional NIST-standardised KEMs within a defined period of publication.

For TLS the same inequality gives a very different answer, because the exposure window is short and replacement is cheap. Planning for a second family there would be effort without matching benefit. The outcome is a short, defensible policy: diversity planning is reserved for long-lived confidentiality assets, and everything else follows the standard ML-KEM migration path.

Where IQCDL fits

Algorithm diversity is a governance decision as much as an engineering one: someone has to decide which assets justify the extra design effort and document why. The IQCDL assessment helps individuals and teams establish where their understanding of KEM selection, data lifetime and migration risk currently stands. The programmes cover post-quantum standards, cryptographic inventory and migration planning at practitioner and leadership level, and the standards page maps the NIST, ISO/IEC, ETSI and EU material that IQCDL competencies are built on, so you can track developments such as the HQC draft as they appear.

Frequently asked questions

Should we deploy HQC in production now?

No. HQC has been selected for standardisation but is not yet a published standard, and there are no validated implementations to buy against it. Deploy ML-KEM (FIPS 203), ideally in a hybrid construction, and design your systems so a second KEM can be added later.

Does the HQC selection mean ML-KEM is weak?

No. NIST has said ML-KEM remains the primary choice for general use. HQC was chosen as a hedge: it rests on a different mathematical problem, so a future break of structured lattices would not remove every standardised KEM at once.

Why is a hybrid with X25519 not enough diversity?

A hybrid with a classical algorithm protects you only while the classical half still holds. Once a cryptographically relevant quantum computer exists, X25519 adds nothing, so only a second post-quantum family would cover a lattice failure at that point.

What should a CISO do about HQC today?

Record it as a watch item, confirm that your cryptographic inventory shows where KEMs are used and how long the protected data must stay confidential, and require suppliers to support algorithm identifiers and negotiation that can accommodate a second KEM family.