K066 / Advanced and next-generation cryptography
SLH-DSA SPHINCS+
SLH-DSA is a stateless hash-based digital signature scheme.
CRYPTOGRAPHY LAB / K066
Cryptography Lab · SLH-DSA SPHINCS+
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
SLH-DSA SHA2-128 WOTS+ chain only (fixed address except hash counter)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- SLH-DSA is a stateless hash-based digital signature scheme. Source document ↗
- Classification and reversibility
- Asymmetric hash-based digital signature, not encryption/encoding; no decryption/decoding. Source document ↗
- Key or secret requirements
- Secret key sk for signing, public key pk for verification. Source document ↗
- Operating principle and structure
- Hash-based combination of WOTS+ one-time-key hypertree and FORS few-time signatures. Source document ↗
- Key size, block size and parameters
- FIPS 205 defines 12 sets by SHA2/SHAKE, security level and s/f choice, varying key/signature size. Source document ↗
- Security strength and recommendation
- NIST PQC standards published in 2024; organizations encouraged to begin PQ transition. Source document ↗
- Known attacks and vulnerabilities
- SLasH-DSA Rowhammer implementation/hardware attack reported; distinguish from cryptographic structural flaw. Source document ↗
- Standards and certification
- Standardized signature in NIST FIPS 205. Source document ↗
- Typical uses
- Integrity/authenticity of communications, documents and transactions, software updates, financial/government communications. Source document ↗
- Implementations, libraries and tools
- Libraries include Go trailofbits/go-slh-dsa. Source document ↗
- Decryption or decoding
- No decryption; verify with public key, message and signature. Source document ↗
- Advantages
- Simple security assumptions based on hashes, suitable for PQ signatures. Source document ↗
- Limitations and cautions
- Larger signatures than classical schemes increase storage/transmission overhead. Source document ↗
- Distinguishing encryption, encoding and hashing
- Digital signature, not encryption/encoding/hash; verify publicly rather than decrypt. Source document ↗
Practical examples
Example
Sign message with secret key; verify with public key, message and signature. Signing-to-verification flow, not encryption/decryption.
Procedure
Select parameter set, generate pair, sign privately, verify publicly. No decrypt/decoding stage.
Scenario
Software-update signing, document/transaction authenticity and PQ migration for X.509/code signing. Choose parameters considering signature size/performance for long-term preservation and PQ certificates.
Pitfalls and alternatives
Large signatures add storage/transport costs; avoid s/f, SHA2/SHAKE and security-level confusion. No decryption API; use audited implementation, safe randomness and standard parameters; clear identifiers when mixing schemes.
References
- Stateless Hash-Based Digital Signature Standard ↗
- SPHINCS+ | Hawkynt ↗
- README.md ↗
- SLH-DSA - PyCryptodome ↗
- Post-Quantum Cryptography | CSRC ↗
- How SLH-DSA Would Break: The Signature That Can Only Fall If a Hash Falls First ↗
- FIPS 205, Stateless Hash-Based Digital Signature Standard ↗
- SLH-DSA | TQ42 Cryptography Library ↗
- @project-eleven/experimental-noble-post-quantum ↗
- slh_dsa - Rust ↗