HSS-SHA-256-H5-H5-W4
Hierarchical Signature System: multi-level LMS trees for larger signature budgets
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 HSS-SHA-256-H5-H5-W4
HSS-SHA-256-H5-H5-W4 is a digital signature scheme from the HSS family. It uses a 60-byte public key, a 32–512-byte secret key, a 256–65,536-byte signature and a 32-byte seed. Its registry entry cites RFC 8554 and NIST SP 800-208. 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
HSS stacks several LMS trees in a hierarchy so that one public key can authorise many more signatures than a single tree. It is defined alongside LMS in RFC 8554 and NIST SP 800-208.
In HSS, the top-level LMS tree signs the public keys of lower-level trees, and only the bottom level signs messages. When a bottom tree is exhausted, a new one is generated and signed by the level above. This keeps key generation fast, because only the top tree must be built up front, while the total number of signatures is the product of the capacities at each level.
A signature contains the chain of LMS signatures and intermediate public keys from the top tree down to the message. As with LMS, the signer is stateful: every level keeps a counter of used leaves, and that state must never be rolled back. RFC 8554 allows up to eight levels, and NIST SP 800-208 approves HSS together with LMS for post-quantum use.
One parameter set is present: hss-sha256-h5-h5-w4, a two-level hierarchy of height-5 LMS trees with SHA-256 and Winternitz parameter 4, giving 32 x 32 = 1024 signatures per key. Signatures carry two LMS signatures and an intermediate public key, roughly 4.7 KB in total. The public key is 60 bytes. Taller trees or more levels raise the signature budget into the millions or beyond, at the cost of larger signatures and more state to protect.
History
2019–2020Specified in RFC 8554
Specified in NIST SP 800-208
How it works
- KeyGen builds the top-level LMS tree; its root is the HSS public key.
- Lower-level trees are generated as needed and their public keys signed by the level above.
- A message is signed by the current bottom-level tree.
- Verify checks each signature in the chain from the top root down to the message.
Security notes
All LMS state-management hazards apply at every level of the hierarchy. NIST SP 800-208 expects state to be held in hardware that prevents rollback or cloning.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 60 | Public key |
| sk | 32 – 512 | Secret key |
| sig | 256 – 65,536 | Signature |
| seed | 32 | Seed |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, state = root.call("stateful_keygen", "hss-sha256-h5-h5-w4", None, outs=2)
sig, state = root.call("stateful_sign", "hss-sha256-h5-h5-w4", None, state, b"message", outs=2) # state advances
nextssl_root_stateful_keygen("hss-sha256-h5-h5-w4", NULL, pk, state);
nextssl_root_stateful_sign("hss-sha256-h5-h5-w4", NULL, state, msg, sig, new_state);
// statefulsign is a root-only kind: use the C ABI (nextssl_root_*)
// or the Statefulsign trait in nextssl-core/src/traits.rs
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is HSS-SHA-256-H5-H5-W4?
HSS-SHA-256-H5-H5-W4 is a signature in the HSS family. HSS stacks several LMS trees in a hierarchy so that one public key can authorise many more signatures than a single tree.
What are the HSS-SHA-256-H5-H5-W4 sizes?
In NextSSL, HSS-SHA-256-H5-H5-W4 uses: public key 60 bytes, signature 256 to 65,536 bytes.
Is HSS-SHA-256-H5-H5-W4 post-quantum?
Yes. HSS-SHA-256-H5-H5-W4 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed HSS-SHA-256-H5-H5-W4 and when?
HSS-SHA-256-H5-H5-W4 belongs to the HSS family, first published in 2019 by David McGrew, Michael Curcio, Scott Fluhrer (RFC 8554). Its origin: IETF RFC 8554 and NIST SP 800-208.
Which standards define HSS-SHA-256-H5-H5-W4?
HSS-SHA-256-H5-H5-W4 is referenced by RFC 8554, NIST SP 800-208.
Is HSS-SHA-256-H5-H5-W4 safe to use?
HSS-SHA-256-H5-H5-W4 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).