SPHINCS-SHA-256-256f-Simple-R2
Stateless hash-based signatures with 36 round 2 parameter choices across three hash functions
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-256-256f-Simple-R2
SPHINCS-SHA-256-256f-Simple-R2 is one of 36 SPHINCS+ (round 2) variants in the NextSSL registry, a digital signature scheme. It uses a 64-byte public key, a 128-byte secret key and a 1–49,216-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 a stateless hash-based signature whose security depends only on hash function properties. The round 2 record covers 36 parameter choices across Haraka, SHA-2 and SHAKE256, at three levels, in fast and small settings.
SPHINCS+ is a stateless hash-based signature. It uses a hypertree of Merkle trees authenticated by one-time signatures, combined with a few-time signature scheme called FORS to sign the message digest. Because it relies only on the security of its hash functions, it avoids number-theoretic and lattice assumptions, which makes it the conservative choice in the signature family.
The round 2 record covers 36 combinations of three hash functions (Haraka, SHA-256 and SHAKE256), three security levels, fast and small settings, and robust or simple tweakable hashing. Across the listed records, public keys are 32, 48 or 64 bytes depending on the level. Signatures for the small setting are about half the size of the fast setting at the same level, while the fast setting signs faster. At 128 bits the fast sets give signatures of up to 16976 bytes and the small sets up to 8080 bytes.
SPHINCS+ was standardised by NIST as SLH-DSA in FIPS 205 with the SHA-2 and SHAKE instantiations, so the round 2 Haraka and SHA-2 sets here are research records. The round 2 entries are unverified in NextSSL. Those sizes make the small setting the choice for bandwidth-bound uses, and the fast setting the choice where signing latency matters.
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
- KeyGen generates random seeds and builds the top of a hypertree of Merkle trees, whose root is the public key.
- Sign selects a leaf for the message digest, produces a FORS signature over that digest, and authenticates it up the hypertree.
- Verify recomputes the roots from the signature and checks them against the public key.
Security notes
The security argument relies only on the hash functions, which is a conservative assumption. The round 2 parameters were later revised for standardisation, so the NextSSL records are unverified research entries.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 64 | Public key |
| sk | 128 | Secret key |
| sig | 1 – 49,216 | 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-sha256-256f-simple-r2", None, outs=2)
sig = root.call("sign_detached", "sphincs-sha256-256f-simple-r2", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "sphincs-sha256-256f-simple-r2", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("sphincs-sha256-256f-simple-r2", NULL, pk, sk);
nextssl_root_sign_detached("sphincs-sha256-256f-simple-r2", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("sphincs-sha256-256f-simple-r2", 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-sha256-256f-simple-r2", &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 2) variants
35Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is SPHINCS-SHA-256-256f-Simple-R2?
SPHINCS-SHA-256-256f-Simple-R2 is a signature in the SPHINCS+ (round 2) family. SPHINCS+ is a stateless hash-based signature whose security depends only on hash function properties.
What are the SPHINCS-SHA-256-256f-Simple-R2 sizes?
In NextSSL, SPHINCS-SHA-256-256f-Simple-R2 uses: public key 64 bytes, signature 1 to 49,216 bytes.
Is SPHINCS-SHA-256-256f-Simple-R2 post-quantum?
Yes. SPHINCS-SHA-256-256f-Simple-R2 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-256-256f-Simple-R2 and when?
SPHINCS-SHA-256-256f-Simple-R2 belongs to the SPHINCS+ (round 2) family, first published in 2017 by Daniel J. Bernstein, Andreas Hulsing, Stefan Kolbl, Ruben Niederhagen, Joost Rijneveld, Peter Schwabe. Its origin: NIST PQC standardisation, round 2 submission.
Is SPHINCS-SHA-256-256f-Simple-R2 safe to use?
SPHINCS-SHA-256-256f-Simple-R2 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 2) variants are there?
NextSSL also registers sphincs-haraka-128f-robust-r2, sphincs-haraka-128f-simple-r2, sphincs-haraka-128s-robust-r2, sphincs-haraka-128s-simple-r2, sphincs-haraka-192f-robust-r2, sphincs-haraka-192f-simple-r2 and more in the SPHINCS+ (round 2) family.
Related families
Hierarchical Signature System: multi-level LMS trees for larger signature budgets
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
SPHINCS+ (Round 3)The Round 3 stateless hash-based signature, predecessor of SLH-DSA
SPHINCS+ (round 1)Round 1 stateless hash-based signatures using Haraka and SHAKE256 at three levels