Signature family

HSS

Hierarchical Signature System: multi-level LMS trees for larger signature budgets

unverified 1 variant IETF RFC 8554 and NIST SP 800-208

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–2020
  1. Specified in RFC 8554

  2. Specified in NIST SP 800-208

How it works

  1. KeyGen builds the top-level LMS tree; its root is the HSS public key.
  2. Lower-level trees are generated as needed and their public keys signed by the level above.
  3. A message is signed by the current bottom-level tree.
  4. 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

Firmware signing with larger signature budgets than a single LMS treeHSM-based code signingLong-lived hash-based roots of trust

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
HSS-SHA-256-H5-H5-W4
hss-sha256-h5-h5-w4
unverified pk 60 · sk 32–512 · sig 256–65536 · seed 32 RFC 8554, NIST SP 800-208 root

Frequently asked questions

Which HSS variants does NextSSL include?

NextSSL registers 1 HSS variant: hss-sha256-h5-h5-w4.