← Back to section · Post-Quantum Cryptography
SLH-DSA: The Conservative, Hash-Only Signature (FIPS 205)
How SPHINCS+ turns hash trees into a stateless signature scheme: twelve parameter sets, signatures of tens of kilobytes, and the use cases it is built for — offline roots and firmware.
Among NIST’s three post-quantum signature standards, SLH-DSA is the insurance policy: if the mathematical assumptions behind lattice cryptography are ever weakened, a scheme that trusts only hash functions still stands. That conservatism is not free — it trades signature size and speed for purity of assumptions.
From hash trees to stateless signatures
Hash-based signatures have an old problem: the original Lamport one-time signature can sign exactly once per key. XMSS and LMS organize many one-time keys into a Merkle tree, but demand that the signer maintain state rigorously — roll back a counter, reuse one one-time key, and security collapses. Backups, VM snapshots and hot standbys all threaten state, which makes stateful schemes an operational minefield.
SLH-DSA, derived from SPHINCS+, removes the counter: a deep, wide hypertree plus a few-time signature scheme (FORS) at the leaves makes the key space so large that picking a fresh leaf at random is safe. The result is stateless — back it up, clone it, restore it; nothing breaks. FIPS 205 was published on 13 August 2024 together with FIPS 203 and 204.
How four components stack into a hypertree
SLH-DSA’s internals decompose into four components, best read bottom-up. At the bottom is the WOTS+ one-time signature: hash chains sign a message digest, each key still signs exactly once, but the chain structure lets a verifier recompute the public key from the signature and check it. Above it sits the XMSS tree: 2^h WOTS+ public keys become the leaves of a Merkle tree whose root is that tree’s public key, good for 2^h signatures. Above that is the hypertree: several XMSS layers stacked, where each lower tree’s root is signed by one leaf of the tree above, so the total signature capacity is the product of the layers — an astronomical number. On the outside sits FORS, the few-time signature scheme: FORS signs the message digest first, and its public key is then signed by a leaf at the hypertree’s bottom layer.
A complete signature’s size is simply the sum of these four layers’ authentication paths — which is why signatures are measured in tens of kilobytes: a signature is a bundle of dozens of Merkle authentication paths. The same decomposition is what makes the scheme auditable: there is no mathematical structure anywhere beyond hash functions, and security reduces layer by layer to collision and preimage resistance of the hash.
Choosing among twelve parameter sets
Parameters combine three axes: the hash function (SHA2 or SHAKE), the security level (128/192/256 bits), and the size/speed trade-off (s = small signatures, slower; f = fast, larger signatures).
| Representative set | Public key | Signature | Character |
|---|---|---|---|
| SLH-DSA-SHA2-128s | 32 B | 7,856 B | Smallest signatures, slowest signing |
| SLH-DSA-SHA2-128f | 32 B | 17,088 B | Speed-first at 128 bits |
| SLH-DSA-SHA2-192s | 48 B | 16,224 B | 192-bit level, small signatures |
| SLH-DSA-SHA2-256s | 64 B | 29,792 B | High security, compact |
| SLH-DSA-SHA2-256f | 64 B | 49,856 B | Signatures near 50 KB |
The tiny public key is an underrated virtue: keys burned into ROM, printed on paper, or embedded in minimal boot code have exactly one realistic post-quantum option. Verification is acceptably fast (milliseconds); it is signing that is slow — and in SLH-DSA’s home territory, signing is rare by design.
Keys small enough to store as seeds
A second underrated fact is that the private key is tiny as well. The public key consists of a public seed plus the tree root — 2n bytes; the private key adds two more seeds, 4n bytes in total: at the 128-bit level, 32-byte public keys and 64-byte private keys, and even at 256 bits only 64 and 128 bytes. The hypertree itself is never stored anywhere: at signing time, the needed nodes are regenerated from the seeds on demand. This is the deep difference from stateful schemes — they must anxiously track “how far have we got”, while SLH-DSA guards a few dozen bytes of seed and has no state to lose.
The price is paid at signing time: every signature recomputes a large number of hashes from scratch (the root of the slow signing — hash calls number in the tens of thousands), while verification only retraces authentication paths to the root and stays fast. Slow signing, acceptable verification, minuscule keys — this asymmetric profile is nearly enough, on its own, to write the use-case list below.
Randomized signing
When signing, SLH-DSA randomizes the message digest: a random value is mixed into the digest computation, and the digest then determines which FORS and hypertree leaves get used. That value may be derived deterministically from the private key and message, or mixed with fresh randomness. It means signing the same message twice with the same key yields different signatures, and it blunts fault attacks — an attacker cannot precompute leaf positions for targeted injection. One implementation note: if fresh randomness is chosen, security once again rests on the quality of the random source — the same class of problem flagged in our ML-KEM article.
Pure mode, pre-hashing, and the choice of hash
Like FIPS 204, FIPS 205 offers two usage modes: the pure mode signs the raw message, while pre-hash mode (HashSLH-DSA) permits a prescribed external hashing step first, under a separate domain-separation prefix; the two modes’ signatures are not interchangeable in verification. For objects as large as firmware images, pre-hashing spares the signing device from ingesting the entire image — a real convenience, provided the protocol records explicitly which mode was used, or verification will fail to line up.
The SHA2-versus-SHAKE choice in the parameter names carries an engineering meaning too: the SHA2 family rides on the widespread hardware acceleration and ready implementations of SHA-256, while the SHAKE family offers consistency with the standard’s other internal constructions. Signature sizes are identical between the families at a given security level, so the choice turns on the target platform’s existing hash implementations and certification requirements, not on security.
Where it fits
- Offline root CAs and code-signing roots — sign a handful of times a year; statelessness makes cold backups and disaster recovery safe instead of dangerous;
- Firmware and boot chains — minimal public keys, verification needs only a hash function, the smallest possible attack surface;
- Long-lived archival signatures — legal records and evidence that must verify in thirty years without betting on lattice assumptions.
Where it does not fit: high-frequency online signing (TLS handshakes, per-request signatures), where size and latency rule it out — that is ML-DSA’s ground. The working rule: ML-DSA for online signing, SLH-DSA as the hedge for offline roots and long-lived signatures — exactly why CNSA 2.0 names both for firmware.
Sources and further reading
- NIST, FIPS 205: Stateless Hash-Based Digital Signature Standard, 2024-08-13. https://doi.org/10.6028/NIST.FIPS.205
- Bernstein et al., SPHINCS+ Specification (submission to NIST PQC). https://sphincs.org/
- On this site: “ML-DSA Explained: NIST’s Post-Quantum Digital Signature Standard (FIPS 204)”
Tags: SLH-DSAFIPS 205hash-based signaturesSPHINCS+