SysTutorials

SLH-DSA (SPHINCS+): Stateless Hash-Based Signatures

SLH-DSA (Stateless Hash-based Digital Signature Algorithm), standardized as FIPS 205 in August 2024, is the most conservative signature NIST standardized. Its security rests on nothing but the properties of hash functions, and it tracks no mutable state, which removes the single most dangerous failure mode in hash-based signing.

How it works

SLH-DSA signs with a hypertree of Merkle trees. The leaves are WOTS+ one-time signatures; a few-time signature scheme called FORS signs the message hash at the leaf; and layers of Merkle trees certify the whole stack up to a 32-byte public key. Signing walks a pseudo-randomly selected path through the hypertree and publishes everything needed to verify it.

Because the selection is pseudo-random, the signer never has to remember which one-time keys it has used. Earlier hash-based schemes such as XMSS walk their trees in a fixed order and must persist a counter: reusing a leaf under two different messages leaks enough key material to forge signatures. SLH-DSA trades signature size and speed for eliminating that failure mode entirely.

Parameter sets

Parameter setPublic keySignatureSigning speed
SLH-DSA-SHA2-128s32 B7,856 Bslow
SLH-DSA-SHA2-128f32 B17,088 Bfast
SLH-DSA-SHA2-192s48 B16,217 Bslow
SLH-DSA-SHA2-192f48 B35,660 Bfast
SLH-DSA-SHA2-256s64 B29,792 Bslow
SLH-DSA-SHA2-256f64 B49,856 Bfast

The s (small) variants minimize signature size at the cost of slow signing; the f (fast) variants reverse the trade. SHAKE (Keccak-based) variants exist alongside the SHA-2 ones. Security levels of 128, 192, and 256 bits all reduce to standard hash function properties: preimage and second-preimage resistance.

Where it fits

The costs are real, though: 8 to 50 KB signatures stress TLS handshakes, and signing can take tens of milliseconds to seconds. Where performance matters and the lattice assumption is trusted, ML-DSA or FN-DSA (Falcon) are the defaults; SLH-DSA is the insurance policy that survives a lattice break.

← All posts