SLH-DSA-SHAKE-256f
Stateless hash-based signatures standardised in FIPS 205, relying only on hash functions
About SLH-DSA-SHAKE-256f
SLH-DSA-SHAKE-256f is one of 12 SLH-DSA variants in the NextSSL registry, a digital signature scheme. It uses a 64-byte public key, a 128-byte secret key, a 49,856-byte signature, a 96-byte seed and a 0–255-byte context string. It takes the parameter deterministic (default 0). Its registry entry cites FIPS 205. It is also known as slhdsashake-256f. It is designed to resist attacks by large quantum computers. NextSSL lists it in the safe tier and exposes it through the safe API.
Overview
SLH-DSA is the Stateless Hash-Based Digital Signature Algorithm standardised by NIST in FIPS 205, derived from SPHINCS+. Its security depends only on properties of the underlying hash function, making it the most conservative of the NIST post-quantum signatures.
SLH-DSA combines three hash-based building blocks. WOTS+ one-time signatures sign the roots of Merkle trees; these trees are stacked into a hypertree whose top root is the public key; and at the bottom a FORS few-time signature signs a digest of the message. The leaf used for each signature is chosen pseudorandomly from the message, so no state needs to be stored between signatures, unlike LMS or XMSS.
Because it relies only on second-preimage and related properties of SHA-2 or SHAKE, SLH-DSA is a hedge against unexpected advances in the cryptanalysis of lattices. The cost is size and speed: signatures range from about 7.9 KB to 49.9 KB, and signing is much slower than ML-DSA, although public keys are tiny at 32 to 64 bytes. Verification is fast in all cases.
Twelve parameter sets are present, covering SHA-2 and SHAKE instantiations at security categories 1, 3 and 5 (128, 192, 256). The s variants produce smaller signatures with slower signing; the f variants sign faster with larger signatures. Public keys consist of a 16-, 24- or 32-byte public seed plus a tree root of the same length, and FIPS 205 also defines a pre-hash variant, HashSLH-DSA.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationSPHINCS+ submitted to NIST PQC
26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationSPHINCS+ selected by NIST
SLH-DSA published as FIPS 205
HQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- KeyGen derives a hypertree of Merkle trees from secret seeds; the public key is the top root plus a public seed.
- Sign computes a randomised message digest that selects a FORS instance and a leaf path in the hypertree.
- The FORS signature covers the digest, and WOTS+ signatures authenticate each tree root up to the top.
- Verify recomputes the chain of roots from the signature and compares with the public key.
Security notes
SLH-DSA has the most conservative security assumption of the NIST signatures. Large signatures and slow signing limit its use in latency-sensitive protocols; fault attacks on signing can leak one-time key material, so hardened implementations matter in hostile environments.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 64 | Public key |
| sk | 128 | Secret key |
| sig | 49,856 | Signature |
| seed | 96 | Seed |
| ctx | 0 – 255 | Context string |
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| deterministic | u32 | 0 – 1 | 0 | no |
Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
pk, sk = ns.call("sign_keygen", "slh-dsa-shake-256f", None, outs=2)
sig = ns.call("sign_detached", "slh-dsa-shake-256f", None, sk, b"message", b"")[0]
ok = ns.check("verify_detached", "slh-dsa-shake-256f", None, pk, b"message", b"", sig)
nextssl_sign_keygen("slh-dsa-shake-256f", NULL, pk, sk);
nextssl_sign_detached("slh-dsa-shake-256f", NULL, sk, msg, ctx, sig);
nextssl_verify_detached("slh-dsa-shake-256f", NULL, pk, msg, ctx, sig);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_sign_in(reg::all(), Policy::Safe, "slh-dsa-shake-256f", &Params::new())?;
let (pk, sk) = alg.keygen(&mut *rng)?;
let sig = alg.sign(&sk, b"message")?;
let ok = alg.verify(&pk, b"message", &sig)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other SLH-DSA variants
11Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is SLH-DSA-SHAKE-256f?
SLH-DSA-SHAKE-256f is a signature in the SLH-DSA family. SLH-DSA is the Stateless Hash-Based Digital Signature Algorithm standardised by NIST in FIPS 205, derived from SPHINCS+. It is also known as slhdsashake-256f.
What are the SLH-DSA-SHAKE-256f sizes?
In NextSSL, SLH-DSA-SHAKE-256f uses: public key 64 bytes, signature 49,856 bytes.
Is SLH-DSA-SHAKE-256f post-quantum?
Yes. SLH-DSA-SHAKE-256f is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is safe.
Who designed SLH-DSA-SHAKE-256f and when?
SLH-DSA-SHAKE-256f belongs to the SLH-DSA family, first published in 2024 by Daniel J. Bernstein, Andreas Hülsing, Stefan Kölbl, Ruben Niederhagen, Joost Rijneveld, Peter Schwabe, et al. (SPHINCS+ team). Its origin: NIST PQC standard (FIPS 205).
Which standards define SLH-DSA-SHAKE-256f?
SLH-DSA-SHAKE-256f is referenced by FIPS 205. It is specified in a FIPS standard.
Is SLH-DSA-SHAKE-256f safe to use?
SLH-DSA-SHAKE-256f is in the safe tier. Modern and recommended. The default choice for new designs. It can be called from the safe API.
What other SLH-DSA variants are there?
NextSSL also registers slh-dsa-sha2-128f, slh-dsa-sha2-128s, slh-dsa-sha2-192f, slh-dsa-sha2-192s, slh-dsa-sha2-256f, slh-dsa-sha2-256s and more in the SLH-DSA family.
Related families
The NIST Merkle–Damgård hash family behind most of today's TLS, signatures and software
HSSHierarchical Signature System: multi-level LMS trees for larger signature budgets
LMSLeighton-Micali stateful hash-based signatures, standardised in RFC 8554 and SP 800-208
ML-DSANIST's primary post-quantum signature scheme, standardised in FIPS 204
SPHINCS+ (Round 3)The Round 3 stateless hash-based signature, predecessor of SLH-DSA
SHAKEThe extendable-output functions of FIPS 202, producing any length of output from Keccak