Is LMS and XMSS hash-based signatures quantum safe?

NIST, the IETF and the UK NCSC say LMS and XMSS rely only on hash functions and resist known quantum attacks, but only when secret key state is never reused, so they fit a narrow set of uses. Platform, security and compliance teams deciding whether to deploy or keep them need the published position and dates.

On this page

What the published sources say about LMS and XMSS against quantum attack

If you are choosing or auditing a signature scheme for firmware signing, code signing or a long-lived root of trust, the published position is this: NIST SP 800-208 specifies the stateful hash-based schemes LMS and XMSS, and RFC 8554 and RFC 8391 state that they rely only on hash functions and can withstand known quantum attacks. The same sources add a condition that governs everything else: these schemes are secure only if a secret key state is never reused. RFC 8554 says that if a secret key state is used twice, no cryptographic security guarantees remain, and that developers should not use the schemes except in systems that prevent that reuse.

The people who need this answer are the engineers who sign artifacts, the security leads who approve the signing design, and the auditors who will ask how state is stored and protected. The sources treat LMS and XMSS as a narrow option, not a general replacement for classical signatures. NIST's stateful hash-based signatures page says the schemes are "not suitable for general use" because "their security depends on careful state management." The UK NCSC describes them as supplementing two earlier algorithms with a more limited set of uses, and ANSSI's views paper says they could be used today with use limited to few signature queries or large signatures.

Before treating LMS or XMSS as a fit, confirm three things in your own design. First, check whether the signing key lives on a hardware cryptographic module, since NIST SP 800-208 requires keys to be created on modules that do not allow secret keying material to be exported, and NIST says it is working on a revision that would permit export. Second, confirm how the signer persists state across invocations and what prevents rollback or duplication of that state. Third, confirm with the standards and the vendor documentation for the exact versions you run how key state is handled, because the sources do not settle those operational details for every product.

What each body has published on LMS and XMSS

This table lists each source covered on this page, the document and its date, what it says about LMS or XMSS against quantum attack, and any dates it sets. Read it to see which bodies treat these schemes as resistant to quantum attack and which restrict where they should be used. Note that several sources stress state management and limited use, and that the sources listed here do not set a single deadline for these schemes.

BodyDocument and dateWhat it says about LMS or XMSSDates it sets
NISTSP 800-208, October 2020Specifies LMS and XMSS with their multi-tree variants HSS and XMSS^MTNone stated in the sources
NISTStateful hash-based signatures project page, fetched 4 December 2026Says the schemes resist quantum attacks but are not suitable for general use because security depends on careful state management. Says a revision of SP 800-208 is in progress on private key exportNone stated in the sources
IETF (RFC 8554)Leighton-Micali Hash-Based Signatures, April 2019Says the CFRG is confident in the security of these schemes against quantum computers, given current research knowledge. Says schemes should not be used except where secret key state reuse is preventedNone stated in the sources
IETF (RFC 8391)XMSS, May 2018Says XMSS relies only on hash function properties and can so far withstand known quantum attacks. Says reuse of a secret key state leaves no security guaranteesNone stated in the sources
UK NCSCPQC migration timelines, modified 3 August 2026Says LMS and XMSS supplement two earlier algorithms with a more limited set of usesBy 2028, 2031 and 2035 for the wider migration milestones, which do not name these schemes specifically
ANSSIViews paper on post-quantum cryptography transition, 4 January 2022Treats hash-based signatures as an exception to hybridation, usable today with limited signature counts or large signaturesNone stated in the sources

Why the sources treat LMS and XMSS as a narrow option

The sources treat LMS and XMSS as a narrow option because their security depends on one condition that is hard to guarantee in production: the signer must never reuse secret key state. Both schemes, as defined in RFC 8554 for LMS and RFC 8391 for XMSS, rely only on the properties of cryptographic hash functions, which is why the IRTF's Crypto Forum Research Group says it is confident in their security against quantum computers given current knowledge, and why RFC 8391 says hash-based signatures can so far withstand known quantum attacks. The protection against quantum attacks is therefore not the weak point. The weak point is state. RFC 8554 states that if a secret key state is used twice, no cryptographic security guarantees remain, and it tells developers not to use the schemes except in systems that prevent such reuse. The same rule runs through RFC 8391.

For an engineer, the practical consequence is that signing is a stateful operation. Each one-time signing key may sign only one message, and the signer must maintain that state across every invocation of the signing routine, so a restored backup, a cloned virtual machine or a crashed process that replays an old state can silently break the scheme. The sources ask implementers to design around this from the outset. Before adopting LMS or XMSS, confirm with the vendor or project which component stores and advances the state, how it survives failure and restore, and what prevents two instances from signing with the same state.

NIST's stateful hash-based signatures project states the consequence directly: these schemes are not suitable for general use because their security depends on careful state management. NIST SP 800-208 requires keys to be generated on hardware cryptographic modules that do not allow secret keying material to be exported, and NIST reports that it has received feedback on this restriction and is working on a revision. The NCSC likewise describes LMS and XMSS as supplementing two earlier algorithms with a more limited set of uses. Organizations evaluating these schemes should confirm the NIST revision status and their own ability to meet the hardware and state rules before treating them as a general replacement for signatures, and should check the NIST stateless alternative, SLH-DSA, for uses where state cannot be managed safely.

Where practitioners rely on LMS and XMSS, and what the sources say about each

NIST, the IETF and national agencies position LMS and XMSS for narrow roles, not general signing. The cards below cover the uses the sources name and the constraints each one carries, so you can check whether a given deployment fits.

Firmware and software update signing

Update signing is the use case most often tied to hash-based schemes, because a signing key signs a bounded number of releases over its life. The NCSC says LMS and XMSS supplement two earlier algorithms with a more limited set of uses, so this is a narrow role, not a general replacement. Before adopting, confirm how many signatures the key must cover, whether the signer can hold state reliably, and whether the verifier and build pipeline support the exact scheme and parameter set you intend to use.

NCSC migration timelines

Long-lived signature roots with few signatures

ANSSI's views paper says hash-based signatures could be used today without hybridation, with use limited to few signature queries or large signatures. A root or certificate authority key that signs rarely fits that profile, while a key signing high volumes does not. Check the expected number of signatures per key against the scheme's signing capacity before you commit a root to it.

ANSSI views paper

Hardware-held keys that cannot be exported

NIST's SP 800-208 profile requires keys to be created on hardware cryptographic modules that do not allow secret keying material to be exported. This shapes deployment: signing must happen inside the module, and backup, failover and key migration need a plan that does not involve exporting the key. NIST says it is working on a revision that would enable key export, so confirm the current text before designing around this rule.

NIST stateful signatures page

State management as an operational control

RFC 8554 says that if a secret key state is used twice, no cryptographic security guarantees remain, and that the schemes should not be used except in systems that prevent state reuse. Every signing operation must persist updated state before the signature is released, and restores from backup can silently reintroduce old state. Ask how the signer records state, how it handles crashes and cloning, and who is accountable for those controls.

RFC 8554

Tracking the standards for general use

NIST describes stateful hash-based signatures as not suitable for general use, and points to FIPS 205 (SLH-DSA) as the stateless hash-based standard. For most signing needs, the question is whether a stateless standard fits better, not whether LMS or XMSS is adequate. Check NIST IR 8547 for the current transition timeline and confirm which standards your products and contracts will require.

NIST IR 8547

What the state-handling rules require of the signer

The main operational point about LMS and XMSS is that the signer, not the algorithm alone, carries the security burden. RFC 8554 states in section 1.1 that "If a secret key state is used twice, no cryptographic security guarantees remain," and that "Developers should not use the schemes described here except in systems that prevent the reuse of secret key states." Section 2 adds that once a particular value of the private key has signed one message, it "MUST NOT" be used to sign another, and section 9.2 requires the signer to maintain state across invocations of the signing algorithm. RFC 8391 makes the same point for XMSS: its schemes are stateful, the secret key changes over time, and "The API MUST be able to handle a secret key state." NIST's stateful hash-based signatures page likewise says that security "depends on careful state management."

Before deploying either scheme, a reader should confirm several things about their own signing system. They should be able to say where the current state is stored, how it is updated atomically after each signature, and what happens if a signing process crashes, is restored from a backup, or runs on two hosts at once. A restored virtual machine snapshot or a cloned key store can silently reintroduce an old state, so backup and disaster-recovery procedures need to be reviewed against this risk. The reader should also check whether the system can enforce the MUST NOT rule in code and hardware rather than relying on operator discipline. NIST's stateful hash-based signatures page notes that SP 800-208 requires keys to be created on hardware cryptographic modules that do not allow secret keying material to be exported, and that NIST is working on a revision that would permit export while addressing security concerns. Any plan that depends on exporting or replicating keys should be checked against the current revision.

The sources listed on this page do not describe any safe way to recover from a state reuse. Once a state has been used twice, RFC 8554 says no cryptographic security guarantees remain, so the reader should plan for prevention and detection rather than recovery. Practical steps include deciding which signing workloads can tolerate the operational constraints at all, limiting use to the few signature queries the design allows, and recording who may sign with which key. For the current requirements, check NIST SP 800-208 and the NIST stateful hash-based signatures page, and the RFC 8554 text for the exact state rules.

What the guidance says to use instead or alongside LMS and XMSS

ML-DSA is the lattice-based digital signature standard that NIST published as FIPS 204 on 13 August 2024. It is the general-purpose signature option among the newly standardized algorithms, and the sources do not ask it to carry the state-handling burden that LMS and XMSS impose. Its role in the guidance is as the primary replacement for quantum-vulnerable signatures in ordinary deployments.

  • Standard and date: FIPS 204, the Module-Lattice-Based Digital Signature Standard, published 13 August 2024.
  • Stateless operation: signing does not require the signer to track a counter, so the reuse risk described in RFC 8554 and RFC 8391 does not arise in the same form.
  • NIST encouragement: NIST encouraged administrators to begin moving to the new standards as soon as possible and said "There is no need to wait for future standards."
  • Planning horizon: NIST IR 8547 and the NIST project page place quantum-vulnerable algorithms on a deprecation path, with removal planned by 2035 and high-risk systems expected to move much earlier.
  • Scope of this page: the sources listed here do not compare ML-DSA's performance against LMS or XMSS for a specific workload.

Before relying on ML-DSA for a particular product, confirm in the vendor's documentation that the version in use implements FIPS 204 and check which parameter set it uses.

The migration milestones the sources set

This timeline shows published dates from the sources, not dates that apply to LMS or XMSS specifically. It begins with the FIPS 203, 204 and 205 publication on 13 August 2024, then moves through the UK NCSC milestones of 2028, 2031 and 2035. Next are Executive Order 14412 dates of 31 December 2030 for key establishment and 31 December 2031 for digital signatures, followed by NIST's 2035 deprecation target. Check each date against its source before you cite it for a stateful hash-based scheme.

A timeline of published dates, none stated as applying to LMS or XMSS.

What to do if your systems use LMS or XMSS

This sequence establishes where your organization signs data with LMS or XMSS, whether each signing key's state is protected from reuse, and which key handling and dating rules apply. It produces a dated record that auditors and customers can check and that vendors can be held to.

  1. Find every place LMS or XMSS signs data

    Search your code, firmware, build pipelines, certificate tooling and vendor products for LMS, HSS, XMSS and XMSS^MT, as well as the NIST SP 800-208 profile they come from. Include code signing for firmware and software updates, document signing and any internal signing service. Assign each use an owner and a system name. The step is done when you have a list of signing points that every team has reviewed and signed off, with a note on any use you could not trace to a product.

  2. Confirm signing state is stored and protected from reuse

    For each signing point, confirm how the signer records state across invocations and that a one-time key value can never sign a second message. RFC 8554 says that if a secret key state is used twice, no cryptographic security guarantees remain, and that the schemes should only be used in systems that prevent reuse. Ask the implementer where state lives, how it is backed up or restored, and what happens after a crash or a virtual machine snapshot rollback. The step is done when each signing point has a written description of its state storage and reuse controls, reviewed by the engineer who owns it.

  3. Check key export and hardware module rules

    NIST's stateful hash-based signatures page says the SP 800-208 profile requires keys to be created on hardware cryptographic modules that do not allow secret keying material to be exported. It also says NIST is working on a revision that would permit key export while addressing security concerns, so the rule may change. Check whether each signing point meets the current rule, record which hardware module and version it uses, and note the revision as a point to review. The step is done when each key has a documented creation location and export status.

  4. Read the dates that apply to your sector

    Read the timelines in the sources that apply to your organization, rather than relying on this page's summary. NIST IR 8547 and NIST's project page say quantum-vulnerable algorithms are planned for deprecation and removal from standards by 2035, with high-risk systems expected to transition earlier. The UK NCSC sets milestones of 2028, 2031 and 2035, and Executive Order 14412 sets dates of 31 December 2030 and 31 December 2031 for high value assets and high impact systems, and directs a FAR rule that covered contractors comply by 31 December 2030. Record which of these sources bind you, and confirm the dates with your legal or compliance team. The step is done when a dated list of the applicable sources is on file.

  5. Ask vendors about state handling and newer signature options

    Send each vendor a written list of questions. Ask how they manage signing state, whether a key can be reused after a failure, and where state is stored and backed up. Ask whether they plan support for ML-DSA (FIPS 204) or SLH-DSA (FIPS 205), and by what date, and whether they have a migration path for signatures already issued. NIST's August 2024 announcement encouraged administrators to begin moving to these standards as soon as possible. The step is done when every vendor's written answers are on file, with any gaps marked for follow-up.

  6. Record findings for auditors and customers

    Compile the signing point list, the state and reuse controls, the key export status, the applicable dates and the vendor answers into one dated record. Name the owner of each item and the date it was last checked. Keep the record in your evidence repository so that auditors and customers reviewing your security posture can trace each claim. The step is done when the record has been reviewed by security leadership and scheduled for review again on a set date.

Claims readers meet about LMS and XMSS and what the sources say

Readers often hear that hash-based signatures are the safe choice for everything, or that a small change to the configuration settles the open questions. The sources support a narrower position: LMS and XMSS resist known quantum attacks, but their security rests on strict state management and their published uses are limited.

Quantum safe in all uses

The sources support resistance to quantum attacks for the signature schemes themselves. RFC 8391 says hash-based signatures can so far withstand known attacks using quantum computers, and RFC 8554 reports that the CFRG is confident in their security against quantum computers given current knowledge. Neither source says the schemes suit every use. NIST states they are not suitable for general use because their security depends on careful state management, and the NCSC describes them as supplementing earlier algorithms with a more limited set of uses. Check the intended use against those limits before treating the claim as settled.

NIST stateful signatures page

Replaces RSA or ECDSA everywhere

LMS and XMSS are signature schemes only. They do not provide key establishment, so they do not replace RSA or ECDSA in key exchange, TLS handshakes or encryption. The NCSC wording describes them as supplementing two earlier algorithms with a more limited set of uses, and ANSSI's views paper says hash-based signatures could be used today without hybridation only with few signature queries or large signatures. Confirm which role each component plays in your system before assuming a direct swap.

NCSC migration timelines

Larger tree height removes state risk

A larger tree allows more signatures per key but does not remove the state requirement. RFC 8554 says that if a secret key state is used twice, no cryptographic security guarantees remain, and section 9.2 requires the signer to maintain state across invocations. RFC 8391 makes the same point for XMSS. The sources do not say that any tree height removes the risk of state reuse. Treat state integrity as a control to design and test, independent of key size.

RFC 8554

No migration needed

The sources do not support this claim. NIST IR 8547 and the NIST project page plan to deprecate quantum-vulnerable algorithms and remove them from its standards by 2035, with high-risk systems expected to transition much earlier. The NCSC sets milestones of defining goals and building an initial plan by 2028, carrying out highest-priority activities by 2031, and completing migration of all systems by 2035. Inventory where LMS or XMSS would apply and plan the transition for everything else.

NCSC migration timelines

Hardware modules are optional

NIST's SP 800-208 profile requires keys to be created on hardware cryptographic modules that do not allow secret keying material to be exported. NIST reports receiving feedback on this restriction and says a revision is in progress that would enable key export while addressing security concerns. Until that revision is published, check the current SP 800-208 text for your deployment, and confirm with your assessor whether the export restriction applies to your key handling.

NIST SP 800-208

Stateful schemes equal stateless ones

LMS and XMSS are stateful, while SLH-DSA in FIPS 205 is a stateless hash-based standard based on SPHINCS+. The two are not interchangeable: stateful schemes carry the state-management burden that the stateless standard avoids. The sources do not state that they are equivalent or that one can substitute for the other in an existing system. Confirm the scheme and parameter set your product implements before relying on either.

FIPS 205

Questions readers ask about LMS and XMSS against quantum attack

Are LMS and XMSS quantum safe according to NIST and the IETF?

Both NIST and the IETF's Crypto Forum Research Group say these schemes resist quantum attacks, but they are limited in use. NIST's stateful hash-based signatures page says the schemes resist quantum attacks but are "not suitable for general use" because "their security depends on careful state management." RFC 8554 (LMS, April 2019) says the CFRG is "confident in the cryptographic security of the signature schemes described in this document against quantum computers," given current research. RFC 8391 (XMSS, May 2018) says hash-based signatures "can so far withstand known attacks using quantum computers." The NIST SP 800-208 page specifies the schemes, but the security claim depends on the signer following the state rules.

Does a larger key or more signatures make LMS and XMSS safer?

No. The sources do not treat key size or signature count as a fix for the state problem. RFC 8554 says that if a secret key state is used twice, "no cryptographic security guarantees remain." Once a private key value signs one message, it "MUST NOT" sign another, and the signer must maintain state across invocations. A larger tree allows more signatures before the key is exhausted, but it does not remove the reuse risk. ANSSI's 2022 views paper says hash-based signatures could be used without hybridation only with few signature queries or large signatures, which describes a usage limit, not a stronger guarantee. Confirm the exact parameter set and its signature budget in SP 800-208 and the RFCs before deployment.

Must we replace LMS and XMSS signatures now?

The sources do not say that LMS or XMSS must be replaced today. They set dates for the broader migration. NIST IR 8547 (final, 27 October 2026) identifies the quantum-vulnerable standards and the quantum-resistant standards that products will need to adopt. NIST's project page says it plans to deprecate quantum-vulnerable algorithms and remove them from its standards "by 2035," with high-risk systems expected to transition much earlier. The UK NCSC sets milestones: by 2028 define goals, complete discovery and build an initial plan; by 2031 carry out the highest-priority activities; by 2035 complete migration. Whether a specific LMS or XMSS deployment is in scope depends on its risk and its data lifetime, so check with your compliance owner.

What do the sources say should replace LMS and XMSS?

The sources point to the new NIST standards published on 13 August 2024. FIPS 203 specifies ML-KEM for key encapsulation, FIPS 204 specifies ML-DSA for digital signatures, and FIPS 205 specifies SLH-DSA, which is based on SPHINCS+ and is also a hash-based signature standard. NIST encouraged administrators to begin moving to these standards as soon as possible and said "There is no need to wait for future standards." The NCSC describes LMS and XMSS as having "a more limited set of uses" than the newer algorithms. The sources do not state a direct replacement mapping for every LMS or XMSS use, so confirm the target algorithm against your own signing workflow and the standard's text on the FIPS 205 page.

Is signed data at risk from a quantum computer today?

The sources frame risk by data lifetime and by what is being protected. BSI says signatures generally need only short-term security, although long-lived signature keys still require timely changes. BSI names "store now, decrypt later" as a threat to confidentiality, which applies more to encrypted data than to signatures. Signed material that must stay verifiable for years, such as firmware, documents or software updates, is the case to review. The sources do not give a date for when a cryptographically relevant quantum computer will exist, so base your plan on the data's required lifetime rather than an estimated arrival date.

What should we ask a vendor about LMS or XMSS support?

Ask how the product manages signing state and whether it can prevent reuse. Under RFC 8554, the signer must maintain state across invocations, and reuse of a secret key state removes the security guarantees. Ask whether keys are created on hardware cryptographic modules that do not allow export, since NIST's SP 800-208 profile requires this, and whether NIST's planned revision to allow key export has been adopted. Ask which parameter sets and signature limits the product uses, how it counts signatures, and what happens when a key is exhausted. Ask for the version and the module under test, and confirm compatibility for the version you run rather than assuming the spec matches the product.

How DeployOpen works on this

DeployOpen approaches LMS and XMSS as a question of state management before it is a question of algorithms. Engagements start by identifying where stateful hash-based signatures would be used, whether the signing environment can enforce single use of each key state, and whether the organization can meet the requirements in NIST SP 800-208 and RFC 8554. The output is a written, bounded plan that fits the client's own infrastructure and compliance obligations.

How we scope

  • Each engagement starts with a written scope that names the signing systems, key lifetimes and document types in question.
  • We record whether the environment can keep signing state consistent across every invocation, since RFC 8554 requires this.
  • We confirm whether the client's keys must be created on hardware modules that do not allow export, as SP 800-208 requires.

How we build

  • We configure or review signing workflows so that a secret key state can be used for only one signature.
  • We test state handling for reuse, rollback and concurrent signing, the failure modes that RFC 8391 warns remove security guarantees.
  • We document how key generation, storage and state recovery are handled in the client's own environment.

How we hand over

  • Deliverables include a written description of the signing design, its state rules and the operational controls that enforce them.
  • We provide a list of open questions, such as NIST's planned revision on key export, for the client to track against published guidance.
  • Handover includes the migration context from NIST IR 8547 and the NCSC milestones, so the client can plan against dated targets.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins.
  • Ongoing support, upgrades and continuous testing of signing workflows are available as a retainer.
  • Before relying on LMS or XMSS, confirm compatibility with the exact versions and HSM configuration you run, using the vendor documentation and NIST SP 800-208.

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.