Signature family

LMS

Leighton-Micali stateful hash-based signatures, standardised in RFC 8554 and SP 800-208

unverified 2 variants IETF RFC 8554 and NIST SP 800-208

Overview

LMS is a stateful hash-based signature scheme in which each key can sign a fixed number of messages. Its security depends only on the hash function, and it is approved by NIST for post-quantum firmware and software signing.

An LMS key is a Merkle tree whose leaves are LM-OTS one-time signature keys, built from Winternitz-style hash chains. The public key is the tree root. Each signature uses the next unused leaf: it contains the one-time signature of the message and the authentication path from that leaf to the root. Because a one-time key must never sign two different messages, the signer must keep and reliably update a counter of used leaves.

This statefulness is the main operational hazard. Restoring a key from backup, cloning a virtual machine or running two signers in parallel can cause leaf reuse, which allows forgeries. NIST SP 800-208 therefore restricts LMS to settings where state can be managed carefully, typically in hardware security modules. Generating a key requires computing every leaf, so tall trees take longer to create.

Two parameter sets are present, both with SHA-256 and Winternitz parameter w = 4: lms-sha256-h5-w4, with a tree of height 5 (32 signatures), and lms-sha256-h10-w4, with height 10 (1024 signatures). Signatures for these sets are roughly 2.3 to 2.5 KB, and the public key is only 56 bytes. Larger tree heights, such as 15, 20 or 25, are defined in the standards for higher signature budgets.

History

1979–2020
  1. Lamport one-time signatures and Merkle trees introduced

  2. Leighton and Micali patent the LMS hash-based scheme

  3. LMS and HSS specified in RFC 8554

  4. Approved in NIST SP 800-208

How it works

  1. KeyGen derives 2^h one-time keys from a seed and builds a Merkle tree over their public values.
  2. Sign uses the next unused leaf to sign the message with LM-OTS and appends the authentication path.
  3. The signer must persist the incremented leaf index before releasing the signature.
  4. Verify recomputes the one-time public key, then the path to the root, and compares with the public key.

Security notes

Reusing a leaf index breaks security, so state handling must be robust against crashes, backups and concurrency. The number of signatures per key is fixed in advance; for stateless use, SLH-DSA is the alternative.

Typical uses

Firmware and boot-image signingCode signing inside HSMs with managed stateLong-term roots of trust with a small signature budget

Variants in NextSSL

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

Frequently asked questions

Which LMS variants does NextSSL include?

NextSSL registers 2 LMS variants: lms-sha256-h10-w4, lms-sha256-h5-w4.