What is stateful hash-based signatures?

Stateful hash-based signatures are a family of post-quantum digital signature schemes, including LMS, HSS, XMSS and XMSS-MT, that require the signer to track one-time key state. They are defined in NIST SP 800-208 and IETF RFCs, and they suit firmware, software and CA signing.

On this page

What stateful hash-based signatures are and who meets them

You are working through a vendor answer, a tender or an audit request, and it names LMS, HSS or XMSS. Stateful hash-based signatures are a family of post-quantum digital signature schemes whose security rests on hash functions, and whose signer must keep a record of which one-time signing keys have already been used. The family is specified in NIST SP 800-208, which covers the Leighton-Micali Signature system (LMS), the eXtended Merkle Signature Scheme (XMSS), and their multi-tree variants, the Hierarchical Signature System (HSS) and XMSS-MT. The IETF documents that profile them for use are RFC 8554 (LMS and HSS), RFC 8391 (XMSS and XMSS^MT) and RFC 9802 (their identifiers and encodings in X.509 certificates and certificate revocation lists). The defining requirement is the state itself: once a one-time key has signed a message it must never sign another. RFC 8554 requires the signing step to advance the leaf index before a signature is released, and RFC 8391 warns that reusing XMSS state means the security guarantees no longer hold.

Who meets the term, and where? Firmware and software signing teams are the most common readers, because RFC 9802 names firmware signing, software signing and CA certificates as suitable uses and says the schemes are generally not appropriate for end-entity certificates beyond firmware and software signing. Security leads and PKI owners will see the term in root and subordinate CA planning, where RFC 9802 prefers root CAs over subordinate CAs. Procurement and vendor-risk reviewers will see it when a product claims support for LMS, HSS or XMSS, so the question to ask is whether the signer enforces state persistence and whether the vendor follows the guidance in SP 800-208 and RFC 9802. Engineers should confirm which parameter set and version a product implements, since RFC 9858 added LMS parameter sets with smaller signatures, and the IANA LMS registry lists them.

The operational consequence is the part most reviews miss. A simple backup and restore of a stateful key can cause one-time signature reuse, which RFC 9802 flags and points to SP 800-208 section 7 for safer approaches. Common mitigations named in the sources include recording used key indexes off the device, limiting the total number of signatures, and reserving future states in advance. Larger parameter sets that permit very many signatures carry larger signatures and longer signing times. The stateless counterpart is SLH-DSA in FIPS 205, published as a final standard on 13 August 2024. Ask any vendor how its signing state is stored, backed up and protected from rollback, and whether the product is used only in systems that prevent reuse of secret key states, which is the condition both RFC 8554 and RFC 8391 set.

Which names and identifiers belong to the stateful family

This table lists the stateful hash-based schemes you will meet in standards, certificate profiles and vendor documents, with the document that defines each and where it appears in X.509 and CMS. Read the rows as separate names that belong to one family: they share the requirement to track signing state, but they are not interchangeable, and the stateless SLH-DSA sits outside the family. Confirm the exact parameter set and identifier your product uses before relying on any row.

NameFull name and defining documentWhere it appears in profiles and registriesRelationship to the family
LM-OTSLeighton-Micali one-time signature, defined in RFC 8554 (April 2019, Informational)Building block inside LMS and HSS signatures, not used as a standalone certificate algorithmOne-time component that the stateful state protects from reuse
LMSLeighton-Micali Signature system, defined in RFC 8554 and NIST SP 800-208CMS profile in RFC 9708; X.509 identifiers in RFC 9802; parameter sets from RFC 9858 and the IANA LMS registrySingle-tree stateful scheme; signing state must be preserved
HSSHierarchical Signature System, defined in RFC 8554 and NIST SP 800-208CMS profile in RFC 9708; X.509 identifiers in RFC 9802Multi-level LMS trees; the same state discipline applies
XMSSeXtended Merkle Signature Scheme, defined in RFC 8391 (May 2018) and NIST SP 800-208X.509 identifiers in RFC 9802; not the same encoding as LMSStateful scheme that is a separate construction from LMS
XMSS-MTMulti-tree XMSS, defined in RFC 8391 and NIST SP 800-208X.509 identifiers in RFC 9802Multi-tree form of XMSS; a distinct identifier from XMSS
WOTS+Winternitz one-time signature plus, defined in RFC 8391Building block inside XMSS and XMSS-MT, not used alone for certificatesOne-time component; each key may sign only one message
SLH-DSAStateless Hash-Based Digital Signature Algorithm, defined in NIST FIPS 205 (13 August 2024)X.509 identifiers in RFC 9909; formerly known as SPHINCS+ and not compatible with itStateless counterpart; does not require tracking signing state

Where practitioners meet stateful hash-based signatures

The term appears in NIST's recommendation, several IETF specifications and protocol profiles, and in vendor and tender documents. The cards below show what each source covers and what to check before relying on a product's claim about stateful hash-based signatures.

NIST SP 800-208 recommendation

NIST Special Publication 800-208, finalized in October 2020, is the recommendation that specifies LMS and XMSS along with their multi-tree variants HSS and XMSS-MT. It is the primary reference a reviewer will see cited for the stateful family. Check whether a product claims conformance to this document, and which parameter sets and state-management guidance it applies.

NIST SP 800-208

RFC 8554 for LMS and HSS

RFC 8554, published as an Informational RFC in April 2019, defines the LM-OTS one-time signature and the LMS and HSS signature systems. It states that the schemes should not be used except in systems that prevent reuse of secret key states. Confirm which LMS and HSS parameter sets a product implements.

RFC 8554 text

RFC 8391 for XMSS

RFC 8391, published as an Informational RFC in May 2018, specifies WOTS+, XMSS and XMSS^MT. It warns that reusing XMSS state means the security guarantees no longer hold. Confirm whether a product implements XMSS or XMSS^MT, since the two differ in their multi-tree handling.

RFC 8391 text

RFC 9708 for HSS and LMS in CMS

RFC 9708 defines how HSS and LMS signatures are carried in Cryptographic Message Syntax, which is the format used by many signed software and firmware packages. It is a Standards Track profile, so it is the document to check when a vendor says its signed artifacts use LMS. Confirm the CMS profile version the vendor's tooling produces.

RFC 9708 text

RFC 9802 for X.509 certificates and CRLs

RFC 9802, a Standards Track RFC published in June 2025, gives algorithm identifiers and ASN.1 encodings for HSS, XMSS and XMSS^MT in X.509 certificates and certificate revocation lists. It names firmware signing, software signing and CA certificates as suitable uses and says the schemes are generally not appropriate for end-entity certificates. Check any PKI plan against those limits.

RFC 9802 text

Vendor and tender documents

Vendor answers and tender requirements often ask whether a product supports stateful hash-based signatures, and the answer is only as strong as the version it names. Ask which scheme, parameter set and state-management method is implemented, and how one-time key indexes are recorded and protected from restore-based reuse. The sources listed on this page are where to confirm which version a product implements.

Read SP 800-208

What the signing role looks like in a running system

In a running system, the stateful hash-based signing role is most often filled by a process that signs firmware images, software packages or CA certificates. RFC 9802 names firmware signing, software signing and CA certificates as suitable uses, and says the schemes are generally not appropriate for end-entity certificates apart from firmware and software signing. Its guidance also prefers root CAs over subordinate CAs. If your inventory finds a plan to use these schemes for TLS server or client certificates, treat that as a design question to escalate, not a drop-in replacement, and check the current RFC 9802 text before you agree to it.

The defining operational fact is that signing changes the private key. RFC 8554 says LMS signing modifies the private key as a side effect, and that once a private key value has signed one message it must not be used to sign another. RFC 8554 also requires the leaf index to be incremented before a signature is released. RFC 8391 says the same for XMSS: reusing state means the security guarantees no longer hold and forging signatures on new messages becomes feasible. The signer therefore has to record its state durably and advance it on every signature, and it must never reuse a one-time key.

For a security lead, the practical checks are whether the signer persists its state before releasing each signature, and whether backup and restore procedures can roll that state back. RFC 9802 warns that simple backup and restore of a stateful key can cause one-time signature reuse, and points to NIST SP 800-208 section 7 and draft-wiggers-hbs-state for safer approaches. Ask the vendor or signing team how state is recorded, where it is stored (on the device or off it), and how a restore is prevented from reusing an index. Confirm these answers against the specific implementation and version you run, since the sources listed on this page do not describe any particular product's signing process.

Standardization and published profiles for stateful signatures

The stateful hash-based schemes were first specified in the IRTF Crypto Forum Research Group as informational documents, and they now have standards-track profiles from the IETF and a NIST recommendation. RFC 8391, "XMSS: eXtended Merkle Signature Scheme," was published in May 2018 and specifies WOTS+, XMSS and XMSS^MT. RFC 8554, "Leighton-Micali Hash-Based Signatures," followed in April 2019 and defines the LM-OTS one-time signature along with the LMS and HSS signature systems. NIST then finalized SP 800-208, "Recommendation for Stateful Hash-Based Signature Schemes," in October 2020, following a draft dated 11 December 2019. SP 800-208 specifies LMS and XMSS and their multi-tree variants, HSS and XMSS-MT.

The standards-track profiles came later. RFC 9708 defines HSS/LMS for use in Cryptographic Message Syntax (CMS). RFC 9802, published in June 2025 as a Standards Track document, specifies algorithm identifiers and ASN.1 encodings for HSS, XMSS and XMSS^MT in X.509 certificates and certificate revocation lists, and it makes SP 800-208 a normative reference. RFC 9858, published in October 2025, adds LMS parameter sets using SHA-256/192 and SHAKE256 that give smaller signatures. Confirm which of these RFCs your product or vendor implements, since a profile existing on paper does not show that a given product supports it.

When you read a vendor answer that cites these documents, check which document and which version of the scheme it means. Ask whether the product implements the RFC 9802 encodings or only the underlying scheme, and whether it supports the RFC 9858 parameter sets. Any claim that a product is compliant with SP 800-208 or the RFCs should be checked against the specific clauses and the vendor's own documentation, not accepted from a marketing summary. The sources listed on this page do not say whether any particular product has been validated against these documents.

What to do with stateful hash-based signatures in a migration

This sequence establishes whether stateful hash-based signing is in use, confirms that each signing key's state is tracked and never reused, and checks that backup, restore and vendor claims match the standards. It ends with a documented design that limits these schemes to firmware, software and CA signing.

  1. Find signing systems that use LMS, HSS, XMSS or XMSS-MT

    Search the cryptographic inventory for LMS, HSS, XMSS and XMSS-MT, along with their X.509 identifiers from RFC 9802 and any CMS usage from RFC 9708. Record each system, the owning team and the purpose of the signature. Treat SLH-DSA separately, since it is the stateless counterpart in FIPS 205 and carries no signing-state requirement. The step is done when every hit is logged with an owner, and any system with no owner is flagged for follow-up.

  2. Confirm signing key state is recorded and never reused

    For each system found, verify that the signing key state, meaning the index of the next unused one-time key, is stored and updated before a signature is released. RFC 8554 requires the leaf index to be incremented before output, and RFC 8391 states that reusing XMSS state voids the security guarantees. Ask the engineering owner to show where the state is kept, how it is written, and what prevents two signing processes from using the same state. The step is done when each system has a written description of its state handling, reviewed by someone who did not build it.

  3. Check backup and restore against RFC 9802 and SP 800-208

    Review how signing keys are backed up and restored. RFC 9802 warns that a simple backup and restore of a stateful key can cause one-time signature reuse, and points to NIST SP 800-208 section 7 and draft-wiggers-hbs-state for safer approaches. Check whether restoring an older copy could roll the state back. Look for the strategies RFC 9802 lists: recording used indexes off the device, limiting the number of signatures, or reserving future states in advance. The step is done when each restore path is tested against a rollback scenario and the result is written down.

  4. Ask vendors which profile and parameter set they implement

    Send each vendor a written question asking which scheme (LMS, HSS, XMSS or XMSS-MT), which profile and which parameter set they implement, and which signature count limit applies. Ask whether state persistence is handled by the product or left to the operator, and how it is documented. RFC 9802 notes that parameters allowing very many signatures come at the cost of larger signatures and longer signing times, so ask for the sizes and timings the vendor measured. The step is done when each answer is on file and any answer that is vague or missing is marked for escalation.

  5. Confirm use is limited to firmware, software and CA signing

    Check the design to confirm that stateful hash-based signatures are used only where RFC 9802 considers them suitable: firmware signing, software signing and CA certificates. RFC 9802 prefers root CAs over subordinate CAs and says the schemes are generally not appropriate for end-entity certificates apart from firmware and software signing. Flag any proposed use in TLS, client authentication or other end-entity certificates for redesign or review. The step is done when the design document states the permitted use cases and a reviewer has signed off that no other use is present.

Confusions about stateful hash-based signatures in tenders and vendor answers

Tenders and vendor answers often mix stateful hash-based schemes with their stateless neighbors, or treat a key backup or an identifier as proof of safe operation. Each card below names one confusion, what the sources say, and what to confirm before accepting an answer.

Stateful and stateless schemes are not the same

Stateful schemes such as LMS and XMSS keep a signing state that must advance with every signature, so the signer has to track which one-time keys are used. The stateless counterpart, SLH-DSA in FIPS 205, does not require that tracking. When a vendor answer says only that it supports hash-based signatures, ask which family it implements and whether it keeps state on the device.

NIST SP 800-208

SPHINCS+ and SLH-DSA are not interchangeable

RFC 9909 states that SLH-DSA is the standardized form of the algorithm formerly known as SPHINCS+, and that the two are not compatible. A product built against a pre-standard SPHINCS+ implementation will not verify SLH-DSA signatures, or the reverse. When reviewing an answer, confirm which of the two names and which version the product implements.

RFC 9909

LMS parameter sets must match exactly

RFC 9858 adds LMS parameter sets using SHA-256/192 and SHAKE256 for smaller signatures, and the IANA LMS registry lists them separately. A signature made with one parameter set is not verified by a verifier configured for another. Ask vendors which parameter sets they generate and which they verify, and check the IANA registry entries they claim.

IANA LMS registry

A key backup is not automatically safe

RFC 9802 says a simple backup and restore of a stateful key can cause one-time signature reuse, and reuse breaks the scheme's security. Restoring an older state copy lets the device sign again with keys already used. Ask how the vendor records used indexes, whether it limits signature counts, or reserves future states, and check the approach against NIST SP 800-208 section 7.

RFC 9802

X.509 identifiers are not a compliance claim

RFC 9802 defines algorithm identifiers for HSS, XMSS and XMSS^MT in X.509 certificates, and RFC 9909 does the same for SLH-DSA. An identifier shows that a certificate format can carry the algorithm, not that a product implements it correctly, is validated, or is suitable for a given use. RFC 9802 also says these schemes are generally not appropriate for end-entity certificates apart from firmware and software signing.

RFC 9802

Questions people search about stateful hash-based signatures

What does stateful hash-based signatures mean?

Stateful hash-based signatures are digital signature schemes whose security rests on hash functions and which keep a record of how many one-time keys have been used. The signer must update that record every time it signs. RFC 8554 says LMS signing modifies the private key as a side effect, and that a private key value that has signed one message must not be used to sign another. The term covers LMS and HSS in RFC 8554, and XMSS and XMSS^MT in RFC 8391. NIST SP 800-208 specifies the same family as LMS, XMSS, HSS and XMSS-MT. The word stateful is the point: unlike stateless schemes, the signer's state must persist and must never be rolled back.

Is stateful hash-based signing the same as LMS or XMSS?

Not exactly. LMS and XMSS are two separate stateful schemes, and stateful hash-based signatures is the umbrella term for both families. HSS and XMSS^MT are the multi-tree variants of LMS and XMSS, built so that a large number of signatures can be spread across a hierarchy. NIST SP 800-208 specifies all four. When a document names LMS, HSS, XMSS or XMSS^MT, it is naming one specific scheme within this family, so check which one the product uses. Note that SLH-DSA in FIPS 205 is the stateless counterpart and does not require state tracking.

Are stateful hash-based signatures standardized, and where?

Yes, in several documents. NIST SP 800-208, "Recommendation for Stateful Hash-Based Signature Schemes," was finalized in October 2020 after a draft of 11 December 2019, and it specifies LMS, XMSS, HSS and XMSS-MT. The IETF published the underlying specifications as Informational RFCs: RFC 8391 for XMSS in May 2018 and RFC 8554 for LMS in April 2019. Protocol profiles followed as Standards Track documents: RFC 9708 defines HSS/LMS in CMS, and RFC 9802, published in June 2025, defines HSS, XMSS and XMSS^MT in X.509 certificates and CRLs. RFC 9858 adds LMS parameter sets with smaller signatures. Confirm which document and version your vendor implements.

Can stateful hash-based signatures sign firmware or CA certificates?

RFC 9802 names firmware signing, software signing and CA certificates as suitable uses. It prefers root CAs over subordinate CAs for these schemes. The same RFC says the schemes are generally not appropriate for end-entity certificates, apart from firmware and software signing. For a firmware update path, the signing environment must track state reliably, because each signing key can only be used for a limited, tracked set of signatures. Ask your vendor which signing role they use the scheme for, and how the signer records state across backups, restores and rebuilt build servers.

What happens if the signing state is reused?

Reusing state breaks the security of the scheme. RFC 8391 says that if XMSS state is reused, the security guarantees no longer hold and forging signatures on new messages becomes feasible. RFC 9802 says it is imperative that implementations do not reuse one-time signatures, and that simple backup and restore of a stateful key can cause one-time signature reuse. RFC 8554 says developers should not use the schemes except in systems that prevent reuse of secret key states. In practice, a restored virtual machine, a cloned signing host or a rolled-back key store can silently reuse state, so the signing system must make reuse impossible rather than merely unlikely.

Are end-entity certificates suitable for stateful hash-based signatures?

Generally not, according to RFC 9802. That document says the schemes are generally not appropriate for end-entity certificates, apart from firmware and software signing. End-entity certificates, such as those used by web servers or user devices, are issued and signed many times, and that volume makes state management harder. If you are assessing a product that uses these schemes in a TLS or client certificate role, treat it as an exception to confirm against RFC 9802 and your own design. Your vendor should explain the signing rate, state storage and recovery procedure for any certificate role they propose.

What should I ask a vendor about stateful hash-based signatures?

Ask a few specific questions. Which scheme and parameter set do you use, such as LMS, HSS, XMSS or XMSS^MT, and which RFC or NIST SP 800-208 version do you follow? Where is the signing state stored, and how is it protected from backup, restore and cloning? How do you prevent one-time key reuse after a failure? How many signatures can each key sign, and what happens when the limit is reached? Which signing role do you use the scheme for, such as firmware, software or CA certificates? Ask for written answers and a description of the recovery procedure, so your team can verify the controls rather than relying on a general statement.

Is SLH-DSA a stateful hash-based signature scheme?

No. SLH-DSA, specified in NIST FIPS 205 and published as a final standard on 13 August 2024, is the stateless counterpart. It is a hash-based signature scheme that does not require the signer to track state between signatures. NIST announced SPHINCS+ on 5 July 2022 as one of its selected signature algorithms, and SLH-DSA is the standardized form of that algorithm. Because the schemes differ in whether state is needed, confirm which family a product uses before assuming state management is required or absent.

How DeployOpen works on this

DeployOpen approaches stateful hash-based signatures as an operational planning question before it is a software question. The work covers where LMS, HSS, XMSS or XMSS^MT would be used, how signing state is stored and protected, and whether the system can prevent one-time key reuse. Each engagement ends with a written record of decisions, controls and open items.

How we scope

  • Identify which signing workloads, such as firmware or software signing and CA certificates, would use a stateful scheme.
  • Confirm whether the system can guarantee that signing state is never restored from a backup and reused.
  • Agree the scope in writing before work starts, covering systems, deliverables and the state-handling controls in scope.

How we build

  • Configure signing services so the leaf index is advanced and stored before any signature is released.
  • Record used one-time key indexes off-device, or limit total signatures per key, as RFC 9802 describes.
  • Test the setup for state reuse after backup, restore, cloning and failover, then document the results.

How we hand over

  • Deliver a written design record covering chosen parameter sets, state storage location and key lifecycle rules.
  • Document the operational runbook for key generation, signing, exhaustion, retirement and incident response.
  • Provide evidence of configuration and testing that your security and compliance teams can review independently.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Review changes to signing infrastructure, backup policies and parameter choices before they reach production.
  • Confirm compatibility with the specific library, HSM or CA software versions you run, since the sources do not establish it generally.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.