← Back to section · Standards & Specifications

Stateful Hash-Based Signatures and SP 800-208: Why LMS/XMSS Are Approved — but Not for Casual Use

NIST SP 800-208 approves the stateful hash-based signature schemes LMS and XMSS. They rest only on hash-function properties — the most conservative security basis of any PQC signature — at the price of one-time key state that must never be reused. This article explains the approval scope, the concrete risks of state management, and how the schemes divide the field with SLH-DSA.

Published 22 November 2026 · 6 min read · PQ Frontier

Stateful Hash-Based Signatures and SP 800-208: Why LMS/XMSS Are Approved — but Not for Casual Use
AI-generated site artwork
Video explainer · NIST Standards: how a standard is made

Alongside SLH-DSA in FIPS 205, NIST’s post-quantum signature landscape contains an earlier-approved hash-based route: the stateful hash-based signatures approved by SP 800-208 in 2020, namely LMS and XMSS. Their security depends only on properties of hash functions, making them the most conservative of all post-quantum signatures in terms of assumptions. But the word “stateful” implies an entire discipline of use — get it wrong, and even the most conservative algorithm can be forged. This article explains what SP 800-208 approves, where exactly the state-management risk lies, and how these schemes divide the field with SLH-DSA.

What SP 800-208 approves

NIST SP 800-208, Recommendation for Stateful Hash-Based Signature Schemes, was published in October 2020. It approves two schemes: LMS (Leighton–Micali Signature, see IETF RFC 8554) and XMSS (eXtended Merkle Signature Scheme, see RFC 8391), together with their multi-tree variants HSS (hierarchical LMS) and XMSS^MT.

The approval is conditional: the document restricts the usable parameter sets — hash functions are limited to specified options such as SHA-256 and SHAKE256, and combinations of tree height, Winternitz parameter and the like must come from the approved list; keys must be generated with an approved random bit generator. Parameters outside the list are outside the approval, even if the algorithm name is the same.

Both schemes share one construction: at the bottom sits a one-time signature scheme (LM-OTS for LMS, WOTS+ for XMSS); each one-time key pair is a leaf of a Merkle tree whose root is the public key; a signature consists of a one-time signature plus a Merkle authentication path, roughly 1–4 KB depending on parameters.

Why they are called the most conservative

The security of stateful hash-based signatures reduces to basic hash-function properties — collision resistance, second-preimage resistance and the like — and does not depend on lattices, codes, or any “new” mathematical hardness assumption. Since Merkle proposed hash-tree signatures in 1979, this construction family has been analysed for over four decades, and implementation and audit experience is correspondingly deep.

The cost is not cryptographic but operational: a one-time key, as the name says, may sign exactly once. Every signature consumes one leaf index — the “state” — and the signer must persist that state monotonically and reliably. Practically all of the risk of these schemes concentrates on this single point.

State management: where the risk actually is

If the same one-time key is ever used to sign two different messages, an attacker can combine the two signatures to recover private-key material and then forge signatures on arbitrary messages. This is not a theoretical weakness but a direct consequence of the construction. State reuse is therefore the number-one incident source for these schemes — and its triggers are mundane:

  • Backup restores: restoring a signing device from an old backup rolls the counter back to an already-used position;
  • Device cloning and VM snapshots: two copies each continue signing from the same state;
  • Crashes and power loss: a signature has been emitted but the state was not yet persisted, so after restart the same index is used again;
  • Multiple signers sharing one root key: without pre-partitioned state ranges, two devices will eventually collide.

SP 800-208’s requirements here are hard: implementations must guarantee that state is never reused, and in multi-device settings the Merkle tree’s state space must be partitioned among signers in advance. Precisely because this discipline is hard to guarantee in general environments, SP 800-208 explicitly limits the schemes to controlled settings where state can be strictly managed, rather than general-purpose signing.

State management as an engineering practice

Turning “never reuse” into engineering practice, four approaches are standard. First, persist state before signing: make index consumption a write-ahead flow — atomically reserve the next index in durable storage (and confirm the write succeeded) before using it to sign; reversing the order (sign first, record afterwards) creates exactly the crash window in which reuse happens. Second, batch pre-allocation and range partitioning: in multi-signer settings, pre-partition the tree’s leaf ranges among devices as SP 800-208 requires, so each device signs only within its own range and collisions are excluded by construction; a single device can likewise reserve index segments inside a hardware security module (HSM), where a hardware monotonic counter guarantees no rollback. Third, backup discipline bound to state: any backup of the private key must bind the state counter into the same backup, and restore procedures must treat “this state may already be used” as the default assumption — after a restore, skipping a stretch of indices is always safer than resuming from an old counter. Fourth, budget monitoring: the total number of signatures under one tree is set by its height — exponential, but finite — so deployments should monitor the remaining leaves and rehearse key rollover before the budget runs out. Failing any one of these four should be treated as failing a precondition for using a stateful scheme at all.

One compromise form deserves note: some HSMs and code-signing platforms encapsulate state management inside the hardware boundary — a signing request enters the device, and index reservation, incrementing and persistence all happen inside it, so the caller never touches the state itself. This converts “deployer discipline” into “device construction guarantee”, currently the most viable way to run stateful signatures in production. When buying such products, what needs verifying is precisely whether the state machine is genuinely sealed inside the hardware boundary, and how state migrates across firmware upgrades and device replacement.

Dividing the field with SLH-DSA

SLH-DSA in FIPS 205 is also a hash-based signature, but stateless: no counter is needed, at the price of much larger signatures (roughly 8–50 KB) and much slower signing. Stateful schemes produce smaller, faster signatures, paid for with the state discipline. The typical niches follow directly:

  • Stateful (LMS/XMSS): firmware and code signing — few signatures, a single controlled signer, and verifiers that must trust the result for decades. NSA’s CNSA 2.0 designates LMS/XMSS for software and firmware signing and puts them first in its transition timeline.
  • Stateless (SLH-DSA) and ML-DSA: general-purpose signing such as TLS and document signing — many parties, high volume, heterogeneous environments. Do not import state-management risk into environments you cannot control.

In short: LMS/XMSS are not “weaker legacy schemes” but “the most conservative schemes, which transfer the reliability burden to the deployer”. Whether to use them should be decided by whether state management can actually be guaranteed — before any discussion of algorithms.

References

Tags: SP 800-208LMSXMSSStateful Hash-Based Signatures