← Back to section · Standards & Specifications

From Kyber to ML-KEM: A Difference List Between the Submission and FIPS 203

The name is the least of it: FIPS 203 added parameter-set domain separation to key generation, explicit encoding checks for public keys and ciphertexts, and testable internal algorithms. An item-by-item comparison of the round-3 Kyber specification and the final standard.

Published 22 November 2026 · 5 min read · PQ Frontier

From Kyber to ML-KEM: A Difference List Between the Submission and FIPS 203
AI-generated site artwork
Video explainer · Version Comparison: signatures across versions

Many people assume that Kyber becoming ML-KEM was mostly NIST giving a winning algorithm a formal name. In fact, between the round-3 submission and the FIPS 203 standard published in August 2024, NIST made a series of substantive changes: some alter the byte stream of key generation, some add checks to decapsulation that the submission never had, and some are structural changes made purely so the algorithm can be validated. The net result: a library implemented against the Kyber specification cannot interoperate with one implemented against FIPS 203, even though the parameter-set names differ only by a prefix. This article inventories the differences one by one.

Difference 1: Domain separation in key generation

This is the easiest change to overlook and the one with the most direct consequences. In the Kyber submission, key generation starts from a 32-byte seed d and uses the hash function G to expand a matrix seed ρ and a noise seed σ. FIPS 203 writes the parameter-set dimension k into the hash input as well, computing G(d‖k) before expanding. The effect is that the same seed necessarily produces unrelated key material under ML-KEM-512, ML-KEM-768, and ML-KEM-1024: the parameter sets are cryptographically domain-separated, ruling out any accidental cross-parameter-set relationships.

For implementers the implication is practical: if you test an ML-KEM implementation against Kyber known-answer tests (KATs), the very first step will mismatch — not because the implementation is wrong, but because the standard changed the input. All test vectors must be replaced with their FIPS 203 counterparts.

Difference 2: New explicit encoding and range checks

The submission left several input-validity questions to implementers’ discretion; the final standard turns them into mandatory requirements:

  • Encapsulation-key check: An ML-KEM public key contains polynomial coefficients packed at 12 bits each, and 12 bits can represent values up to 4095, which exceeds the modulus q = 3329. FIPS 203 requires the encapsulation operation, when decoding the public key, to verify that these coefficients are actually less than q and to reject the key otherwise. An implementation missing this check may accept a deliberately malformed public key.
  • Ciphertext check: During decapsulation, the standard requires checking that the input ciphertext is a valid encoding (length and re-encoding consistency), rather than feeding arbitrary bytes into the internal decryption and relying on implicit rejection to catch problems.

These checks do not change a single byte exchanged between honest parties, but they define how an implementation behaves when faced with malicious input, and validators check them one by one. In practice they are also the dividing line between a “toy implementation” and a “product implementation”: demonstration code usually only exercises the happy path, while product code must produce exactly the standard-mandated rejection when faced with a malformed public key, a truncated ciphertext, or an over-long input.

Difference 3: Internal algorithms restructured for testability

FIPS 203 splits each operation into two layers: the external ML-KEM.KeyGen / Encaps / Decaps, and internal versions that take explicit randomness inputs (KeyGen_internal receives seeds d and z, Encaps_internal receives the random value m, and so on). The submission had no such layering; randomness was drawn inside the algorithm wherever it was needed.

This is not a cryptographic change but a compliance necessity: validation laboratories need fixed inputs to reproduce fixed outputs for known-answer testing, and all randomness must be traceable to an approved random number generator. The input z itself comes from Kyber’s implicit-rejection design — when decapsulation fails, z is used to fabricate a plausible-looking shared secret — and the standard simply makes its provenance explicit and interface-level.

As a side effect, this layering also changes the “official form” of the private key. From the internal algorithms’ viewpoint, an ML-KEM key is fully determined by the seed pair (d, z): d expands into the public key and the decapsulation core, while z serves as the implicit-rejection secret. The final standard thereby effectively recognizes two equivalent representations: the fully expanded private key, and a seed pair of just 64 bytes. The submission never stated this so explicitly, and implementations’ key-export formats varied widely. After finalization, the “seed-form private key” became a storage option with a standards basis, and the discussions of its PKCS#8 representation and cross-library import/export only then truly began — a detail this subcategory revisits in the “same sizes, different bytes” article.

Difference 4: Names, parameter-set identifiers, and the official position that “Kyber ≠ ML-KEM”

One further class of change sits not inside the algorithm but at the standard’s legal and identifier layer. The parameter sets are formally named ML-KEM-512, ML-KEM-768, and ML-KEM-1024, replacing the submission’s Kyber512/768/1024 spellings; and NIST stated plainly at publication that FIPS 203 describes ML-KEM, and that artifacts implemented against the Kyber submission may not claim conformance to FIPS 203. This position propagates downstream: the identifiers the IETF assigned to ML-KEM in protocols such as TLS and X.509 are a different set of numbers from those used by experimental Kyber deployments, and cryptographic libraries generally carry the two as parallel, non-aliased algorithm entries. Here the name is not packaging but part of the compatibility boundary — a theme this subcategory returns to in the implementer’s guide below.

What did not change, and the variant that was dropped

It is equally worth recording what stayed the same: the lattice dimensions, noise parameters, and compression parameters of all three parameter sets match the submission, public key, ciphertext, and private key sizes are identical item for item, and the underlying K-PKE machinery — NTT arithmetic, sampling, encoding and decoding — is unchanged. In short, ML-KEM’s mathematics is Kyber’s mathematics; everything that changed is interface, checks, and domain separation.

What was dropped is Kyber’s ”90s” variant, the performance-oriented version that replaced the SHA-3 family with AES and SHA-256. It did not make it into FIPS 203. The standard recognizes only SHA3/SHAKE-based implementations, which means code paths optimized for the 90s variant cannot be claimed as FIPS 203 conformant as they stand.

Summary

The relationship between Kyber and ML-KEM can be summed up as: the same mathematics under a different engineering contract. Domain separation isolates key material per parameter set, explicit checks close the door on malformed inputs, and the internal-algorithm layering makes the standard validatable. Anyone who writes an algorithm name into a protocol, a certificate, or code must be precise about which version they mean — and in the next article we apply the same magnifying glass to Dilithium and ML-DSA.

Tags: ML-KEMKyberFIPS 203Version Comparison