All guides
Guide·5 articles·Last updated

Post-Quantum Algorithms and Standards: ML-KEM, ML-DSA, HQC and Validation

A guide to the NIST post-quantum algorithms: what FIPS 203, 204 and 205 replace, where AES-256 stands, why HQC was selected and how to check an implementation.


NIST published three post-quantum standards in August 2024: FIPS 203 (ML-KEM) for key establishment, and FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) for digital signatures. They replace RSA, Diffie-Hellman and elliptic-curve cryptography. AES and SHA-2 stay. Choosing an algorithm is only the first decision. You also need to know whether your libraries can run it, whether the implementation is validated, and whether the code is safe on your hardware.

This guide links the five articles that answer those questions.

Who this guide is for

  • Security architects who need a defensible position on what to replace and what to keep.
  • Developers and platform engineers who have to find out what their runtimes and libraries support today.
  • Procurement and audit teams who must read a supplier's validation claim and know what it covers.
  • Policy owners deciding how much algorithm diversity to plan for.

What quantum computers break, and what they leave alone

Two quantum algorithms drive nearly all of the planning. Shor's algorithm solves integer factorisation and discrete logarithms in polynomial time, which is why RSA, Diffie-Hellman, ECDH, ECDSA and EdDSA are considered unsafe against a sufficiently large quantum computer. Grover's algorithm only speeds up a key search by a quadratic factor. It halves the exponent, so doubling the key length restores the margin.

The symmetric question is a margin-setting decision. The public-key question is a replacement programme. NIST anchored its post-quantum security categories to symmetric primitives, with Category 1 tied to key search on AES-128 and Category 5 to AES-256, so the standards community does not regard AES-128 as broken by Grover.

Symmetric data is still exposed, because the keys that protect it are usually established or wrapped with RSA or elliptic-curve mechanisms. An adversary who records a TLS handshake can recover the session key later, and the strength of the cipher is then irrelevant. The practical rule is to change first anything that establishes, wraps or escrows keys with RSA, Diffie-Hellman or elliptic curves, to move AES-128 to AES-256 for long-lived data at rotation points, and to leave SHA-2, SHA-3 and AES-256 alone. The full reasoning is in Is AES-256 quantum-safe?, which includes a table of each primitive, the attack against it and the action to take.

The standards that replace RSA and elliptic curves

  • FIPS 203, ML-KEM. A key encapsulation mechanism built on the Module Learning With Errors problem over structured lattices. Its parameter sets are ML-KEM-512, ML-KEM-768 and ML-KEM-1024.
  • FIPS 204, ML-DSA. A lattice-based digital signature with the parameter sets ML-DSA-44, ML-DSA-65 and ML-DSA-87.
  • FIPS 205, SLH-DSA. A hash-based signature that rests on more conservative assumptions.
  • NIST SP 800-208. The stateful hash-based signature schemes LMS and XMSS.

FN-DSA, a further signature standard based on Falcon, is in development. The parameter sets in FIPS 203 and FIPS 204 are calibrated against symmetric strength, which is why the explanation of NIST's security categories is worth reading before you pick one.

One KEM family is a concentration risk: why NIST selected HQC

For key establishment, ML-KEM has been NIST's only standardised post-quantum mechanism. In March 2025 NIST announced that it would also standardise HQC, a key encapsulation mechanism based on error-correcting codes. The two do not share an underlying hard problem, which is the point of the decision.

Three things are easy to miss:

  • HQC is selected, not standardised. There is no FIPS to cite in a procurement requirement and there are no validated implementations to buy.
  • NIST described HQC as a backup, not a replacement, and did not say that ML-KEM has a known weakness.
  • A hybrid with X25519 does not provide this kind of diversity. Once a cryptographically relevant quantum computer exists, the classical half contributes nothing and the session depends on ML-KEM alone.

The cost of HQC is size. The article's comparison puts it at several times larger than ML-KEM, which matters for TLS handshakes, constrained devices and protocols with strict datagram limits.

The advice is to deploy ML-KEM now and to treat HQC as a planning item. The useful work today is removing assumptions that would make a second KEM expensive to add later: algorithm identifiers on every stored wrapped key, envelope formats that can hold more than one wrapped key, and message-size budgets tested against larger payloads. HQC and ML-KEM: planning for algorithm diversity explains where that effort is justified. Its short answer is long-lived confidentiality assets, not short-lived TLS sessions.

Can your platform run the new algorithms?

The first hard engineering obstacle is usually a library or runtime that does not support the new algorithms, or supports them only in a version nobody is allowed to deploy. Since the standards were published, the major open-source libraries and runtimes have added implementations:

  • OpenSSL 3.5, a long-term-support release from April 2025, added ML-KEM, ML-DSA and SLH-DSA to the default provider. Its TLS 1.3 defaults offer a hybrid X25519MLKEM768 key share.
  • Go 1.24 introduced the crypto/mlkem package and enabled X25519MLKEM768 by default in crypto/tls.
  • JDK 24 delivered ML-KEM (JEP 496) and ML-DSA (JEP 497) as standard APIs. They are not available in the 21 long-term-support line.
  • liboqs is widely used for interoperability testing. Its own documentation positions it for prototyping and experimentation, not production.

Support changes with each release, so confirm these details against current release notes before you commit to a plan. A released version is also not the version running in your data centre. Support is typically lost in bundled and statically linked copies of TLS libraries, in container base images that are rarely rebuilt, in FIPS-validated providers that lag the latest release, and at middleboxes that cannot handle the larger hybrid ClientHello. The article on OpenSSL 3.5, Go and Java support for ML-KEM and ML-DSA includes a six-step readiness check you can run this quarter.

Implemented is not the same as validated

For many regulated organisations, "we support ML-KEM" is not an acceptable answer unless the claim can be tied to a certificate on a public list. Two NIST programmes are routinely confused:

  • CAVP tests one algorithm implementation against the standard. The certificate lists the algorithm and the parameter sets tested.
  • CMVP validates a complete cryptographic module against FIPS 140-3, including its boundary, key management and self-tests, and publishes a security policy for it.

A module can only claim an approved algorithm that already has a CAVP certificate, so the order is algorithm first and module second, and the second step takes materially longer. Phrases such as "FIPS compliant" or "FIPS ready" are not certificates. Ask for numbers, then check the algorithm and parameter set, the module name and version, the module boundary, the approved mode of operation and the operational environment. ML-KEM-768 validation does not imply ML-KEM-1024.

FIPS 140-3 and CAVP for post-quantum cryptography shows how to read that evidence and how to write contract language that separates algorithm requirements from module requirements.

Validated is not the same as safe to run

A standard defines a mathematical function. An implementation is specific code, built by a specific compiler for a specific processor. Side-channel attacks exploit the gap between the two through timing, fault injection, power and electromagnetic analysis, and weak randomness or memory handling.

The best-known post-quantum example is KyberSlash, disclosed in late 2023. Secret-dependent divisions in several Kyber implementations took a variable number of cycles on some processors, which created a timing signal. The mathematical design in FIPS 203 was not broken. The lesson is that algorithm selection and implementation assurance are separate questions. CAVP testing confirms correct outputs and does not measure timing leakage.

Exposure depends on how a key is used. Ephemeral keys in hybrid TLS are a lower risk. A long-lived decapsulation key that partners can query at will, or a signing key on a device an attacker can hold, deserves a documented review. The ML-KEM side-channel and KyberSlash checklist covers what to record, what to test and what to ask a supplier in writing.

Where to start

  1. Read the AES-256 and Grover article to separate what must be replaced from what can stay.
  2. Read the library readiness article and list the runtimes and TLS libraries behind each workload.
  3. If you are required to use validated cryptography, read the FIPS 140-3 and CAVP article before you write requirements.
  4. Before a long-lived key goes into production, work through the implementation security checks.
  5. Read the HQC article last. It is a planning item, not a deployment.

Next steps with IQCDL

The Practitioner Level is the IQCDL level for developers, cryptography specialists and security architects. It covers implementing ML-KEM, ML-DSA and SLH-DSA, hybrid TLS and crypto-agility, and it requires the Foundation Level plus basic Python. A free readiness assessment is available, and the standards page shows how the curriculum maps to FIPS 203, 204 and 205.