ML-KEM (FIPS 203)
ML-KEM is the post-quantum key encapsulation mechanism standardised by NIST in FIPS 203, formerly Kyber. Parameter sets, key sizes and use in TLS 1.3 and SSH.
Updated This page as Markdown
In short
ML-KEM is the post-quantum key encapsulation mechanism that NIST standardised in FIPS 203 in August 2024. It is derived from CRYSTALS-Kyber, is based on the Module-LWE lattice problem and replaces Diffie-Hellman and RSA key exchange. There are three parameter sets: ML-KEM-512, ML-KEM-768 and ML-KEM-1024. NIST names ML-KEM-768 as the default, and the BSI recommends ML-KEM-768 and ML-KEM-1024 in hybrid combination with a classical scheme. In TLS 1.3 it is deployed as X25519MLKEM768.
What is ML-KEM?
ML-KEM (Module-Lattice-Based Key-Encapsulation Mechanism) is a post-quantum algorithm that lets two parties establish a shared secret over an open channel. It takes the place that Diffie-Hellman, ECDH and RSA key transport hold today. Its security rests on the Module-LWE lattice problem, for which no efficient quantum algorithm is known.
A key encapsulation mechanism has three operations. Key generation produces an encapsulation key (public) and a decapsulation key (private). Encapsulation takes the public key and returns a ciphertext plus a shared secret. Decapsulation takes the ciphertext and the private key and returns the same shared secret. That 32-byte secret then feeds the key derivation of the protocol, and symmetric encryption such as AES does the rest.
Where is it defined?
ML-KEM is specified in NIST FIPS 203, published in August 2024 and derived from CRYSTALS-Kyber. The standard defines three parameter sets:
| Parameter set | Security category | Encapsulation key | Ciphertext | Shared secret |
|---|---|---|---|---|
| ML-KEM-512 | 1 | 800 bytes | 768 bytes | 32 bytes |
| ML-KEM-768 | 3 | 1184 bytes | 1088 bytes | 32 bytes |
| ML-KEM-1024 | 5 | 1568 bytes | 1568 bytes | 32 bytes |
NIST IR 8547 names ML-KEM-768 as the recommended default. BSI TR-02102-1 (version 2026-01) recommends ML-KEM-768 and ML-KEM-1024, not ML-KEM-512, and only in hybrid combination with a classical scheme. NSA CNSA 2.0 requires ML-KEM-1024 for US national security systems.
For TLS 1.3, RFC 10024 (August 2026) defines the hybrid group X25519MLKEM768, which combines X25519 with ML-KEM-768.
What it means in practice
In IT you mostly get ML-KEM through updates, not through development. OpenSSL 3.5, a long-term support release from April 2025, offers X25519MLKEM768 by default. OpenSSH 10.0 from April 2025 uses mlkem768x25519-sha256 as its default key exchange. What remains is to check that it is actually negotiated: a server pinned to an old group list, an outdated library on one side, or a TLS-terminating appliance in the path will quietly fall back to a classical key exchange.
The visible difference is size. With X25519MLKEM768 the client key share is 1216 bytes, compared with 32 bytes for X25519 alone, and the server answers with 1120 bytes. On servers this is rarely a problem. It matters wherever sizes were fixed for elliptic curves:
- handshake buffers and message length fields in embedded TLS stacks,
- proprietary protocols with a fixed 32-byte or 65-byte field for the public key,
- links with small frames or low bandwidth, where one handshake now spans many frames,
- microcontrollers with little RAM and stack for the computation.
In penetration tests and product reviews we check which key exchange an endpoint really negotiates, whether a downgrade to the classical group can be forced, and whether the implementation is a current library version or a copied draft of Kyber.
Common misunderstandings
ML-KEM does not encrypt your data; it agrees on the key that a symmetric cipher then uses. It does not authenticate anyone either, so certificates and signatures are a separate migration. Kyber and ML-KEM are not interchangeable on the wire. And hybrid is not a sign of distrust that will disappear next year: it is the mode the BSI recommends, because the classical part still protects the connection if a flaw is found in the new scheme or its implementation.
FAQ
Frequently asked questions
Is ML-KEM the same as Kyber?
ML-KEM is the standardised form of CRYSTALS-Kyber. NIST made changes on the way to FIPS 203, so implementations of earlier Kyber drafts are not interoperable with ML-KEM. If a library, a device or a data sheet says Kyber, check whether it means FIPS 203 or an earlier round version.
Which parameter set should I use?
ML-KEM-768 for general use. NIST IR 8547 names it as the recommended default, and BSI TR-02102-1 recommends ML-KEM-768 and ML-KEM-1024 but not ML-KEM-512. NSA CNSA 2.0 requires ML-KEM-1024 for US national security systems. The BSI recommends using ML-KEM only in hybrid combination with a classical scheme.
Does ML-KEM replace digital signatures?
No. ML-KEM only establishes a shared secret. Authentication still needs a signature scheme: today mostly RSA or ECDSA certificates, in future ML-DSA (FIPS 204) or SLH-DSA (FIPS 205). A TLS connection with X25519MLKEM768 and a classical certificate is protected against later decryption, but its authentication is still classical.
Sources
Related pages
- GlossaryPost-Quantum Cryptography (PQC)Post-quantum cryptography replaces RSA and elliptic curves with algorithms a quantum computer cannot break. Standards, deadlines and what migration means in practice.
- GlossaryHarvest Now, Decrypt Later (HNDL)Harvest now, decrypt later means recording encrypted traffic today and decrypting it once a quantum computer exists. Which data is exposed and what to do first.
- GlossaryCrypto-AgilityCrypto-agility is the ability to replace cryptographic algorithms, parameters and keys without redesigning the system. Where it is required and where it fails.
- GlossaryCryptographic Bill of Materials (CBOM)A CBOM is an inventory of the algorithms, keys, certificates, protocols and crypto libraries in a system. Format, data sources and its role in PQC migration.
- InsightsPost-Quantum Cryptography Migration: The Technical GuideWhat the NSA advisory of 2 December 2026 asks for and how to do it: ML-KEM, ML-DSA, hybrid TLS 1.3, SSH, PKI, firmware signing, pitfalls and a 90-day plan.
- ServicesPost-quantum cryptography: how exposed are you, and by when?Free post-quantum check: nine questions show how exposed your company is, whether 2030 or 2035 applies and your next three steps. With PQC readiness assessment.
