LMS and XMSS are the post-quantum signature schemes NSA asks firmware signers to adopt now, but a single reused signing state can let an attacker forge signatures. Their security rests on simple, well understood hash functions, which is why standards bodies trusted them early. The price is state: every signature consumes a one time key, and the signer must never use the same one twice, across crashes, backups, clones or failover. This guide sets out the current status of LMS and XMSS in the IETF, NIST and NSA documents, where they are approved, the ways state gets reused in practice, the controls that prevent it, and when stateless SLH-DSA is the better choice. It is written for cryptographers, firmware and code signing engineers and PKI teams; for the wider programme see the Post-Quantum Cryptography Migration Guide.
Status checked against the primary sources on 26 November 2026. Standards and agency guidance change, so confirm dates against the current documents before relying on them.
Key takeaways
- Approved, but only for narrow use. NIST SP 800-208 (October 2020) and the final NIST IR 8547 (October 2026) both describe stateful hash-based signatures as not intended for general use, with software and firmware signing as the fit.
- NSA prefers LMS and XMSS now for firmware. The CNSA 2.0 FAQ (version 2.1, December 2024) approves single tree LMS and XMSS, recommends LMS with SHA-256/192, disallows HSS and XMSS^MT for national security systems, and wants the transition to start now rather than wait for ML-DSA.
- State reuse is the real risk. RFC 8554 and RFC 8391 both say that if a private key state is used twice, security guarantees are lost and forging a signature on a new message becomes feasible.
- Hardware is a requirement, not an option. SP 800-208 requires key and signature generation in FIPS 140-2 or FIPS 140-3 Level 3 or higher modules that never export private keying material, even encrypted.
- Choose SLH-DSA when you cannot guarantee state. FIPS 205 SLH-DSA (August 2024) is stateless, at the cost of larger signatures and slower signing.
What stateful hash-based signatures are
A hash-based signature scheme builds a many time signature from one time signatures (OTS). Each OTS key pair can sign exactly one message. A Merkle tree hashes all the OTS public keys together into a single root, which becomes the long term public key. A signature contains the OTS signature, the index of the leaf used, and the authentication path from that leaf to the root. A tree of height h therefore holds 2^h one time keys and can sign at most 2^h messages.
- LMS: the Leighton-Micali scheme, specified in RFC 8554 (April 2019), uses LM-OTS as its one time scheme. HSS, the Hierarchical Signature System in the same RFC, chains LMS trees so a top tree signs the roots of lower trees.
- XMSS: the eXtended Merkle Signature Scheme, specified in RFC 8391 (May 2018), uses WOTS+ as its one time scheme. XMSS^MT is the multi tree variant.
- Why stateful: the signer must track which leaves are used. The "state" is that index. If it ever goes backwards, a leaf signs a second message, and an attacker with both signatures can forge.
- Why trusted: security depends only on properties of the underlying hash function, not on a new mathematical problem, which is why NIST published SP 800-208 years before the lattice based standards.
Standards status
| Document | Status and date | What it says about LMS and XMSS |
|---|---|---|
| IETF RFC 8554 | Informational, IRTF CFRG stream, April 2019 | Specifies LM-OTS, LMS and HSS; warns against use unless the system prevents reuse of secret key states |
| IETF RFC 8391 | Informational, IRTF CFRG stream, May 2018 | Specifies WOTS+, XMSS and XMSS^MT; SHA2-256 parameter sets mandatory for deployment; signing APIs must return updated state |
| NIST SP 800-208 | Final, 29 October 2020 | Approves LMS, HSS, XMSS and XMSS^MT with SHA-256, SHA-256/192, SHAKE256/256 and SHAKE256/192 parameter sets; hardware module requirement; not suitable for general use |
| NIST FIPS 205 (SLH-DSA) | Final, 13 August 2024 | Stateless hash-based signature based on SPHINCS+; the stateless alternative |
| NIST IR 8547 | Final, 27 October 2026 (initial draft November 2024) | Lists LMS/HSS and XMSS/XMSS^MT as post-quantum signature algorithms at category 3 and 5; not intended for general use, may be useful for software and firmware signing |
| NSA CNSA 2.0 FAQ | Version 2.1, December 2024 | LMS and XMSS approved for all classification levels; HSS and XMSS^MT not allowed; LMS SHA-256/192 preferred; equipment transitions expected by 31 December 2030 |
Parameter sets approved by NIST
| Scheme | Hash options in SP 800-208 | Tree heights | Notes |
|---|---|---|---|
| LMS (and HSS levels) | SHA-256, SHA-256/192, SHAKE256/256, SHAKE256/192 | 5, 10, 15, 20 or 25 | HSS chains LMS trees; NSA does not allow HSS for national security systems |
| XMSS | Same four options | 10, 16 or 20 | Single tree |
| XMSS^MT | Same four options | Total heights 20, 40 or 60, with varying layers | NSA does not allow XMSS^MT for national security systems |
SP 800-208 does not approve the RFC 8391 parameter sets based on SHAKE128, SHA-512 or the 512-bit SHAKE256 output, and it notes that the 192-bit variants offer weaker collision resistance than the 256-bit ones. NSA nonetheless names LMS with SHA-256/192 as its preferred set. For federal systems, IR 8547 sets RSA, ECDSA and EdDSA signatures as deprecated after 2030 and disallowed after 2035, with earlier deadlines for prioritised federal systems. See the CNSA 2.0 Transition.
Approved use cases
SP 800-208 describes the target as applications that need a signature scheme soon, will have a long lifetime and could not practically switch schemes after deployment, with firmware updates for constrained devices that may stay in service for decades as the example. That matches roots of trust burned into hardware.
- Firmware and boot chain signing: the main fit. A device can verify LMS or XMSS with only a hash function, which suits small boot ROMs. See the Firmware and Boot Security Guide.
- Software release signing: centralised, low volume, high value signing where a release pipeline calls one signing service. See the Code Signing Security Guide.
- National security systems: the CNSA 2.0 FAQ says NSS code signers must use CMVP validated hardware for signing, with no waivers, while verify only products need CAVP algorithm validation.
- Poor fits: TLS, document signing at user scale, per transaction signing, and any signer running on many replicas. IR 8547 notes that tracking indices is especially hard across distributed systems.
Choosing between LMS and XMSS
| Question | Guidance |
|---|---|
| Are you building for US national security systems? | Single tree LMS or XMSS only; NSA prefers LMS with SHA-256/192 |
| What does your HSM validate? | Use the scheme and parameter set your module's FIPS 140 certificate and CAVP listing cover |
| How many signatures over the key's life? | Size the tree height for the lifetime volume with a margin; single tree keys cannot be extended |
| Do you need signing in several places? | Outside NSS, multi tree HSS or XMSS^MT across modules (SP 800-208 Section 7); for NSS, consider ML-DSA or separate keys |
| What can the verifier run? | Both need only the hash function; match the verifier's boot ROM or library support |
State management risks
Every failure below ends the same way: a one time key signs two different messages. RFC 8554 is blunt that once that happens no cryptographic security guarantees remain.
| Failure mode | How state goes backwards | Prevention |
|---|---|---|
| Backup and restore | A private key and index are restored from a backup taken before later signatures | Never back up a single tree private key with its state; SP 800-208 prohibits export, so use distributed multi tree keys or separate keys per module |
| Virtual machine clones and snapshots | A software signer is cloned or reverted to a snapshot, and both copies sign from the same index | Do not sign in software or VMs; SP 800-208 requires hardware modules for key and signature generation |
| HSM cluster replication | Key material replicated to several HSMs that each keep their own counter | Use modules whose stateful key support prevents replication, or assign distinct sub keys per module |
| Crash before the counter is saved | The signature is released, then power fails before the new index is written | Increment and store the index in non-volatile storage before releasing the signature (SP 800-208 Section 8.1; RFC 8554) |
| Write caching | The counter update sits in a cache and is lost on power failure | SP 800-208 flags cached writes; use monotonic counters and synchronous writes |
| Load balancing and failover | Two signers hold copies of the key for availability | RFC 8391 requires partial keys or copies to be managed so each index signs only once; give each signer disjoint index ranges or its own key |
| Key exhaustion | All 2^h leaves are used and signing stops, or a team "resets" the counter | Monitor remaining signatures and plan the next key long before exhaustion |
Operational controls
- Select validated hardware: SP 800-208 requires FIPS 140-2 or FIPS 140-3 modules validated at Level 3 or higher physical security, operating only in an approved mode, with no bypass mode and the entropy source inside the boundary. See the HSM Deployment and Operations Guide.
- Plan availability without copying: SP 800-208 Section 7 describes a two level approach where a top level key signs the roots of bottom level trees held on different modules. Generate the bottom level keys up front, because the top level module is a single point of failure, and consider several top level keys on separate modules. For NSS, where HSS and XMSS^MT are not allowed, use separate single tree keys per module with each public key trusted by the verifier.
- Size for the lifetime: count releases, hotfixes, test signatures and emergency re-signing across the device's service life, and choose a tree height with headroom.
- Separate test and production keys: test signing consumes leaves and creates opportunities to clone state; keep it on separate keys and modules.
- Control who can sign: signing should run through a release pipeline service identity with approval gates, not interactive operator sessions. Log every signature with its leaf index.
- Plan revocation: SP 800-208 leaves revocation out of scope, so design the verifier's trust anchor update and key rotation path before the first device ships.
- Dual sign during transition: where verifiers vary, ship classical and hash-based signatures side by side until every verifier in the field supports the new scheme.
Detection and measurement
- Index monotonicity: alert if any logged leaf index repeats or decreases; a repeat is a key compromise event.
- Remaining capacity: track signatures remaining per key as a percentage, with alerts at agreed thresholds.
- Signing provenance: percentage of signatures made through the approved pipeline identity.
- Module integrity: HSM audit events for key replication, export attempts or restores on stateful keys (target zero).
- Verifier coverage: share of shipped device models whose boot chain verifies the hash-based signature.
Where identity fits
The signer is a machine identity with the power to make any firmware image trusted by every device. Treat the pipeline identity that calls the HSM as a privileged non-human identity: short lived credentials, approval for each release, and an inventory entry with an owner. See the Cryptographic Key Management Guide.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-12 Cryptographic Key Establishment and Management | State and key lifecycle in hardware |
| NIST SP 800-53 Rev 5 | SC-13 Cryptographic Protection | Use of approved algorithms and parameter sets |
| NIST SP 800-53 Rev 5 | SI-7 Software, Firmware, and Information Integrity; CM-14 Signed Components | Firmware and software signature verification |
| NIST CSF 2.0 | PR.PS-02 | Software maintained and replaced with integrity |
Comparison with SLH-DSA
SLH-DSA, specified in FIPS 205, is also hash-based but stateless: it removes the index that must never repeat, so keys can be backed up, replicated and used on several signers like any other key. IR 8547 likewise describes SLH-DSA as stateless and LMS and XMSS as stateful schemes needing strict index tracking.
| Factor | LMS / XMSS (SP 800-208) | SLH-DSA (FIPS 205) |
|---|---|---|
| State | Signer must track and never reuse an index | No state |
| Signature limit | Fixed by tree height (2^h per tree) | No practical per key limit for normal use |
| Signature size and signing speed | Smaller signatures, fast signing | Larger signatures and slower signing |
| Key handling | Hardware only, no export, no cloning | Standard key management and backup |
| CNSA 2.0 position | Approved now for firmware and software signing | Not in the CNSA 2.0 list |
| Best fit | Long lived roots of trust with a central HSM signer | Distributed or replicated signers, or teams that cannot guarantee state |
The CNSA 2.0 FAQ also notes that ML-DSA (FIPS 204) is approved for all signing use cases and may suit strategies needing more signatures than one LMS or XMSS key supports, or distributed signing. A practical rule: choose LMS or XMSS where a validated HSM signer, a bounded signature count and a long lived verifier coincide; choose SLH-DSA or ML-DSA where any of those is missing. See the ML-DSA and SLH-DSA Post-Quantum Signatures Guide.
Practitioner checklist
- Confirm each use case is firmware or software signing with a bounded, centrally controlled signature volume.
- For national security systems, use single tree LMS or XMSS only, preferably LMS with SHA-256/192, in CMVP validated hardware.
- Generate and sign only inside FIPS 140 Level 3 or higher modules that never export stateful private keys.
- Prohibit software signers, VM snapshots and key backups for stateful keys; design availability with separate keys or SP 800-208 Section 7 multi tree keys.
- Confirm the module stores the incremented index in non-volatile storage before releasing each signature.
- Size tree height for the full device lifetime and monitor remaining signatures.
- Log every signature with its leaf index and alert on any repeated or decreasing index.
- Define verifier trust anchor update and revocation before devices ship.
- Use SLH-DSA or ML-DSA wherever state cannot be guaranteed.
Standards and references
- NIST: SP 800-208, Recommendation for Stateful Hash-Based Signature Schemes
- IETF: RFC 8554, Leighton-Micali Hash-Based Signatures
- IETF: RFC 8391, XMSS: eXtended Merkle Signature Scheme
- NSA: The Commercial National Security Algorithm Suite 2.0 and Quantum Computing FAQ
- NIST: IR 8547, Transition to Post-Quantum Cryptography Standards
- NIST: FIPS 205, Stateless Hash-Based Digital Signature Standard
Related NHI Mgmt Group resources: Post-Quantum Cryptography Migration Guide · Post-Quantum Readiness Maturity Model · Firmware Signing vs Secure Boot · Post-Quantum Algorithms Compared