SLH-DSA

Also known as: Stateless Hash-Based Digital Signature Algorithm · SPHINCS+ · FIPS 205

On this page 8

SLH-DSA, the Stateless Hash-Based Digital Signature Algorithm, is the post-quantum digital signature scheme standardized by NIST in FIPS 205 in August 2024, derived from the SPHINCS+ submission. In quantum security and the wider field of quantum computing, it stands out because its security rests only on the properties of hash functions, with no number-theoretic or lattice assumption that a future quantum algorithm could break.

The price of that conservative design is size and speed: signatures range from about 7.8 KB to 49.9 KB, and signing is far slower than with lattice schemes. SLH-DSA is therefore positioned as a conservative backup to ML-DSA and as a strong choice for long-lived signatures where public keys must be tiny and trust must last for decades.

How SLH-DSA builds a signature from hash functions

SLH-DSA combines three hash-based building blocks into one hypertree structure. At the bottom, a few-time signature scheme called FORS (Forest of Random Subsets) signs a digest of the message. Above it, layers of Merkle trees whose leaves are WOTS+ one-time signature keys authenticate each lower layer, up to a single root that serves as the public key.

Signing proceeds in a fixed order. The signer computes a randomizer R from a secret seed and the message, hashes the message with R, and uses part of the result to select a pseudorandom leaf index in the hypertree. The rest of the digest picks secret values from the FORS trees, and each hypertree layer then signs the root of the layer below it.

The following table summarizes the role of each component and the hash property it relies on.

ComponentRole in the signatureSecurity relies on
WOTS+One-time signature on a tree rootSecond-preimage resistance of chains
FORSFew-time signature on the message digestPreimage resistance of leaves
XMSS-style treesAuthenticate many WOTS+ keys under one rootCollision-style resistance of tree hashing
HypertreeStacks d layers of trees into one public keyCombined properties of all layers
PRF and randomizerDerive secrets and the leaf indexPseudorandomness of the keyed hash
Components of an SLH-DSA signature

Why stateless matters

The word stateless distinguishes SLH-DSA from the earlier hash-based schemes XMSS and LMS, which NIST approves in SP 800-208. Those schemes must record which one-time keys have already been used, because reusing a one-time key leaks secret material and can enable forgery. Keeping that counter consistent across backups, clones and failovers is an operational burden.

SLH-DSA removes the counter by making the hypertree so large that random leaf selection is safe. With a total height of 63 to 68 levels, the chance that two signatures land on the same FORS instance is negligible, and FORS itself tolerates occasional reuse. NIST limits each key pair to at most 2^64 signatures, a ceiling that no realistic deployment approaches.

Parameter sets, sizes and security categories

FIPS 205 defines 12 approved parameter sets: three security levels, two hash families (SHA-2 and SHAKE) and two trade-off profiles. The s variants (small) produce shorter signatures but sign slowly, while the f variants (fast) sign quickly at the cost of much larger signatures. The sizes below are identical for the SHA-2 and SHAKE versions.

Parameter setNIST categoryPublic keyPrivate keySignature
SLH-DSA-128s132647,856
SLH-DSA-128f1326417,088
SLH-DSA-192s3489616,224
SLH-DSA-192f3489635,664
SLH-DSA-256s56412829,792
SLH-DSA-256f56412849,856
Key and signature sizes in bytes

Each parameter set fixes the hash output length n (16, 24 or 32 bytes), the total tree height h, the number of layers d, the Winternitz parameter (w = 16) and the FORS dimensions. Category 1 targets security comparable to AES-128 key search, category 3 to AES-192 and category 5 to AES-256. Signing time for the s variants is typically tens to hundreds of milliseconds on a modern processor, while verification remains fast in every variant.

SLH-DSA compared with other post-quantum signatures

SLH-DSA is one of three NIST signature standards, and each makes a different bet. ML-DSA (FIPS 204) and FN-DSA (the planned FIPS 206, based on Falcon) are lattice-based and much more compact, but they depend on the hardness of structured lattice problems, which are newer and less studied than hash functions.

SchemeHard problemTypical signature sizeState requiredMain strength
SLH-DSAHash function security7.8-49.9 KBNoMost conservative assumption
ML-DSAModule lattices2.4-4.6 KBNoBalanced speed and size
FN-DSANTRU latticesAbout 0.7-1.3 KBNoSmallest lattice signatures
XMSS and LMSHash function securityAbout 1-5 KBYesCompact hash-based signatures
How the main post-quantum signature options differ

The comparison shows the central trade-off: SLH-DSA buys assumption diversity with bandwidth. If a structural attack on lattices ever appeared, systems that already support SLH-DSA could switch without waiting for a new standard, which is why crypto-agility plans often include it.

Where to use SLH-DSA and how to configure it

SLH-DSA fits best where signatures are verified often but created rarely, and where a large signature costs little compared with the value of long-term trust. Firmware signing, root certificate authorities and software release signing match that profile well. High-volume protocols such as TLS handshakes generally do not, because every handshake would carry many kilobytes of extra data.

SituationRecommended choiceReason
Firmware or boot image signing128s or 192sRare signing, small public key in hardware
Root or long-lived CA keys192s or 256sDecades of trust justify higher category
Frequent signing on servers128f or ML-DSAs variants sign too slowly
Hardware with SHA-3 accelerationSHAKE variantsFaster hashing on that platform
Large messages or HSM limitsHashSLH-DSA pre-hash modeSigns a digest instead of the full message
Choosing an SLH-DSA configuration

FIPS 205 also allows hedged signing, in which fresh randomness is mixed into the randomizer, or a deterministic mode for platforms without a reliable random source. Hedged signing is generally recommended because it reduces exposure to fault and side-channel attacks while keeping security intact if the randomness is weak.

Limitations and common misconceptions

The scheme is conservative in theory, but deployments still face practical pitfalls. The most frequent ones are listed below.

  • Fault injection during signing can cause a one-time key in the hypertree to sign two different values, which can enable forgery; signing twice and comparing results is a common countermeasure.
  • Bandwidth and storage costs are real: a certificate chain with several SLH-DSA signatures can exceed 100 KB.
  • Stateless does not mean unlimited: the 2^64 signature limit per key still exists, even though it is rarely relevant.
  • Hash-based is not automatically quantum-proof at any size: Grover’s algorithm halves effective preimage security, which is why n is chosen with that loss in mind.
  • SPHINCS+ and SLH-DSA are not byte-compatible: FIPS 205 changed details such as domain separation, so round-3 SPHINCS+ implementations need updating.

Explained without jargon

A digital signature proves that a file really came from its author and was not changed. Many current signatures could be broken by a large future quantum computer. SLH-DSA is a replacement that relies only on hashing, the same basic tool that turns any file into a short fingerprint.

Think of it as a giant family tree of one-use seals. Each signature uses a randomly chosen seal and shows the chain of relatives that links it to the public key. Because the tree is enormous, the signer never needs to remember which seals were used. The trade-off is that each signature is bulky, about the size of a small photo thumbnail, so it suits documents and software updates better than fast, constant web traffic.

A typical use case

A manufacturer of industrial controllers expects its devices to stay in factories for 20 to 25 years, well past the date some analysts give for a cryptographically relevant quantum computer. The engineering team stores an SLH-DSA-128s public key of only 32 bytes in the boot read-only memory of each controller, where it can never be changed.

Every firmware release is signed once in an offline hardware security module, which takes well under a second. The 7,856-byte signature is attached to an update file of several megabytes, so the extra size is irrelevant. At boot, the controller verifies the image in a few milliseconds. The result is a root of trust that survives even if lattice cryptography is later weakened, with no signature counter to protect across backups of the signing system.