← Back to section · Standards & Specifications
Reading FIPS 203 Chapter by Chapter: The Textual Structure and Internal Interfaces of the ML-KEM Standard
Reading FIPS 203 as a document rather than as an algorithm: the two-layer structure (K-PKE and ML-KEM), the references to FIPS 202, how the three parameter sets are written, and the normative changes in the final version relative to the submission.
This site’s algorithm articles have already covered the mathematics and parameter meanings of ML-KEM. This article changes the angle: it reads FIPS 203 as a legal-technical document. How it organises its specification, which parts are mandatory, and which chapters implementers and compliance staff should each watch — these questions can only be answered from the structure of the text itself.
Positioning: what exactly is approved
The full name of FIPS 203 is the Module-Lattice-Based Key-Encapsulation Mechanism Standard, published in August 2024 on the same day as FIPS 204 and 205. Its applicability section states that the standard approves ML-KEM for key establishment in federal systems, the algorithm originating in CRYSTALS-Kyber, selected in the NIST standardization process.
One corollary of this positioning is often missed: everything defined inside the standard — including the K-PKE below, the sampling algorithms and the encoding rules — is a component of ML-KEM, not an independently approved algorithm. Any practice of “taking an internal component for another use” falls outside the approval granted by this standard. Compliance claims can only be made for ML-KEM as a whole.
Two layers: K-PKE inside, ML-KEM outside
The normative body of FIPS 203 is written in two layers. The inner layer defines K-PKE: a module-lattice-based public-key encryption component with key generation, encryption and decryption algorithms. The outer layer defines ML-KEM itself: the three external interfaces ML-KEM.KeyGen, ML-KEM.Encaps and ML-KEM.Decaps. On top of K-PKE, ML-KEM adds key derivation and transform processing: during encapsulation the shared secret is mixed through domain-separated hashing, and during decapsulation a re-encryption check with implicit rejection ensures that a tampered ciphertext yields a random-looking, unusable shared secret rather than an error.
This layering has practical value for readers. Implementers build the inner components item by item, then assemble them at the outer layer; auditors checking conformance first verify the external interfaces and parameters against the standard, then descend into the inner layer to check encoding and sampling details. The standard also explicitly requires the external interfaces to perform input checks — such as length and format validation of encapsulation keys and ciphertexts — and this part was significantly strengthened in the final version, one of its important differences from the early submission.
Hash components: all sampling leads back to FIPS 202
ML-KEM needs a great deal of deterministic expansion and random sampling: expanding a matrix from a seed, sampling error vectors, deriving the shared secret. FIPS 203 does not provide these functions itself; it uniformly references SHA3-256, SHA3-512 and SHAKE128, SHAKE256 from FIPS 202, and prescribes for each use an exact input concatenation and domain-separation bytes.
This design makes FIPS 202 the common foundation of all three PQC standards (this site has a dedicated article on it). For implementers, the most common cause of interoperability failure is not an error in the lattice arithmetic but an input concatenation order, domain-separation byte, or output truncation length that disagrees with the standard for the hash functions — all of these details are written into the normative text, and the test vectors (provided through ACVP) exist precisely to check them one by one.
How the parameter sets are written: three tiers and security categories
The standard gives three parameter sets in tabular form: ML-KEM-512, ML-KEM-768 and ML-KEM-1024, corresponding to NIST security categories 1, 3 and 5 (that is, attack cost no lower than key search against AES-128, AES-192 and AES-256 respectively). Each tier fixes every value — lattice dimension, noise distribution parameters, compression widths — and implementers may not alter any of them: change any parameter and the result is no longer the standard algorithm.
Note that the standard approves only these three combinations; there is no compliant usage with “self-chosen parameters”. Selection — which tier to use — belongs to usage guidance, decided by the SP 800 series and agency policies, and is not written into this standard. This is the typical division of labour in the FIPS anatomy: the standard governs “what it is”, the guidance governs “how to use it”.
From draft to final: the final text governs
Between the CRYSTALS-Kyber team submission, the public draft of FIPS 203 and the final published version there are several technical differences. Beyond the strengthened input checks, the final version also adjusted the use of random seeds and domain separation inside key generation, and clarified a number of encoding details. These differences are enough for a library implemented against the submission and one implemented against the final version to be separated by the test vectors.
The conclusion is direct: development, audit and procurement citations must all rest on the final FIPS 203 as published in August 2024; drafts and academic papers serve only as background for understanding. Asking one extra question when reading a standard — “which version is this text?” — saves a great deal of interoperability and compliance rework.
Encoding and sampling: the real interoperability examination
FIPS 203 devotes considerable space to encoding rules: how integers are split into bytes, how bit strings are packed, how polynomial coefficients are compressed and decompressed (for example, squeezing a coefficient within the modulus range into fewer bits). These clauses look trivial, yet they are the real interoperability examination — two implementations can agree completely on the mathematics and still produce mutually unrecognisable keys and ciphertexts over a single differing encoding convention. When auditing an implementation, item-by-item checking of the encoding functions ranks no lower than the core algorithm itself.
Adjacent to this are the sampling clauses: the standard prescribes exactly how uniform coefficients are rejection-sampled from a byte stream and how errors are sampled from a binomial distribution, and which hash function with which concatenation produces the input byte stream. Read together, the encoding and sampling parts explain why the specification density of FIPS 203 is far higher than that of the academic paper describing the algorithm: a paper need only make the idea clear, while a standard must make two implementations that have never met produce byte-identical results. In addition, NIST is developing general guidance on KEM usage in SP 800-227 (still at draft stage), which will answer the composition questions the standard body deliberately leaves open — further evidence of the division of labour: standards fix the algorithm, guidance fixes the usage.
Conclusion
Read as a document, FIPS 203 yields another layer of certainty: the scope of approval delimits what may be used, the two-layer structure shows implementers and auditors their paths, the FIPS 202 references pin down the interoperability details, and the parameter tables close off any room for improvisation. Algorithms will evolve with research, but this textual discipline is the common chassis of every FIPS.
Tags: FIPS 203ML-KEMreading the standard