What is LMS (Leighton-Micali Signature)?

LMS (Leighton-Micali Signature) is a stateful hash-based signature system defined in RFC 8554 and covered by NIST SP 800-208. This page explains what it is, where it appears and what it means for your post-quantum migration.

On this page

What is LMS and which standard defines it?

You have most likely met LMS (Leighton-Micali Signature) in a vendor document, a standard, a tender or an audit request, and you need to know what it is and which text governs it. LMS is a stateful hash-based digital signature system used to sign data. It is defined in RFC 8554, an Informational RFC from the IRTF Crypto Forum Research Group, and it is covered by NIST SP 800-208, Recommendation for Stateful Hash-Based Signature Schemes. RFC 8554 describes the LM-OTS one-time signature method and the LMS and HSS signature systems built on it, and it traces its design to work by Lamport, Diffie, Winternitz and Merkle as modified by Leighton and Micali in 1995.

Engineers, security leads, auditors and procurement reviewers tend to meet LMS in three places: firmware and software signing questionnaires, the algorithm lists that vendors publish for code and certificate signing, and tender language asking which post-quantum signature schemes a product supports. Certificate and message-signing work also meets it through its identifiers, since RFC 9802 and RFC 9708 define how HSS, the hierarchy built on LMS, appears in X.509 certificates and CMS signed data. Your first question on any vendor answer should be which of these uses it claims, and which parameter set and version it names.

The defining operational fact is that LMS is a one-time-key-based system that must be managed carefully. Each one-time key may sign only once, so the signer must track its state persistently and must not reuse a key after a failure or a restore from backup. RFC 8554 says developers "should not use the schemes described here except in systems that prevent the reuse of secret key states". When you review a vendor, ask how the product stores and advances key state, how it prevents rollback, and who is responsible for the signing environment. Confirm these points against the RFC and NIST SP 800-208, and against the vendor's own documentation for the versions you run.

Which LMS names, typecodes and parameter sets appear in specifications?

This table lists the names, typecodes and identifiers that LMS uses across RFC 8554, RFC 9858, RFC 9708 and the IANA registry, so you can match what a product reports to the right parameter set. A signer and a verifier must use the same parameter set, and you should confirm the identifiers your product uses against the IANA registry before relying on them.

IdentifierWhere it is definedValue or rangeWhat to check
LMS (Leighton-Micali Signature)RFC 8554Single Merkle tree scheme built on LM-OTSConfirm the product names LMS, not only HSS
HSS (Hierarchical Signature System)RFC 9708Hierarchy of LMS treesA one-level HSS key is valid LMS, so check the tree depth
LMS SHA-256 typecodesRFC 85540x00000005 to 0x00000009 (H5 to H25)Match the height used by the signer and verifier
LM-OTS SHA-256 typecodesRFC 85540x00000001 to 0x00000004 (W1 to W8)Match the Winternitz parameter used by the signer and verifier
SHA-256/192 additionsRFC 9858 (IANA registry)LMS 0x0000000A to 0x0000000E; LM-OTS 0x00000005 to 0x00000008Confirm the product supports the 192-bit sets before relying on them
SHAKE256 additionsRFC 9858 (IANA registry)LMS 0x0000000F to 0x00000018; LM-OTS 0x00000009 to 0x00000010Confirm the product supports SHAKE256 variants and their sizes
CMS identifierRFC 9708OID 1.2.840.113549.1.9.16.3.17, parameters absentCheck the identifier in signed data matches this OID

Where do practitioners meet LMS in certificates, CMS and vendor documents?

LMS rarely arrives alone. It shows up as an identifier in certificates and signed messages, as the building block of the HSS hierarchy, and as a named option in the guidance and vendor paperwork that governs its use. Each place below is a different question to answer before you accept or deploy an LMS-based system.

X.509 certificates and CRLs

RFC 9802 specifies algorithm identifiers and ASN.1 encodings for HSS, XMSS and XMSS^MT in X.509 certificates and certificate revocation lists. Its identifier for HSS is the same OID used in CMS, so a certificate carrying an HSS key signals LMS to any parser that reads it. Because LMS is stateful, check how the issuing CA tracks one-time key use before trusting a certificate chain built on it. Confirm which CRL and OCSP tooling in your environment understands these identifiers at all.

RFC 9802 text

CMS signed data

RFC 9708 defines HSS/LMS for use in CMS signed data, with the identifier id-alg-hss-lms-hashsig and parameters absent. It obsoletes RFC 8708. Teams signing software packages, documents or firmware with CMS will meet this identifier in signer info fields. Verify that your signing and verification tools implement RFC 9708 rather than only the earlier profile, and confirm how they track the private key state between signatures.

RFC 9708 text

The HSS hierarchy

HSS is a hierarchy of LMS trees, and LMS is the single-tree scheme built on LM-OTS. Practitioners meet HSS when a vendor says it supports LMS, because the deployed key is often an HSS key with one or more levels. An LMS key with L equal to 1 is a valid HSS key. Ask which tree depth and which LM-OTS and LMS parameter sets the vendor uses, since these determine signature size and the number of signatures a key can produce.

RFC 8554 text

NIST SP 800-208 as the governing recommendation

NIST SP 800-208 is the recommendation that specifies LMS, XMSS and their multi-tree variants, and RFC 9802 makes it a normative reference. Auditors and government reviewers will ask whether a deployment meets its security requirements, not only whether it uses an LMS identifier. Confirm which parameter sets and state-management controls your implementation follows, and keep that mapping in your documentation so it can be checked.

NIST SP 800-208

Vendor documents and tender language

Vendor answers and tender responses often name LMS or HSS without stating the parameter set, the state-management method or whether the product implements RFC 9802 or RFC 9708. Request those details in writing. Ask the vendor to name the RFC and version it implements, whether it enforces single use of each private key state, and how keys are backed up without reuse. Use the vendor's own documentation as the authority for what the product does.

Audit requests and evidence

Audit requests about LMS typically ask which algorithms are in use, where state is stored, and how reuse of a one-time key is prevented. RFC 8554 warns that these schemes should not be used except in systems that prevent reuse of secret key states, so auditors will want evidence of that control. Prepare an inventory entry for each LMS key that names its parameter set, its storage location and the procedure that advances its state. Treat undocumented state handling as a finding to resolve before the audit.

How does LMS sign data in a system?

LMS signs messages with a Merkle tree of one-time keys. Each leaf of the tree holds a one-time signature key, and a single LMS key can produce only a limited number of signatures before its leaves are exhausted. RFC 9708 describes LMS as a single Merkle tree scheme built on the LM-OTS one-time signature method, and RFC 8554 defines the LM-OTS and LMS signature systems. For an engineer, the practical consequence is that the signing capacity of a key is fixed when it is generated. The tree height and Winternitz parameter are chosen from the registered parameter sets, and the sets published in RFC 8554 and RFC 9858 list the tree heights (H5 through H25) and parameter options each key type supports. Confirm which set your product uses, since the signature length and the number of signatures a key can produce both depend on it.

HSS, the Hierarchical Signature System, is a hierarchy of LMS trees. A top-level tree signs the keys of lower-level trees, which in turn sign the messages, so the total capacity is spread across several trees. A single-tree LMS key is a valid HSS key with L = 1, which is why certificates and CMS signatures carry the HSS identifier rather than a separate LMS identifier. RFC 9708 gives the CMS algorithm identifier id-alg-hss-lms-hashsig the OID 1.2.840.113549.1.9.16.3.17, and RFC 9802 uses the same OID for HSS in X.509 certificates. When you review a certificate or signed document, a single-tree LMS key may therefore appear under the HSS identifier, and that is expected rather than a sign of a different algorithm.

The most important operational requirement is state management. RFC 8554 says that once a private key value has signed one message it must not sign another, that the leaf index must be incremented before a signature is released, and that the new value must be stored in nonvolatile storage before release. RFC 8554 also says that developers should not use the scheme except in systems that prevent the reuse of secret key states. Before deploying LMS, confirm with the vendor how signing state is stored, backed up and protected from rollback or cloning, including virtual machine snapshots and restored backups. A key whose state is reused can produce forgeable signatures, so this check belongs in the procurement and architecture review, not left to the implementation team alone.

Is LMS standardized and which bodies recommend it?

LMS is standardized, but not all of its documents carry the same status. The core specification is RFC 8554, published in April 2019 as an Informational RFC from the IRTF Crypto Forum Research Group by D. McGrew, M. Curcio and S. Fluhrer of Cisco Systems. It defines the LM-OTS one-time signature and the LMS and HSS signature systems. NIST followed with NIST SP 800-208, Recommendation for Stateful Hash-Based Signature Schemes, finalized in October 2020 after a draft dated 11 December 2019. SP 800-208 covers LMS and XMSS, along with their multi-tree variants HSS and XMSS-MT. Informational means the RFC records a design for the community and does not set a mandatory standard. Standards Track means the IETF has advanced the document as a specification for implementers to follow.

The later RFCs fill in how LMS is carried in practice. RFC 9708, published in January 2025 as a Standards Track RFC by Russ Housley, defines HSS/LMS in CMS signed data and obsoletes RFC 8708. RFC 9802, published in June 2025 as a Standards Track RFC, covers HSS, XMSS and XMSS^MT in X.509 certificates and certificate revocation lists, and it makes NIST SP 800-208 a normative reference. RFC 9858, published in October 2025 as an Informational RFC by Scott Fluhrer and Quynh Dang, adds LMS and LM-OTS parameter sets based on SHA-256/192, SHAKE256/256 and SHAKE256/192 and is intended to be compatible with SP 800-208. Confirm the status of each document on the IETF datatracker before citing it in a tender or audit response.

On the question of who recommends LMS, the sources support a narrow answer. NIST SP 800-208 is a NIST recommendation, and its requirements for stateful schemes apply to US federal systems that follow NIST guidance. NIST and the IETF do not make these documents binding on commercial organizations, and NSA's CNSA 2.0 suite is aimed at national security systems. A commercial organization can use SP 800-208 and the RFCs as technical references, and it may need to meet them through a contract with a federal customer. Check each customer requirement and ask your vendor which document and version its LMS implementation follows.

What should you check when LMS appears in your post-quantum inventory?

This sequence establishes where LMS signatures are issued or verified, whether the implementation follows the RFC 8554 state rules, and which parameter sets, identifiers and vendor commitments apply. It ends with a documented record that tells you which systems can run safely and which need isolation.

  1. Find every system that issues or verifies LMS

    Start with your inventory and search for LMS, HSS and XMSS across signing services, firmware update pipelines, code-signing tools, document signing platforms, certificate authorities and any component that handles CMS signed data. Record the owner, the signing role (issue or verify) and the environment for each system. Treat a system as in scope if it references LMS, HSS or XMSS in configuration, library dependencies or vendor documentation, even if it is not currently enabled. The step is complete when you have a list where every entry names a system, an owner and a signing role.

  2. Confirm the parameter set and typecode in use

    For each system on the list, identify the LMS and LM-OTS typecodes it uses, such as LMS_SHA256_M32_H5 (0x00000005) or LMOTS_SHA256_N32_W1 (0x00000001). RFC 8554 defines these codes, and the IANA LMS registry lists the additional SHA-256/192 and SHAKE256 sets added by RFC 9858. Ask the vendor or check the configuration for the exact set in use, since signature length and tree height differ across them. The step closes when each system has a recorded typecode pair and you can point to the source that states it.

  3. Check the state-management rules in the implementation

    RFC 8554 requires that a private key value sign only one message, that the leaf index be incremented before any signature is released, and that a new state be stored in nonvolatile storage before release. Review how each implementation handles these rules, including what happens after a crash, a restore from backup, or a virtual machine clone. Ask whether the product tests for or prevents state reuse. The step produces a written answer per system stating whether the rules are enforced, enforced with conditions, or not enforced.

  4. Ask the vendor which RFC and version it implements

    Request in writing the RFC number, document version and product version the implementation follows, for example RFC 8554 for LMS and HSS, or RFC 9708 for CMS signed data. Also ask which NIST SP 800-208 requirements the vendor has taken into account. Do not assume two implementations are compatible because both claim LMS support. Keep the vendor's answer on file with the system record. The step is complete when each vendor has responded with an identified RFC, a version and a date.

  5. Confirm the OID in certificates and CMS signatures

    Where LMS or HSS appears in certificates or CMS signed data, verify the object identifier in use. RFC 9708 assigns 1.2.840.113549.1.9.16.3.17 to HSS/LMS in CMS, and RFC 9802 uses the same identifier in X.509 certificates. Inspect sample certificates or signed objects from each system and compare the identifiers with the values in the RFCs. Flag any mismatch for vendor review, because a mismatched identifier means a verifier may reject the signature or misidentify the algorithm. The step closes with a record of the identifier observed for each system.

  6. Plan isolation for systems without guaranteed state

    Identify any system that cannot guarantee persistent, correctly ordered state across failures, restores, cloning or concurrent signing. RFC 8554 advises against using the scheme except where reuse of secret key state is prevented, so these systems need a decision before they go into production use. Options to evaluate include moving signing to a hardware or service boundary that controls state, or restricting the system to verification only. Document the decision, the owner and the review date. The step is complete when every system has a documented signing status of either safe to sign with stated controls or isolated.

Which LMS, HSS and XMSS terms get mixed up in tenders?

Tender documents and vendor answers often use LMS, HSS, XMSS and SLH-DSA loosely, as if they were interchangeable. They are related but distinct, and some differences affect signature size and compatibility. Match the exact scheme and parameter set named in a specification, not just the family name.

LMS and HSS are not the same

LMS is a single Merkle tree scheme built on the LM-OTS one-time signature method. HSS is a hierarchy of LMS trees built on top of LMS, so an HSS key with one level is simply an LMS key. When a tender asks for LMS, confirm whether the vendor supports the single-tree form, the multi-level HSS form, or both, since RFC 9802 and CMS identifiers treat them under distinct identifiers.

RFC 9708

LMS and SLH-DSA are different schemes

LMS is stateful, so the signer must track a leaf index and never reuse a one-time key. SLH-DSA, standardized in FIPS 205, is stateless and does not require that state tracking. The two are not interchangeable in deployment. SLH-DSA is also not compatible with SPHINCS+, the earlier submission name, so a SPHINCS+ identifier in a document does not automatically mean a FIPS 205 implementation.

RFC 9909

RFC 9858 sets are not the originals

RFC 9858 adds LMS and LM-OTS parameter sets using SHA-256/192, SHAKE256/256 and SHAKE256/192, alongside the original SHA-256/256 sets. The 192-bit options reduce signature size by roughly 35 to 40 percent compared with the 256-bit sets, according to RFC 9858. A tender that names only the family or the original set does not cover these variants, so check the exact parameter set the product implements.

RFC 9858

SHAKE256/256 offers no size advantage

RFC 9858 states that the SHAKE256/256 sets offer no size advantage over the existing SHA-256 sets. Selecting a SHAKE variant for a smaller signature is therefore not supported by the RFC. Whether a SHAKE set is required for another reason, such as a stated hash policy, is a question to put to the vendor and to the requirements owner, not something the RFC decides.

RFC 9858

Match the parameter set, not the family

A bare reference to LMS, HSS or XMSS leaves the sizes, hash function and tree height undefined. Ask for the exact parameter set names, such as LMS_SHA256_M32_H5 or the LM-OTS typecode, and check them against the IANA LMS registry. The registry lists the SHA-256/192 and SHAKE sets separately, so the identifiers in a certificate or CMS signature tell you which set is in use.

IANA LMS registry

How do LMS, HSS, LM-OTS and the standards fit together?

The diagram starts at LM-OTS, the one-time signature method that LMS uses as its building block. LMS combines many LM-OTS keys into a single Merkle tree, and its public key is the tree root. HSS arranges several LMS trees in a hierarchy, with each level signing the keys of the level below. The governing documents attach to each layer: RFC 8554 defines LM-OTS, LMS and HSS, NIST SP 800-208 sets the security recommendation, RFC 9708 and RFC 9802 carry HSS identifiers in CMS and X.509, and RFC 9858 adds parameter sets. When checking a deployment, confirm which parameter set and typecode each layer uses, and that the signing state is never reused.

LM-OTS underlies LMS, LMS trees form HSS, and each layer maps to its governing RFC or NIST document.

What do people search about LMS and what does it change for them?

What does LMS stand for in post-quantum cryptography?

LMS stands for Leighton-Micali Signature. RFC 8554 describes it as a hash-based signature system adapted from the work of Lamport, Diffie, Winternitz and Merkle, as modified by Leighton and Micali in 1995. For practitioners, the useful point is that LMS security rests on hash functions rather than on lattice or code problems, which is why it appears alongside other hash-based schemes in standards and vendor documents. The name is what you will see in parameter registries, such as the typecodes assigned to LMS variants, and in the OID that identifies it in certificates and signed messages. When a vendor document uses the abbreviation without expansion, read it as Leighton-Micali Signature and then confirm the exact variant (for example, the hash function and tree height) the product implements, because the name alone does not tell you which parameter set is in use.

Is LMS the same as HSS, and how do they differ?

No. LMS and HSS are related but not the same thing. RFC 9708 describes LMS as a single Merkle tree scheme built on the LM-OTS one-time signature method, and HSS as a hierarchy of LMS trees built on top of LMS. In practice this means an LMS key is one tree, while an HSS key stacks several levels of LMS trees to allow a larger total number of signatures. Both appear with the same identifier in certificates and CMS signed data, which is why documents often use the names interchangeably. RFC 9802 notes that LMS with L = 1 is a valid HSS key, so the two overlap at the simplest case. When reviewing a product, ask whether it implements single-tree LMS, multi-level HSS, or both, and which tree heights and levels it supports, since these choices affect how many signatures a key can produce and how the key must be managed.

Is LMS standardized, and who published the standard?

LMS is specified in RFC 8554, Leighton-Micali Hash-Based Signatures, published in April 2019 as an Informational RFC from the IRTF Crypto Forum Research Group. The authors were D. McGrew, M. Curcio and S. Fluhrer of Cisco Systems. RFC 8554 defines the LM-OTS one-time signature and the LMS and HSS signature systems. NIST also covers LMS in NIST SP 800-208, Recommendation for Stateful Hash-Based Signature Schemes, which was finalized in October 2020 after a draft of 11 December 2019. NIST SP 800-208 specifies LMS and XMSS and their multi-tree variants, HSS and XMSS-MT. Later RFCs extend the family: RFC 9708 (January 2025) defines HSS/LMS in CMS signed data, RFC 9802 (June 2025) covers X.509 certificates, and RFC 9858 (October 2025, Informational) adds parameter sets using SHA-256/192 and SHAKE256. Note that RFC 8554 is Informational, while RFC 9708 and RFC 9802 are Standards Track. Confirm which document your procurement or audit team expects before citing one.

Do our products use LMS, and how can we confirm it?

Start by asking the vendor, and then verify the answer from evidence you can check yourself. A vendor statement that it supports LMS is not enough on its own. Ask which LMS or HSS parameter sets are implemented (for example, the LMS_SHA256_M32 typecodes with a stated tree height, or the newer SHA-256/192 and SHAKE256 sets from RFC 9858), which LM-OTS variant is used, and in which product version and component the feature exists. Then check configuration, certificate profiles, signed-message formats and release notes for the identifiers named in the standards: the OID 1.2.840.113549.1.9.16.3.17 for HSS/LMS and the typecodes listed in the IANA registry. For your own environment, inventory where signatures are produced or verified, because LMS often appears in firmware signing, software update signing and specialized PKI rather than in general web traffic. Record the version, parameter set and key-state handling you confirmed, so the evidence survives an audit.

What does LMS change for certificates and CMS signatures?

LMS changes the algorithm identifier that certificates and signed messages carry. The OID 1.2.840.113549.1.9.16.3.17 identifies id-alg-hss-lms-hashsig, which RFC 9708 defines for HSS/LMS in CMS signed data, with parameters absent. RFC 9802 repeats this OID for HSS in X.509 certificates and certificate revocation lists. Because LMS with L = 1 is a valid HSS key, the same identifier covers both forms, so a verifier that understands HSS will handle the single-tree case. For a certificate authority or a signing service, the practical change is that the key and signature formats are different from RSA or ECDSA, so existing parsers, HSM profiles and validation libraries must support the identifier before the change can be deployed. Check each component in the signing chain, not only the endpoint, and test with a non-production CA before changing production profiles.

What should we ask a vendor about LMS state management and parameter sets?

Ask about state first, because it is the defining operational risk of LMS. RFC 8554 says that once a private key value has signed one message it must not sign another, that the leaf index must be incremented before a signature is released, and that the new value must be stored in nonvolatile storage before release. RFC 8554 also says developers should not use the schemes except in systems that prevent the reuse of secret key states. Ask how the product stores and increments the leaf index, how it survives power loss, crashes, backup restores and cloned virtual machines, and whether it can be configured to refuse to sign when state cannot be confirmed. On parameter sets, ask which typecodes are supported, the tree height and levels, and the remaining signature capacity of each key. Ask how the vendor tests these behaviors and what their documentation says about key lifetime. These answers determine whether the deployment is safe to operate, not only whether it is compliant.

How DeployOpen works on this

DeployOpen helps teams that run LMS-based hash-based signatures inside their own infrastructure. We scope the work in writing, build and configure the systems that issue and verify LMS signatures, and hand over documentation your security and compliance teams can review. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we scope

  • We confirm which systems sign or verify LMS or HSS signatures, such as firmware signing, code signing or certificate tooling.
  • We agree in writing whether state management for LM-OTS leaf indexes is covered, since reuse of a one-time key is a stated failure mode.
  • We record which parameter sets are in use, for example SHA-256 or SHAKE256 variants, so the written scope matches the deployed configuration.

How we build

  • We deploy LMS and HSS signing components in your infrastructure, with the leaf index stored in nonvolatile storage before any signature is released.
  • We configure verification paths for HSS in CMS signed data and X.509 certificates, using the identifiers your standards profile specifies.
  • We test that a signing key cannot be reused, and that signing failures leave the key state consistent, before handover.

How we hand over

  • We deliver documentation of key state handling, parameter choices, and the systems that hold LMS private key material.
  • We provide a record of configuration and test results that your auditors or internal reviewers can check against their own controls.
  • We walk your operations team through procedures for key state backup, restoration and retirement of signing keys.

How we support

  • Ongoing support covers upgrades, monitoring of signing state and retesting after configuration changes, available as a retainer.
  • We review updates to the relevant RFCs and NIST guidance with you, and confirm what changes for your deployed versions.
  • Confirm with the vendor or standards document for the exact version you run, since compatibility is not assumed across products.

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.