← Back to section · Post-Quantum Cryptography
FORS: The One-Time Signature You May Use a Few Times — SLH-DSA's Last Stateless Puzzle Piece
The hypertree authenticates and WOTS+ signs layer by layer, but what touches the message itself? FORS signs the digest with a forest of small hash trees and deliberately tolerates a little reuse. This article explains its structure, why reuse is survivable, and how it closes the stateless loop.
In SLH-DSA, the hypertree authenticates and WOTS+ signs layer by layer, but one question remains: what signs the message itself? The bottom-layer leaf is chosen by the message digest, so if a WOTS+ key handled the digest directly, an accidental index repeat would mean a one-time key used twice. The component built for this spot is FORS (Forest of Random Subsets) — the most consequential invention SPHINCS+ added to earlier hash-based designs, and the direct reason the word “stateless” can be true at all.
Structure: a forest of small trees
A FORS key contains k independent small hash trees. Each tree has a set of leaves, every leaf corresponds to a secret value, and the leaf node is the hash of that secret. Unlike a Merkle tree, the FORS public key is not any single tree’s root: it is one hash taken over all k tree roots together.
To sign, the message digest — precisely, the portion of the digest reserved for FORS — is split into k segments. Each segment is read as an index selecting one leaf in the corresponding tree. The signature contains, for every tree, the selected leaf’s secret value plus the authentication path from that leaf to its tree root. The verifier hashes each secret to its leaf, climbs each path to recover every tree root, hashes the k roots together, and compares against the FORS public key to be signed — which a bottom-layer WOTS+ leaf of the hypertree then signs, completing the chain.
Why using it a few times is not fatal
Reuse is the cardinal sin of one-time signatures, yet FORS deliberately designs itself as a few-time signature. The reason is the granularity of leakage: signing one message leaks exactly one leaf’s secret per tree. To forge a new message, an attacker needs the new digest’s k indices to land, in every tree, on leaves that have already been leaked — only then can a signature be assembled tree by tree. If even one segment points at an unleaked leaf, the forgery stalls at that tree.
The more messages signed, the larger the leaked fraction in each tree, and the higher the forgery probability climbs — but it starts from almost nothing: with thousands of leaves per tree, a handful of signatures leaks only a handful of leaves, and the chance that all k indices simultaneously hit leaked leaves is exponentially small. The FIPS 205 parameter choices keep that probability below the security target across an astronomical number of signatures. In other words, FORS trades the hard constraint “never reuse, ever” for the soft constraint “a few reuses are probabilistically irrelevant” — and that margin is exactly what statelessness needs.
Closing the stateless loop: the digest picks the leaves
Now the SLH-DSA stateless mechanism can be assembled in full. When signing, the algorithm first derives a randomizer R from a PRF seed in the private key and randomness, then key-hashes the message together with R, the public seed, and the public root to obtain a digest and indices: one part of the digest goes to FORS to sign, another part decides which bottom-layer hypertree leaf signs the FORS public key. The indices are derived deterministically from message and key — across different messages under one key, they scatter almost randomly over an enormous leaf space.
So the flow contains no counter anywhere: nothing records “how many signatures so far”, and backups, restores, VM snapshot rollbacks, and two machines signing at once are all harmless. If two messages occasionally land on the same FORS leaf or the same hypertree leaf, that is merely one “few-time reuse” in the FORS sense, with the probability budget already accounted for. Stateful schemes such as XMSS and LMS, by contrast, must enforce “never use a one-time key twice” as an operational law; SLH-DSA dissolves that law into probability.
Two knobs: how many trees, and how tall each one is
FORS’s design space is governed by two quantities: the number of trees k, and the leaf count of each tree. Splitting the digest into k segments creates k conditions that must be hit simultaneously — the larger k, the longer the combination a forger must assemble, and the thinner each signature’s leakage is spread. The more leaves per tree, the lower the fraction of any one tree that has been “touched” after the same number of signatures. Together they set the curve along which the security margin decays as signatures accumulate.
Both knobs press directly on signature size: the FORS portion of a signature is roughly k times (one secret value plus one authentication path), and path length grows with tree height. Many tall trees give a comfortable margin but a rapidly swelling signature; few short trees keep signatures small but let the margin decay with reuse too steeply to accept. The FORS configuration in each FIPS 205 parameter set is a chosen balance point on this curve for its level: the higher the level and the larger the expected total number of signatures, the wider the budget left for probabilistic decay. This is also why FORS parameters cannot be fixed once and for all the way WOTS+‘s w is — they must be designed jointly with the hypertree’s total capacity and the target security level, one decision moving all the others.
The price is equally clear: a FORS signature carries k secret values and k paths, a non-trivial slice of the total signature, and FORS security arguments are subtler than those for one-time signatures, resting on rigorous bounds for reuse probability. But it is precisely this “usable a few times” component that freed hash-based signatures from the state problem for the first time, turning them into a general-purpose signature scheme that can be standardized and deployed anywhere.
Sources and further reading
- Bernstein et al., SPHINCS+ Specification (FORS structure and security bounds). https://sphincs.org/
- NIST, FIPS 205: Stateless Hash-Based Digital Signature Standard, 2024. https://doi.org/10.6028/NIST.FIPS.205
- On this site: “WOTS+: One-Time Signatures Built from Hash Chains”; “The Hypertree: How SLH-DSA Stacks Many Hash Trees into One”
Tags: SLH-DSAFORSfew-time signaturesstateless