Skip to content

SLH-DSA / SPHINCS+

Hash-based signatures Β· NIST FIPS 205

Generate a stateless post-quantum keypair, sign a message, and explore the WOTS+ chains, FORS forests, and XMSS hypertree behind the signature. SLH-DSA hashes Merkle tree nodes with SHA-256 in the 128-bit sets and SHA-512 in the 256-bit sets.

Key terms in plain English (open before you start)
WOTS+
A one-time signature. One key signs exactly one message safely; sign a second time and an attacker can forge. You will break one yourself in step 2.
FORS
A few-time signature ("Forest Of Random Subsets"). Unlike WOTS+, it degrades gracefully when a key is reused β€” that is what lets SLH-DSA be stateless.
XMSS
A Merkle tree of many WOTS+ keys with one shared public root, so thousands of one-time keys hide behind a single short public key.
Hypertree
XMSS trees stacked in d layers β€” each tree's root is signed by a leaf of the tree above it. The very top root is PK.root, which FIPS 205 publishes together with the public seed PK.seed as the SLH-DSA public key.
Authentication path
The list of sibling hashes you combine, level by level, to climb from one leaf to the root and prove the leaf belongs to the tree.
Nibble
Half a byte β€” 4 bits, a value 0–15. WOTS+ signs the message hash one nibble at a time.
base_2b
The FIPS 205 routine that slices the message digest into the integer indices that pick which FORS leaf each tree reveals.

Generate & Sign

Verify

After signing, verify the signature to confirm authenticity.

Tamper Test

Flip a single byte to see verification fail.

Draft SLH-DSA tradeoff: signatures per key

NIST SP 800-230, initial public draft (13 April 2026) proposes six additional limited-use parameter sets with smaller signatures and faster verification, subject to a 2²⁴-signature lifetime limit per key. The comment period closed 12 June; this is still a draft, not general-purpose approval.

This calculator assumes balanced allocation and counts every signing operation, not just unique messages. Replicas sharing a key share its budget; they are not independent keys. It is not a durable usage counter. The signing controls above still run the existing FIPS 205 parameter sets, not these draft variants.

PQ Chooser keeps draft variants outside its executable size and performance rankings.