← Back to section · Standards & Specifications
FIPS 202: The SHA-3 and SHAKE Foundation Referenced by All Three PQC Standards
FIPS 203, 204 and 205 all point their hash components at the same 2015 standard — FIPS 202. This article reads its sponge construction, the extendable output of SHAKE, and why it became the common foundation of the post-quantum standards.
Open the reference lists of FIPS 203, 204 and 205 and one document appears in all three: FIPS 202. Published in 2015, nearly a decade before the three PQC standards and with nothing to do with quantum computing, it nonetheless became the common foundation of the post-quantum era. This article takes that “standard referenced by standards” apart on its own: what it defines, why lattice algorithms cannot do without it, and where referencing it most often goes wrong.
What a 2015 standard defines
The full name of FIPS 202 is the SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions, published in August 2015. It grew out of the SHA-3 competition NIST launched in 2007: the Keccak algorithm won in 2012, and the standard was finalised on that basis.
FIPS 202 defines two families of functions. The first is the fixed-output-length SHA3 hashes — SHA3-224, SHA3-256, SHA3-384 and SHA3-512 — positioned parallel to the SHA-2 family of FIPS 180-4, a hash standard on an independent design line. The second is SHAKE128 and SHAKE256: extendable-output functions (XOFs), for which the caller may specify any output length. The core component of the standard is the Keccak-p permutation and the sponge construction built on it, with concrete parameters (such as the 1600-bit state width, rate and capacity) given in the standard body in tables and algorithms.
The sponge construction: one component, many uses
The sponge construction works, in one sentence, like this: the input is “absorbed” into the internal state in blocks, with permutations applied repeatedly, and then the output is “squeezed” from the state in as many segments as the desired length requires. Want a longer output — squeeze longer: that is where SHAKE’s arbitrary output length comes from.
The value of this structure came fully into view in the lattice era. Algorithms such as ML-KEM and ML-DSA constantly need operations that deterministically expand short seeds into long material: expanding an entire matrix from a 32-byte seed, sampling error vectors from prescribed distributions, hashing messages and keys together into challenge values. SHAKE reduces all of these to a single primitive: give an input, set a length, receive material. And by splicing domain-separation bytes into the input, the same function can be safely reused for mutually distinct purposes. This is the technical reason the three PQC standards all reference FIPS 202 — not an administrative arrangement, but a demand of the algorithms themselves.
Its concrete roles in the three standards
In FIPS 203, SHAKE128 expands the ML-KEM matrix from a seed, SHAKE256 handles sampling- and key-derivation-related expansion, and SHA3-256/512 cover several fixed-length hashing points. In FIPS 204, SHAKE256 runs throughout: seed expansion, mask sampling and challenge generation are all done by it. FIPS 205 offers two parameter families: one using SHAKE, the other using the SHA-2 family of FIPS 180-4 — the only one of the three standards to keep a dual route at the hash layer, matching its positioning of “hash functions only, along the most conservative lines available”.
None of these references is a bare “see FIPS 202”: each standard prescribes, for every call, the input concatenation order, domain-separation bytes and output length. A substantial share of interoperability failures trace back here — the hash primitive itself is implemented correctly, but the splicing details disagree with the standard. The ACVP test vectors exist precisely to check these details one by one.
What referencing an older standard means
The case of FIPS 202 illustrates an important mechanism of the standards system: referencing lets standards be reused rather than rewritten. The three PQC standards did not each redefine a hash function; they all point at one document that has withstood more than a decade of scrutiny, and any erratum or revision to FIPS 202 propagates along the reference chain. It also means that assessing the completeness of a PQC implementation requires a dependency list that goes beyond 203/204/205 — the FIPS 202 (and FIPS 180-4) beneath them are compliance objects too.
Conversely, this explains why hash functions are always standardized first: they are the foundation under every algorithm above. When Keccak won in 2012, post-quantum standardization had not yet begun; but it was this foundation, laid in advance, that the three standards of 2024 could stand on directly.
Names and strength: the numbers after SHAKE
The numbers in the names SHAKE128 and SHAKE256 mark their designed security-strength magnitudes: the former is designed for up to roughly 128-bit, the latter up to roughly 256-bit security strength, tied directly to the choice of the “capacity” parameter in the sponge construction. This explains a common pairing across the three PQC standards: lower-security-category parameter sets mostly use SHAKE128 for expansion-type tasks, while steps bound directly to security strength — key derivation, challenge generation — uniformly use SHAKE256 or the longer-output variants of SHA3. When a standard deliberately specifies SHAKE256 for a particular step, it usually means that step’s security strength must not be capped by the hashing step.
The calls the three standards make on the hash functions are also carefully choreographed: the same function appears at different steps with different input splicings, and domain-separation bytes ensure that one step’s output cannot be mistaken for another step’s input — a pattern of “one function, many uses, strongly isolated between uses” that marries the sponge’s flexibility to standards discipline. After FIPS 202, NIST further expanded the sponge into a toolbox of derived functions in SP 800-185, defining the customisable cSHAKE, the keyed KMAC, the parallelisable ParallelHash and others. These derived functions are not part of the FIPS 202 body, yet all are built on the permutation it defines — further evidence of how foundation standards grow: the body stays lean, and the family expands around it.
Conclusion
FIPS 202 is the kind of standard rarely mentioned on its own yet present everywhere. One extra look at the reference list of a PQC standard explains why lattice sampling and expansion take the shape they do. Next time you meet a notation such as “SHAKE128(x, 32)” in FIPS 203, it is worth remembering what it points to: a standard from 2015, a competition begun in 2007, and the way the whole standards system is built — layer upon layer of references, mutually supporting.
Tags: FIPS 202SHA-3SHAKEreading the standard