Written and maintained by CASRAI Editorial Board
Published
On this page
ML-KEM is the module-lattice-based key-encapsulation mechanism that the U.S. National Institute of Standards and Technology (NIST) standardised in FIPS 203, published on August 13, 2024. It lets two parties establish a shared secret key over a public channel, and NIST states that ML-KEM is currently believed to be secure even against an adversary who has a quantum computer. The standard approves three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and NIST recommends ML-KEM-768 as the default. The data table below the article lists the key, ciphertext and shared-secret sizes for each set.
What ML-KEM is
A key-encapsulation mechanism (KEM) is a cryptographic scheme that, under certain conditions, can be used to establish a shared secret key between two communicating parties. That shared secret is then used for symmetric-key cryptography, for example encryption and authentication. FIPS 203 describes a KEM as three algorithms plus a collection of parameter sets: a probabilistic key-generation algorithm (KeyGen), a probabilistic encapsulation algorithm (Encaps) and a deterministic decapsulation algorithm (Decaps). The parameter sets let an implementer choose a trade-off between security and efficiency.
ML-KEM is the KEM that FIPS 203 specifies. Its security is related to the computational difficulty of the Module Learning with Errors problem, which is why the standard is described as module-lattice-based. The standard’s own reference list cites the third-round CRYSTALS-Kyber specification from NIST’s post-quantum cryptography standardisation process. For background on keys, ciphers and why public-key schemes matter, see the CASRAI guide what is cryptography.
Who publishes it and what FIPS 203 covers
FIPS 203, titled Module-Lattice-Based Key-Encapsulation Mechanism Standard, is a Federal Information Processing Standard developed by NIST. Its DOI is 10.6028/NIST.FIPS.203. NIST’s publication record gives a draft date of August 24, 2023 and a final publication date of August 13, 2024, and the standard states that it is effective on the date of publication. The standard is categorised as Computer Security, subcategory Cryptography.
The document specifies the ML-KEM algorithms (KeyGen, Encaps and Decaps), the approved parameter sets and a requirement for randomness strength for each set. The implementation guidance NIST points to for choosing and using KEMs is Special Publication 800-227, which FIPS 203 lists as a reference. Implementations of the standard are validated through NIST’s cryptographic algorithm and module validation programmes.
NIST’s post-quantum cryptography project page states that the first standards were released in August 2024 and that NIST plans to deprecate and ultimately remove quantum-vulnerable algorithms by 2035, with high-risk systems moving earlier. The NIST page for FIPS 203 also carries a note dated November 17, 2025 saying that an identified issue will be corrected in a future update or revision and pointing to an errata list. Anyone implementing the standard should check that page for the current status.
The three parameter sets
All three sets use the same polynomial degree n = 256 and modulus q = 3329; they differ in the module dimension k, which is 2 for ML-KEM-512, 3 for ML-KEM-768 and 4 for ML-KEM-1024. The parameter sets were designed to meet NIST security strength categories: ML-KEM-512 is claimed to be in category 1, ML-KEM-768 in category 3 and ML-KEM-1024 in category 5. In order of increasing security strength, performance decreases. Each set also carries a required random bit generator (RBG) strength of 128, 192 and 256 bits respectively.
Which set to use
FIPS 203 gives two statements that need to be read together. First, when initially establishing cryptographic protections for data, the strongest possible parameter set should be used, which reduces the likelihood of costly transitions to a higher-security set later. Second, some sets may have adverse performance effects in a given application, for example an algorithm that is unacceptably slow or keys and ciphertexts that are unacceptably large. Balancing these, NIST recommends ML-KEM-768 as the default parameter set because it provides a large security margin at a reasonable performance cost, and says other sets may be used where that is impractical or where higher security is required.
Sizes
Every set produces a 32-byte shared secret. What grows with the parameter set is the encapsulation key (800, 1,184 and 1,568 bytes), the decapsulation key (1,632, 2,400 and 3,168 bytes) and the ciphertext (768, 1,088 and 1,568 bytes). Those figures matter in practice for protocols that must carry a public key and a ciphertext in a handshake. The full table with security categories is in the dataset below.
How ML-KEM differs from ML-DSA (FIPS 204)
FIPS 204, the Module-Lattice-Based Digital Signature Standard, was finalised on the same day as FIPS 203 and specifies ML-DSA. The two standards do different jobs: ML-KEM establishes a shared secret, while ML-DSA generates and verifies digital signatures that provide integrity, signer authentication and non-repudiation. A system that needs both confidentiality of a key exchange and authentication of the parties needs algorithms of both kinds; neither replaces the other.
| Item | ML-KEM | ML-DSA |
|---|---|---|
| Standard | FIPS 203 | FIPS 204 |
| Full title | Module-Lattice-Based Key-Encapsulation Mechanism Standard | Module-Lattice-Based Digital Signature Standard |
| Purpose | Establish a shared secret key between two parties | Generate and verify digital signatures |
| DOI | 10.6028/NIST.FIPS.203 | 10.6028/NIST.FIPS.204 |
| Draft / final | August 24, 2023 / August 13, 2024 | August 24, 2023 / August 13, 2024 |
Strengths and limits
Strengths
- It is a federal standard with a fixed specification, three defined parameter sets and published key and ciphertext sizes, so implementers can plan protocol message sizes in advance.
- NIST states it is currently believed secure against adversaries with a quantum computer, which is the property that motivates the transition away from quantum-vulnerable public-key algorithms.
- One shared-secret size (32 bytes) across all sets keeps the downstream symmetric-key handling the same whichever set is chosen.
Limits
- The belief in its security is stated as a present-tense belief (“at present”), not as a proof; it relies on the difficulty of Module Learning with Errors.
- A KEM only establishes a shared secret. It does not sign data or authenticate a party; that is the role of a signature scheme such as ML-DSA.
- Keys and ciphertexts are larger than the scalar sizes research staff may be used to, and FIPS 203 itself warns that some sets may make keys or ciphertexts unacceptably large for an application.
- Validation matters: the standard expects implementations to be validated through NIST’s programmes rather than self-asserted.
- NIST’s page on the standard notes an identified issue to be corrected in a future revision, so the text can change.
Institutions that handle long-lived sensitive data often track this work under research security; see the dictionary entry on research security. For a different approach to protecting data in use, see the guide on homomorphic encryption in healthcare.
Related standards
| Document | What NIST says it is |
|---|---|
| FIPS 203 | Specifies ML-KEM, a key-encapsulation mechanism for establishing a shared secret key |
| FIPS 204 | Specifies ML-DSA for digital signatures (integrity, signer authentication, non-repudiation) |
| SP 800-227 | NIST Special Publication on recommendations for key-encapsulation mechanisms, listed as a reference in FIPS 203 |
| NIST post-quantum cryptography project | Programme page: standards released August 2024; HQC selected for ongoing standardisation; plan to deprecate quantum-vulnerable algorithms by 2035 |
Frequently asked questions
What is FIPS 203?
FIPS 203 is the NIST standard that specifies ML-KEM. It was published and became effective on August 13, 2024, after a draft released on August 24, 2023.
What is FIPS 204, and is it the same as ML-KEM?
No. FIPS 204 specifies ML-DSA, a digital signature scheme. ML-KEM (FIPS 203) establishes shared secret keys; the two serve different purposes and were finalised on the same day.
Which ML-KEM parameter set should be used?
NIST recommends ML-KEM-768 as the default, because it provides a large security margin at a reasonable performance cost. The standard also says the strongest possible set should be used when initially establishing protections, with the caveat that larger sets can have performance and size costs.
Is ML-KEM secure against quantum computers?
FIPS 203 states that at present ML-KEM is believed to be secure, even against adversaries who possess a quantum computer. Its security is related to the difficulty of the Module Learning with Errors problem.
How big are ML-KEM keys and ciphertexts?
The shared secret is 32 bytes for every set. Encapsulation keys are 800, 1,184 or 1,568 bytes, decapsulation keys 1,632, 2,400 or 3,168 bytes, and ciphertexts 768, 1,088 or 1,568 bytes for ML-KEM-512, -768 and -1024 respectively.
Sources
- NIST, FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, read 2026-11-14.
- NIST CSRC, FIPS 203 publication page, read 2026-11-14.
- NIST CSRC, FIPS 204 publication page, read 2026-11-14.
- NIST CSRC, Post-Quantum Cryptography project, read 2026-11-14.
Data: ML-KEM parameter sets: module dimension, RBG strength, security category and sizes (FIPS 203)
Combines Table 2 (approved parameter sets and required RBG strength) and Table 3 (key and ciphertext sizes) of NIST FIPS 203 with the security category stated for each set in the standard, so one row gives the full profile of a parameter set.
Period covered: 2024.
| Parameter set | Module dimension k | Required RBG strength (bits) | NIST security category | Encapsulation key size (bytes) | Decapsulation key size (bytes) | Ciphertext size (bytes) | Shared secret key size (bytes) |
|---|---|---|---|---|---|---|---|
| ML-KEM-512 | 2 | 128 | 1 | 800 | 1632 | 768 | 32 |
| ML-KEM-768 | 3 | 192 | 3 | 1184 | 2400 | 1088 | 32 |
| ML-KEM-1024 | 4 | 256 | 5 | 1568 | 3168 | 1568 | 32 |
Sources
- FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (accessed 2026-11-14)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







