← Back to section · Research & Analysis
From Kyber to ML-KEM: What Standardization Actually Changed
ML-KEM is not Kyber renamed: ciphertext-bound key derivation, domain separation and input validation — a point-by-point account of the FIPS 203 differences, and why the two do not interoperate.
“We already run Kyber — isn’t ML-KEM just a rename?” It is one of the most common misconceptions in migration consulting, and the answer is no: during standardization, FIPS 203 made several small-looking changes to Kyber that are decisive for compatibility. A system built to the Kyber specification cannot complete a single key exchange with an ML-KEM system.
What did not change
The mathematical core is untouched: the Module-LWE assumption, the ring with , centred binomial noise, NTT acceleration, and the three parameter sets ( for 512/768/1024) all match Kyber’s round-3 specification. Security analysis, performance character and side-channel guidance carry over. Every change lives in the “wrapping layer.”
What did change
1. Shared-secret derivation. In Kyber’s KEM, the shared secret is derived along the lines of , with implicit rejection falling back to a secret value . FIPS 203 binds the ciphertext hash into the derivation: , where is the decapsulated candidate. Each shared secret is now tied to one exact ciphertext — tampering with the ciphertext changes the session key, the re-encapsulation attack surface closes, and the security proof gets cleaner.
2. Domain separation and labelling. FIPS 203 adds explicit domain separation to hash invocations and restates randomness and key-generation inputs in FIPS style. At the byte level the consequence is immediate: same key, same seed, and the two specifications diverge from the first intermediate value.
3. Input validation, the FIPS way. FIPS 203 mandates ciphertext format checks before decapsulation, key-generation consistency self-checks, and approved-DRBG randomness requirements. The mathematics is unchanged, but the boundary of what counts as a conforming implementation moved — deliberately, so that FIPS 140-3 validation has something to hook into.
4. Names and interfaces. Kyber512/768/1024 become ML-KEM-512/768/1024, with API semantics aligned to FIPS conventions (key representations, randomness supply).
Sizes and parameters: the protocol changed, the numbers did not
One detail invites misjudgement: FIPS 203’s three parameter sets are byte-for-byte identical in size to Kyber’s. ML-KEM-512/768/1024 encapsulation keys are 800/1184/1568 bytes, ciphertexts are 768/1088/1568 bytes, and decapsulation keys and shared secrets match exactly as well. The sizes are the same; the byte contents do not recognise each other. That is the trap inside the “rename” theory: judged by the parameter table alone, the two are indistinguishable — but attempt one cross-specification handshake and decapsulation either fails outright or produces a completely different shared secret.
A draft is not a standard: the Draft00 lesson
Before the final standard landed, browser vendors and the IETF deployed transitional versions based on Kyber’s round-3 specification and the FIPS 203 draft (TLS’s Kyber768Draft00 is exactly that). And the FIPS 203 draft itself moved during its comment period: the shared-secret derivation in the initial public draft differed from the final text, with the ciphertext-bound form settled only at finalisation. So “draft ML-KEM” is not ML-KEM either — at least three mutually incompatible byte-level definitions have existed in the wild: the Kyber specification, the FIPS draft, and the final FIPS 203.
The engineering discipline follows directly. First, any implementation claiming to be ML-KEM should be able to produce a conformance record against the FIPS 203 known-answer tests (KATs) or ACVP vectors. Second, a library’s “Kyber mode” exists only for interoperation with legacy systems and must never be the default in new deployments. Third, protocol negotiation should carry version identifiers, leaving a retreat path for future revisions of the specification — which is precisely what cryptographic agility means at the KEM layer.
Implicit rejection changed in the details, too
Kyber’s implicit rejection uses a secret random value , stored in the decapsulation key, to derive a plausible-looking fake shared secret whenever decapsulation fails. FIPS 203 keeps the implicit-rejection idea but folds the failure path into the same ciphertext-bound framework: success or failure, the derivation passes through ; on failure, simply stands in for the candidate secret. Success and failure outputs become harder to tell apart, which adds a structural obstacle to analyses that probe failure detectability — including some fault-injection and side-channel settings. It is a small change, but exactly the kind that review cycles grind over: most of standardisation’s labour is spent on seams in this wrapping layer.
Testability: the standardisation requirement hidden in the interfaces
A further class of changes sits not at the cryptographic layer but at the verification layer. FIPS 203 specifies the KEM through internal, deterministic interfaces: key generation, encapsulation, and decapsulation all have “internal” variants in which the random inputs appear as explicit parameters. This looks like mere document style; in fact it paves the road for the validation regime. ACVP testing needs reproducible outputs from fixed randomness, and the internal interfaces exist precisely to make that possible; FIPS 140-3 module validation likewise checks behaviour interface by interface. Kyber’s academic specification carries no such obligation — its readers are researchers and implementers. FIPS’s readers also include testing laboratories and procurement officers. Same mathematics, different audience, and the text grows this extra layer accordingly.
The companion change is compliance language about randomness sources: FIPS 203 states the length and provenance requirements for the key-generation seeds ( and ) and requires randomness from an approved random bit generator. Clauses like these create no new cryptographic properties, yet they decide whether an implementation can enter a government procurement catalogue — the most practical distance there is between “standardised” and “published”.
Engineering consequences
- Inventories must record the version — an asset labelled “Kyber” needs a follow-up question: round-3 spec, FIPS 203 draft, or final? They are mutually incompatible (CBOM algorithm fields should capture this granularity);
- Historical baggage in TLS — early deployments used
X25519Kyber768Draft00, superseded byX25519MLKEM768(final FIPS 203); seeing the former in a capture means a very old peer; - Library choice — liboqs, OpenSSL 3.5, BoringSSL and RustCrypto’s ml-kem all target final FIPS 203; anything still implementing the Kyber spec is an upgrade item;
- Interop must be tested, not assumed — cross-vendor ML-KEM interop is established through NIST ACVP test vectors; “both are lattice KEMs” is not evidence of interoperability.
Standardization is not a rename; it is the forging of an academic scheme into an engineering object that can be validated, procured and interoperated. The Kyber → ML-KEM deltas are the cleanest case study of that forging in the whole PQC programme.
Sources and further reading
- NIST, FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, 2024-08-13. https://doi.org/10.6028/NIST.FIPS.203
- Avanzi et al., CRYSTALS-Kyber Algorithm Specifications and Supporting Documentation (v3.02), 2021. https://pq-crystals.org/kyber/
- IETF, Hybrid key exchange in TLS 1.3 (draft-ietf-tls-ecdhe-mlkem) — the X25519MLKEM768 definition and the Draft00 succession.
Tags: KyberML-KEMFIPS 203standardization