SPHINCS-SHA-2-256f-Simple
The Round 3 stateless hash-based signature, predecessor of SLH-DSA
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About SPHINCS-SHA-2-256f-Simple
SPHINCS-SHA-2-256f-Simple is one of 12 SPHINCS+ (Round 3) variants in the NextSSL registry, a digital signature scheme. It uses a 64-byte public key, a 128-byte secret key and a 49,856-byte signature. It is designed to resist attacks by large quantum computers. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
SPHINCS+ is the stateless hash-based signature scheme NIST selected in 2022 and standardised, with modifications, as SLH-DSA in FIPS 205. This family preserves the third-round simple variants.
SPHINCS+ builds a large hypertree of Merkle trees whose leaves are WOTS+ one-time keys, and signs message digests with the FORS few-time scheme at the bottom layer. Signatures pick a leaf pseudorandomly from the message, so the signer keeps no state. It improved on the 2015 SPHINCS design with tweakable hash functions, multi-target attack protection and verifiable index selection, which together reduce signature size.
Round 3 defined robust and simple tweakable hash constructions; FIPS 205 kept only the simple form. SLH-DSA also changed details of message hashing, the use of SHA-512 at higher security levels for the SHA-2 instantiations, and domain separation, so Round 3 SPHINCS+ signatures are not interchangeable with SLH-DSA. Twelve simple variants are present: SHA-2 and SHAKE at 128, 192 and 256-bit security, each in a small-signature (s) and fast-signing (f) form.
History
2015–2025Original SPHINCS published at EUROCRYPT
NIST 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
Standardised as SLH-DSA in FIPS 205
HQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- A hypertree of Merkle trees is derived from secret seeds; its top root forms the public key.
- Each signature uses a FORS instance chosen from a randomised message digest.
- WOTS+ signatures authenticate tree roots layer by layer up the hypertree.
- The verifier recomputes roots along the path and checks the final root.
Security notes
Superseded by SLH-DSA; use FIPS 205 for new systems. A 2022 analysis showed that using SHA-256 in some functions of the Round 3 SHA-2 parameters at categories 3 and 5 gave less security than claimed; FIPS 205 addressed this by using SHA-512 in those positions.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 64 | Public key |
| sk | 128 | Secret key |
| sig | 49,856 | Signature |
| seed | 0 | Seed |
| ctx | 0 | Context string |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, sk = root.call("sign_keygen", "sphincs-sha2-256f-simple", None, outs=2)
sig = root.call("sign_detached", "sphincs-sha2-256f-simple", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "sphincs-sha2-256f-simple", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("sphincs-sha2-256f-simple", NULL, pk, sk);
nextssl_root_sign_detached("sphincs-sha2-256f-simple", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("sphincs-sha2-256f-simple", 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::Any, "sphincs-sha2-256f-simple", &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 SPHINCS+ (Round 3) variants
11Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is SPHINCS-SHA-2-256f-Simple?
SPHINCS-SHA-2-256f-Simple is a signature in the SPHINCS+ (Round 3) family. SPHINCS+ is the stateless hash-based signature scheme NIST selected in 2022 and standardised, with modifications, as SLH-DSA in FIPS 205.
What are the SPHINCS-SHA-2-256f-Simple sizes?
In NextSSL, SPHINCS-SHA-2-256f-Simple uses: public key 64 bytes, signature 49,856 bytes.
Is SPHINCS-SHA-2-256f-Simple post-quantum?
Yes. SPHINCS-SHA-2-256f-Simple is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed SPHINCS-SHA-2-256f-Simple and when?
SPHINCS-SHA-2-256f-Simple belongs to the SPHINCS+ (Round 3) family, first published in 2017 by Daniel J. Bernstein, Andreas Hülsing, Stefan Kölbl, Ruben Niederhagen, Joost Rijneveld, Peter Schwabe, et al.. Its origin: NIST PQC Round 3 selection, superseded by SLH-DSA (FIPS 205).
Is SPHINCS-SHA-2-256f-Simple safe to use?
SPHINCS-SHA-2-256f-Simple is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other SPHINCS+ (Round 3) variants are there?
NextSSL also registers sphincs-sha2-128f-simple, sphincs-sha2-128s-simple, sphincs-sha2-192f-simple, sphincs-sha2-192s-simple, sphincs-sha2-256s-simple, sphincs-shake-128f-simple and more in the SPHINCS+ (Round 3) family.
Related families
The NIST Merkle–Damgård hash family behind most of today's TLS, signatures and software
CRYSTALS-Dilithium (Round 3)The Round 3 submission of Dilithium, predecessor of the ML-DSA standard
LMSLeighton-Micali stateful hash-based signatures, standardised in RFC 8554 and SP 800-208
SLH-DSAStateless hash-based signatures standardised in FIPS 205, relying only on hash functions
SHAKEThe extendable-output functions of FIPS 202, producing any length of output from Keccak