← Back to section · Standards & Specifications

FIPS 204 and FIPS 205: Why Two Signature Standards Look Completely Different

Reading ML-DSA's two-layer internal/external function structure side by side with SLH-DSA's multi-layer tree assembly: how signature standards translate their mathematical constructions into implementable specification text.

Published 22 November 2026 · 6 min read · PQ Frontier

FIPS 204 and FIPS 205: Why Two Signature Standards Look Completely Different
AI-generated site artwork
Video explainer · Algorithm Standards: the lattice behind parameters

FIPS 204 and FIPS 205 were published on the same day, 13 August 2024, and both are digital signature standards. Yet place the two texts side by side and the structural difference is obvious at a glance: one organizes its chapters around algebraic operations on lattices, the other reads like a multi-layer assembly manual. The root of the difference is not editorial style but the shape of the two mathematical constructions themselves — the standard text must faithfully draw the layers of the construction.

FIPS 204: the two-layer split of external and internal functions

The ML-DSA standard text cuts the signature scheme into two layers. The internal functions (such as ML-DSA.Sign_internal) operate directly on the already-processed message representative μ and also take a 32-byte random value rnd as input; this layer is the pure algorithmic core: matrix expansion, mask sampling, the rejection-sampling loop and hint generation all live here. The external functions are the interface applications actually call: they assemble μ from the raw message and a context string (a string of 0 to 255 bytes), generate or fix rnd, and hand over to the internal functions.

This split is not formalism. The context string makes signatures produced by the same key in different protocols naturally isolated from each other; the handling of rnd lets the standard accommodate two signing styles at once: the default “hedged” signing uses fresh randomness every time, while an all-zero rnd degenerates to deterministic signing. By isolating randomness and message preprocessing in the external layer, the internal core can be tested independently and checked against known answers on its own.

FIPS 204 also devotes a section to the pre-hash mode, HashML-DSA: the application first computes the message digest and then submits it together with the identifier of the hash algorithm. The standard requires the OID of the hash algorithm to be encoded into the signed data, forming domain separation — a signature made in pure mode can therefore never impersonate one made in pre-hash mode. The section is short, but it is the part protocol designers consult most often.

FIPS 205: a multi-layer assembly manual

The SLH-DSA construction is assembled: at the bottom are the one-time signature WOTS+ and the few-time signature FORS, in the middle are Merkle trees, and at the top is a multi-layer hypertree. The text of FIPS 205 can only be written along this shape: first define the tunable parameters of the hash function family (address formats, how the compression function is invoked), then define the chain functions and key derivation of WOTS+, then the trees and signatures of FORS, and only then spell out the number of layers, the height of each layer and the index splitting of the hypertree.

The parameter table grows accordingly: SLH-DSA has 12 approved parameter sets, the combinations of three dimensions — hash function family (SHA2 or SHAKE), security level (128, 192 or 256) and orientation (s for small signatures and slower signing, f for fast signing and large signatures). The standard uses a naming rule so that a name like “SLH-DSA-SHA2-128s” itself carries all the parameter information. Signature sizes range from about 7.9 KB to about 49.8 KB, and the standard text must list them set by set — for implementers, looking up the table matters more than deriving anything.

Notably, FIPS 205 also specifies pure and pre-hash modes (HashSLH-DSA), and its context-string mechanism is aligned with FIPS 204. At the “interface layer” the two standards deliberately stay consistent; at the “core layer” each remains faithful to its own mathematical construction.

The composition of the signature itself: two texts, two “parts lists”

A signature standard’s text must also specify, item by item, the internal composition of the signature value, because the verifier has to slice it by a fixed layout. An ML-DSA signature is assembled from three parts: the challenge hash c̃ (derived from the message and the commitment), the response vector z, and the hints h; the lengths of all three are determined by the parameter set, and verification first splits them by the layout, then performs range checks and equality verification separately. FIPS 204 gives exact rules for the encoding order and byte counts of these three parts.

An SLH-DSA signature, by contrast, is a sequence of component signatures: first the random value R, then the FORS signature (private elements and authentication paths of several trees), then the WOTS+ signature and authentication path of each hypertree layer. Different parameter sets have different numbers of layers and trees, and the total signature length changes accordingly. FIPS 205 uses a table to list, for every parameter set, the length of each segment of the signature — a verifying implementation does not need to understand the whole tree to first slice the byte stream correctly. This is the inevitable form of an “assembled construction” on paper: the assembly drawing must come with a complete parts list.

Key formats: the trade-off between seeded and fully expanded

The two standards make the same decision on key representation: the standard form of the private key is centred on a short seed. The standard representation of an ML-DSA private key is a 32-byte seed, from which the full private key is deterministically expanded; the public key is fully encoded (containing the seed ρ and the vector t1). An SLH-DSA private key consists of two seeds (SK.seed and SK.prf), and its public key is the combination of a seed and the hypertree root node.

This “the seed is the private key” style has three benefits: the format for backup and import/export is tiny and unique; key generation is reproducible, easing test-vector checking; and whatever expanded form an implementation caches internally does not affect key migration across implementations. The standards also allow implementations to store the expanded form, but cross-system exchange must return to the seed form — the boundary between interface and storage is drawn by the text exactly here.

A shared writing convention: the naming of internal functions

One more commonality is easy to overlook: both standards define internal-function variants with suffixes (such as Sign_internal) for their algorithms, and write “how the external interface calls the internal functions” as formal clauses. SLH-DSA’s internal functions receive the already-assembled message representative and the random addend directly, while ML-DSA’s internal functions receive μ and rnd. This consistency in naming and layering conventions lets testing laboratories apply one and the same methodology to both constructions: known-answer tests against the internal functions, interface-behaviour tests against the external ones. Stylistic unity across standards is itself a way of lowering costs for the whole validation ecosystem.

Conclusion

Reading the two signature standards side by side reveals a general rule: the structure of a standard’s text is the structure of the algorithm’s construction. The two-layer split of FIPS 204 serves the separation of interface and core; the layer-by-layer assembly of FIPS 205 serves component reuse and layer-by-layer verification. When reading a standard, looking first at how it is layered often gives a faster grip on the whole than starting with the formulas.

Tags: FIPS 204FIPS 205ML-DSASLH-DSA