Free tech learning for everyone, from basics to pro

Quantum ComputingEmerging Technologies and SecurityIntermediate

Post-quantum cryptography: NIST FIPS 203, 204 and 205

In short: Post-quantum cryptography uses new maths problems believed to resist quantum and classical attacks, and it runs on ordinary computers. NIST published FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) in 2024. They have larger keys or signatures than ECC, and hybrid modes are used during the transition.

What post-quantum cryptography is

Post-quantum cryptography (PQC) means public-key algorithms designed to stay secure even against a large quantum computer. Despite the name, it is not quantum technology: PQC runs on ordinary CPUs, phones and servers, and travels over existing networks. It replaces RSA and elliptic curve cryptography for two jobs: key establishment (agreeing a shared secret) and digital signatures (proving who signed something). Do not confuse it with quantum key distribution, which uses special physics hardware.

The US National Institute of Standards and Technology (NIST) ran an open, multi-year public competition in which cryptographers worldwide submitted and attacked candidate algorithms. Several candidates were broken along the way, which is exactly what such a process is for. In August 2024 NIST published the first three standards.

NIST post-quantum standardsFIPS 203ML-KEM key exchangeFIPS 204ML-DSA signaturesFIPS 205SLH-DSA signaturesFN-DSAFalcon, plannedHQCbackup KEM, plannedSP 800-208LMS, XMSS hash sigs
Figure 1. The three finalised FIPS standards (top row) plus additional schemes in progress or already approved for special uses.

The three standards

StandardAlgorithmBased onPurposeParameter sets
FIPS 203ML-KEM (Module-Lattice Key Encapsulation Mechanism), from CRYSTALS-KyberLattice problemsKey establishmentML-KEM-512, 768, 1024
FIPS 204ML-DSA (Module-Lattice Digital Signature Algorithm), from CRYSTALS-DilithiumLattice problemsGeneral-purpose signaturesML-DSA-44, 65, 87
FIPS 205SLH-DSA (Stateless Hash-Based Digital Signature Algorithm), from SPHINCS+Hash functions onlyConservative signaturesSmall and fast variants
  • ML-KEM is a key encapsulation mechanism (KEM). Instead of both sides contributing to a Diffie-Hellman calculation, one side encapsulates a random secret using the other's public key. It is fast, but public keys and ciphertexts are around a kilobyte, much larger than the 32 bytes of an X25519 key.
  • ML-DSA is the expected default for most signatures. Signatures are a few kilobytes, which affects certificate chains and constrained devices.
  • SLH-DSA relies only on hash functions, a very well understood foundation. Signatures are larger and slower, so it suits cases such as firmware signing where confidence matters more than size.

NIST has also selected HQC, based on error-correcting codes, as a backup KEM so that not everything depends on lattices, and is standardising FN-DSA (from Falcon) for compact signatures. Stateful hash-based signatures (LMS and XMSS, in NIST SP 800-208) are already approved for uses such as firmware where the signer can carefully track state.

Hybrid deployment

Hybrid key exchangeClassicalshareX25519PQC shareML-KEM-768Combineboth secretsDerive keysTLS keyscheduleSessionsafe if eitherholds
Figure 2. Hybrid mode keeps classical security while adding post-quantum protection during the transition.

New algorithms deserve caution, so many deployments use hybrid key exchange: a classical exchange such as X25519 and ML-KEM run together, and the session key depends on both. An attacker must break both to read the traffic. Major browsers, content delivery networks and recent versions of OpenSSL and OpenSSH already support hybrid groups such as X25519MLKEM768 in TLS 1.3 and mlkem768x25519-sha256 in SSH. You can check what your own tools support:

openssl version
openssl list -kem-algorithms
openssl s_client -connect example.com:443 -groups X25519MLKEM768
ssh -Q kex

Practical considerations

  • Size: larger keys and signatures can break assumptions in protocols, middleboxes and constrained IoT links. Test for fragmentation and buffer limits.
  • Implementation quality: use well-reviewed libraries and validated modules; never write your own.
  • Side channels: implementations must run in constant time and resist timing and power analysis.
  • Interoperability: certificate and protocol standards for PQC are still being finalised in some areas, so track IETF work and vendor roadmaps.

Tip: for exams, map names: Kyber became ML-KEM (FIPS 203), Dilithium became ML-DSA (FIPS 204), SPHINCS+ became SLH-DSA (FIPS 205). KEM is for key exchange; DSA is for signatures.

For planning the move across an organisation, see post-quantum migration and crypto agility.

Practice

Which NIST standard should you use for key establishment?
FIPS 203, ML-KEM, which is a lattice-based key encapsulation mechanism derived from CRYSTALS-Kyber.
Why might SLH-DSA be chosen over ML-DSA for firmware signing?
It depends only on hash functions, a very conservative security basis, and firmware signing can tolerate its larger, slower signatures.
What is the benefit of hybrid key exchange?
The session stays secure as long as either the classical or the post-quantum algorithm remains unbroken, reducing risk during the transition.

Key takeaways

  • PQC runs on normal computers and replaces RSA and ECC.
  • FIPS 203 ML-KEM is for key establishment; FIPS 204 ML-DSA and FIPS 205 SLH-DSA are for signatures.
  • PQC keys and signatures are larger, which affects protocols and devices.
  • Hybrid modes such as X25519MLKEM768 combine classical and PQC security.
  • Use vetted libraries and track additional standards such as HQC and FN-DSA.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.