← Back to section · Standards & Specifications
Inside FIPS 203: What a Key-Encapsulation Standard Actually Specifies
From chapter skeleton to approval clauses: how FIPS 203 uses notation, a two-layer algorithm structure and mandatory wording to turn CRYSTALS-Kyber into an interoperable, verifiable ML-KEM.
Many people treat FIPS 203 as “the manual for Kyber,” but it is in fact a technical specification with legal force: since its publication on 13 August 2024, the name “ML-KEM” refers only to what this text defines. An implementation that deviates from the text — even if mathematically equivalent — may not claim to be ML-KEM. Taking the standard apart shows what components an algorithm standard is actually made of.
The skeleton of the text: from notation table to approval clauses
The opening parts of FIPS 203 follow the shape of most NIST standards: scope and applicability, normative references, and a table of terms and notation. The notation table looks dry, but it is the foundation of interoperability — the polynomial ring degree n = 256, the modulus q = 3329, the bit order of byte encodings, and the exact definitions of the hash functions H, G and J are all nailed down there. Any two independent implementations that follow the same notation table letter for letter should produce identical byte streams.
What follows the main text is a part that is often overlooked but carries great weight: the clauses about what is “approved.” The standard states which functions and configurations are approved, that random bits must come from a random source meeting the requirements of the SP 800-90 series, and that keys must be generated by the procedure the standard specifies. The force of a FIPS comes from the U.S. federal procurement system: cryptographic modules bought by federal agencies may use only approved algorithms and configurations, so these clauses are not advice — they are the compliance boundary.
Two layers: K-PKE inside, ML-KEM outside
The core algorithm part of the standard is deliberately split into two layers. The inner layer is called K-PKE, a public-key encryption scheme with key generation, encryption and decryption functions. It carries the lattice mathematics — polynomial multiplication in the NTT domain, compression and decompression, noisy sampling. But K-PKE on its own achieves only security against chosen-plaintext attacks, and the standard explicitly marks it as not approved for standalone use; it is a component.
The outer layer is ML-KEM proper: key generation, encapsulation and decapsulation. On top of K-PKE it applies the Fujisaki–Okamoto (FO) transform: during decapsulation the ciphertext is re-encrypted and compared, and on mismatch the “implicit rejection” path is taken, returning a pseudorandom key derived from a seed instead of an error. This layer lifts the inner encryption scheme into a key-encapsulation mechanism secure against chosen-ciphertext attacks. The two-layer split keeps the responsibilities of each layer in the text clean, and allows the inner intermediate values and the outer behaviour to be tested separately.
The internal representation of keys is also fixed by the text: the encapsulation key (public key) is the K-PKE public key concatenated with a seed, while the decapsulation key (private key) contains the K-PKE private key, a copy of the public key, a hash of the public key, and a 32-byte random seed z — where z is exactly the material from which implicit rejection derives the substitute key. Key generation expands from two 32-byte seeds d and z, which guarantees that the same seeds reproduce the same key pair, making test-vector checking possible.
Parameter sets: only three rows of the table are approved
The approval clauses lock the parameter sets to exactly three: ML-KEM-512, ML-KEM-768 and ML-KEM-1024, corresponding to NIST security categories 1, 3 and 5. Each set is determined by the vector dimension k, the noise distribution parameters η₁ and η₂, and the compression widths dᵤ and dᵥ of the ciphertext components. Anyone who changes any one of these numbers — even to produce a “stronger” variant — no longer has ML-KEM, and is outside the approval scope of FIPS 203.
This “parameters are identity” style is the norm for algorithm standards: the object of standardization is never an abstract algorithm family, but a finite set of concrete instances that can be tested one by one and named one by one. Understanding this explains why the standard text leaves no room for “user-adjustable parameters.”
From draft to final: the text was not written in one pass
Another noteworthy component of FIPS 203 is its built-in “change history.” Between the draft published in August 2023 and the final version of August 2024, several substantive changes are recorded item by item in the standard’s publication notes: the algorithm was formally renamed ML-KEM; key generation’s hash input gained domain separation by parameter-set dimension (the dimension k is encoded into the hash input of the seed expansion), so that key derivation for different parameter sets is mutually unrelated; and individual byte encodings and the organization of internal functions were adjusted as well.
What these changes mean for the reader is that citations and implementations must be based on the final text. Code written from the Kyber papers or the FIPS draft may diverge from the final version at some step — and the divergence points are exactly what test vectors catch first. That the standard text documents its own changes is itself a form of structural self-awareness: it acknowledges it was produced by revision, and marks the boundary between old and new for implementers.
Appendices and the approved auxiliary functions
The appendices of FIPS 203 provide worked examples with intermediate values: starting from the seeds, they list step by step the intermediate results of sampling, transformation and encoding, up to the final keys and ciphertext. Such appendices are not common in traditional algorithm standards; they are a debugging channel prepared for the complexity of post-quantum algorithms (this site has a separate article on the test-vector ecosystem).
Equally noteworthy is how specifically the standard scopes its approval of auxiliary functions: the SHA3 and SHAKE function families used by the algorithm are themselves defined by FIPS 202, and FIPS 203 incorporates them into the approved scope by reference, prescribing the exact use at every call site — which position uses H (SHA3-256), which uses G (SHA3-512), and which uses J (SHAKE-256). Here the hash functions are not “implementer’s choice” components; they are normative content of the same rank as the lattice operations. Remove any one of these prescriptions, and the resulting byte stream diverges from every other implementation.
Conclusion
The components of the FIPS 203 text — notation and definitions, the two-layer algorithm, approval clauses, the parameter table — together accomplish one thing: they turn the Kyber of the academic papers into an ML-KEM that any vendor can implement independently, any laboratory can verify independently, and any purchaser can hold to compliance. Half of the work of an algorithm standard is not in the mathematics, but in this textual engineering that eliminates ambiguity item by item.
Tags: FIPS 203ML-KEMstandard text