How LMS and HSS differ, and who meets the question
You are most likely to meet this question in a vendor document, a standard, a tender or an audit request that names LMS or HSS without saying which one is meant. LMS, the Leighton-Micali Signature scheme defined in RFC 8554, is a single hash-based signature tree. HSS, the Hierarchical Signature System from the same RFC, is its multi-level form. The distinction that matters most in practice is the number of levels, L, because it sets how many signatures a key can produce and how long the public key takes to generate. RFC 8554 says L may be between one and eight inclusive, and that a single tree is simply HSS with one level, as RFC 9802 also describes.
The question usually arises in three places. The first is firmware signing, where a device verifies signed images and the vendor must state the tree height and level count. The second is certificates and certificate revocation lists, where RFC 9708 and RFC 9802 define how HSS/LMS public keys and signatures are encoded in CMS, X.509 certificates and CRLs. The third is stateful signature requirements: NIST SP 800-208 approves LMS and HSS, but its project page says key and signature generation must run in hardware modules that do not allow secret keying material to be exported. Confirm with the vendor which level count and tree heights a product uses, and whether its signing hardware meets that requirement, before relying on either scheme.
LMS and HSS side by side: definitions, documents, status and parameters
This table compares LMS (single tree) and HSS (multi-level trees) across their defining documents, status, purpose, level count, signature capacity, example sizes and key generation times, and where each is supported. Read each row across both columns to see what changes when a single tree becomes a hierarchy. The main takeaway is that HSS adds signature capacity and faster key setup at the cost of a more involved state management design.
| Attribute | LMS (single tree) | HSS (multi-level trees) |
|---|---|---|
| What it is | A stateful hash-based signature scheme using a single Merkle tree of one-time signature keys | The hierarchical form of LMS, where a tree of trees chains signatures across one to eight levels |
| Defining document and date | RFC 8554 (April 2019), an Informational document from the IRTF Crypto Forum Research Group, not a Standards Track specification | RFC 8554 (April 2019), an Informational document from the IRTF Crypto Forum Research Group, not a Standards Track specification |
| Status and purpose | Single-tree LMS is the HSS case with the number of levels equal to 1, and all implementations must support it | Multi-level form for larger signature capacity, with L between one and eight inclusive per RFC 8554 |
| Number of levels | 1 | Between 1 and 8 inclusive |
| Signature capacity per tree | A tree of height h signs at most 2^h messages, for example 32,768 at height 15 | Two levels of height-h trees sign 2^(2h) messages, and an example with L=3 and h=10 signs over a billion messages |
| Example signature size (Winternitz W=8) | About 1,616 bytes at height 15, 1,776 at height 20, 1,936 at height 25 (RFC 8554 Table 3) | About 3,172 bytes for 15/10, 3,332 for 20/10 and 3,652 for 25/15 (RFC 8554 Table 3) |
| Key generation time | About 6 seconds at height 15, about 3 minutes at height 20 and about 1.5 hours at height 25 (RFC 8554 Table 3) | Takes about the time of its top-level tree, and RFC 8554 says it is significantly quicker to initialize than a single tall tree |
| Where supported | RFC 8554, RFC 9708 for CMS, RFC 9802 for X.509, and NIST SP 800-208 for approved parameter sets | RFC 8554, RFC 9708 for CMS, RFC 9802 for X.509, and NIST SP 800-208 for approved parameter sets |
What LMS and HSS are, and where practitioners meet each
LMS, the Leighton-Micali Signature scheme, is a hash-based signature system defined in RFC 8554, an Informational document from the IRTF Crypto Forum Research Group. In its one-level form, a single Merkle tree of height h holds all of the one-time keys a key pair can use. RFC 8554 says that all implementations must support HSS with L=1, and RFC 9802 describes single-tree LMS as HSS with the number of levels equal to 1, so the one-level case is the base of the wider family rather than a separate design.
- Signature capacity: RFC 8554 says a single LMS tree of height h signs at most 2^h messages. The defined tree typecodes give 32 signatures for height 5, 1,024 for height 10, 32,768 for height 15, 1,048,576 for height 20 and 33,554,432 for height 25.
- Key generation time: RFC 8554 reports that generating the public key of a single tree is the main drawback, with about 6 seconds for height 15, about 3 minutes for height 20 and about 1.5 hours for height 25 under the measured conditions.
- Signature size: With Winternitz parameter W=8, RFC 8554 gives 1,616 bytes for height 15, 1,776 bytes for height 20 and 1,936 bytes for height 25.
- Stateful use: A single LMS key is stateful. The leaf counter must be stored before a signature is released, so that a crash and reboot cannot cause a one-time key to be reused. RFC 8554 says developers should not use LMS except in systems that prevent the reuse of secret key states.
- Where it appears: Single-tree LMS is the form most often met in firmware and software update signing, where a device verifies images against a public key provisioned in advance.
Before relying on a specific height, confirm the tree size, the Winternitz parameter and the state-handling design against RFC 8554 and the implementation you run.
HSS, the Hierarchical Signature System, is the multi-level form of LMS. RFC 8554 defines it and says the number of levels L is between one and eight inclusive. The top-level tree signs the public keys of trees one level down, and the bottom tree signs the messages. This lets a key pair cover far more signatures than a single tree of the same height, while the public key generation cost stays close to that of the top-level tree. NIST SP 800-208, published in October 2020, also specifies HSS, along with its counterpart XMSS-MT, and NIST's stateful hash-based signature project page notes that it approves only some of the parameter sets in RFC 8554.
- Level count and capacity: RFC 8554 says a two-level scheme with height-h trees signs 2^(2h) messages, and its example with L=3 and h=10 at each level signs over a billion messages.
- Key generation time: RFC 8554 says a two-level tree is significantly quicker to initialize than a single tree of equal capacity, and that a two-level scheme takes about the time of its top-level tree. Its measured signature sizes are 3,172 bytes for a 15/10 layout, 3,332 bytes for 20/10 and 3,652 bytes for 25/15.
- Parameter sets per level: RFC 8554 says different HSS levels may use different parameter sets, but the set chosen for a given level must not change once the key exists.
- Key reserve in RAM: For hierarchical schemes, RFC 8554 recommends keeping the second-level key in RAM only and regenerating it on restart, rather than storing it.
- Standards references: HSS is defined in RFC 8554 and in NIST SP 800-208. RFC 9708 carries it into CMS, and RFC 9802 into X.509 certificates and CRLs, as described in the other tabs.
Check the level count and per-level parameter sets against the implementation and against SP 800-208, because NIST's project page says approval covers only some parameter sets.
LMS and HSS are met in three main places in the sources supplied. In firmware and software update signing, a single-tree or small HSS key verifies images on a device. In CMS, RFC 9708 defines the identifier id-alg-hss-lms-hashsig, which RFC 9708 dated January 2025 as a Standards Track document that obsoletes RFC 8708. In X.509 certificates and CRLs, RFC 9802, dated June 2025 and also Standards Track, defines HSS using the OID 1.2.840.113549.1.9.16.3.17 with the parameters field absent. Each place has its own encoding rules, so the same key can look different depending on the container.
- Firmware signing: Verification happens on a device with a public key provisioned in advance. The single-tree case is common here because the verifier only needs one public key and a signature.
- CMS (RFC 9708): The public key is an OCTET STRING holding the level count L followed by the LMS public key, with the parameters field absent. RFC 9708 supports LMS tree heights of 5, 10, 15, 20 and 25, and requires each LMS key pair in an HSS tree to be generated independently.
- X.509 (RFC 9802): The same OID and absent parameters field apply to certificates and CRLs. RFC 9802 requires that the SP 800-208 security requirements be followed.
- Stateful key management: The key-handling requirements in RFC 8554 and SP 800-208 apply across all three uses. The leaf counter must persist before release.
- Hardware requirement: NIST's project page says SP 800-208 requires key and signature generation to run in hardware modules that do not allow secret keying material to be exported, and that a revision enabling key export is in work with no publication date given.
Before deploying, confirm which document governs your container and which key-handling rules your hardware and procedures can meet.
Five differences that matter in practice for LMS and HSS
A single LMS tree and an HSS hierarchy with two or more levels differ in how many signatures one key can make, how long key generation takes, how large signatures get, and how the second-level key is held in memory. Each card below is a consequence to check before choosing a tree shape and its parameter sets.
Signature capacity per key
A single tree of height h signs at most 2^h messages, while a two-level scheme with height-h trees signs 2^(2h) messages. RFC 8554 gives an illustrative example with L=3 and h=10 at each level that signs over a billion messages. Check the capacity against the expected number of signing operations over the key's life, since a single tree of height 25 signs about 33.5 million messages.
RFC 8554Key generation time at setup
RFC 8554 reports that a single height-25 tree takes about 1.5 hours to generate its public key, which is the main drawback of a single large tree. A two-level scheme takes about the time of its top-level tree, so it initializes significantly faster. Confirm the generation time on your own hardware before scheduling key creation in a provisioning window.
- Single height-25 tree
- About 1.5 hours
Signature size growth across levels
Adding levels increases signature size, because each level contributes its own authentication path and one-time signature. RFC 8554 Table 3, measured with Winternitz parameter W=8, gives 1,936 bytes for a single height-25 tree and 3,652 bytes for a 25/15 two-level scheme. Budget bandwidth and storage for the largest signature your protocol will carry, not the single-tree figure.
RFC 8554 Table 3Second-level key state in RAM
RFC 8554 recommends keeping the second-level key in RAM only and regenerating it on restart, rather than storing it. The private-key leaf counter must still be stored before a signature is released, so that a crash and reboot cannot cause key reuse. Confirm that your signing service persists the counter durably and that restart logic regenerates the lower-level key correctly.
Fixed parameter set per level
RFC 8554 allows different HSS levels to use different parameter sets, but the set used for a given level must not change once the key is in use. Changing a level's parameter set mid-life breaks the key's structure rather than extending it. Record the parameter set for each level at key creation and enforce that record in key management tooling.
Where LMS and HSS appear: CMS, X.509, firmware and standards documents
If you need to find out whether a system can carry LMS or HSS signatures, start with the specifications that define how the scheme is placed inside existing formats. For signed data in Cryptographic Message Syntax, RFC 9708 defines the algorithm identifier id-alg-hss-lms-hashsig. Its public key is an OCTET STRING that holds the number of levels L followed by the LMS public key, and its parameters field is absent. RFC 9708 supports LMS tree heights of 5, 10, 15, 20 and 25, and it requires that each LMS key pair in an HSS tree be generated independently of the others. A CMS implementation that lists this identifier can be tested against those heights and that key structure.
For X.509 certificates and certificate revocation lists, RFC 9802 defines HSS using the object identifier 1.2.840.113549.1.9.16.3.17, again with the parameters field absent. RFC 9802 also requires that the security requirements of NIST SP 800-208 be followed. SP 800-208 specifies LMS and XMSS together with their multi-tree forms, HSS and XMSS-MT, and NIST's project page says it approves only some of the parameter sets in RFC 8554, namely those using SHA-256 or SHAKE256 with 192-bit or 256-bit outputs. The same page says key and signature generation must run in hardware modules that do not allow secret keying material to be exported. Before you accept a certificate or signing design that relies on HSS, confirm which parameter sets it uses and whether its key generation meets that hardware requirement.
The sources listed for this section do not name specific products, libraries, firmware images or vendor modules that support LMS or HSS, so this page cannot confirm support for any of them. Ask each vendor whether its release supports id-alg-hss-lms-hashsig in CMS, the HSS object identifier in X.509, and the SP 800-208 parameter sets. Check the answers against the vendor documentation for the exact version you run, and treat the absence of an answer as unconfirmed support.
How to work out whether a single LMS tree or an HSS hierarchy applies to your system
This sequence tests the signing volume, key generation time and state handling of your system against the single-tree and multi-level options, so you can tell which form of LMS fits the design. It ends with a parameter set and hardware module requirement you can confirm in vendor documentation.
Check the signing requirement and contract
Start with the requirement your system or contract sets: which hash-based scheme is named, and which parameter set or security level is required. Confirm whether the requirement names LMS, HSS or both, since RFC 8554 defines HSS as the multi-level form and RFC 9802 describes single-tree LMS as HSS with one level. Record the required scheme in writing. The step is complete when you can state the scheme and parameter set the contract or requirement names, with the source document cited.
Estimate signatures needed per key
Count how many signatures one key pair must produce over its lifetime, using your expected signing rate and key lifetime. Compare that number to the capacity of the candidate design: RFC 8554 says a single tree of height h signs at most 2^h messages, and a two-level scheme with height-h trees signs 2^(2h). Use the tree heights RFC 8554 and RFC 9708 list (5, 10, 15, 20 and 25). The step is complete when you have a signature count and the smallest single-tree height or HSS layout that covers it.
Check tolerable key generation time
Measure how long key generation can take in your environment before a key goes into service. RFC 8554 gives approximate generation times for single trees: about 6 seconds for height 15, about 3 minutes for height 20 and about 1.5 hours for height 25. It also says a two-level tree takes about the time of its top-level tree and is significantly quicker to initialize than a single tree of the same capacity. The step is complete when you have a maximum acceptable generation time and have checked which layouts stay within it.
Design the state handling
Decide how the private-key leaf counter will be stored and protected. RFC 8554 says the counter must be stored before a signature is released, so a crash and reboot cannot cause key reuse, and says a one-time key must not sign another message. For hierarchical schemes, it recommends keeping the second-level key in RAM only and regenerating it on restart. Also note RFC 8554's warning that LMS should not be used except in systems that prevent reuse of secret key states. The step is complete when you have a written counter-storage and restart procedure that the design can enforce.
Confirm parameter set and hardware requirement
Check the approved parameter set and hardware module requirement in SP 800-208 and in the vendor documentation for the product you plan to use. NIST's project page says SP 800-208 approves only some RFC 8554 and RFC 8391 parameter sets, those using SHA-256 or SHAKE256 with 192-bit or 256-bit outputs, and requires key and signature generation to run in hardware modules that do not allow secret keying material to be exported. The page also says a revision to allow key export is in progress, with no publication date given. The step is complete when the vendor confirms the chosen parameter set and module in writing, or you have documented the gap.
Common mix-ups between LMS, HSS, XMSS and the older RFC names
LMS, HSS, XMSS and their RFC identifiers are easy to conflate in vendor documents, certificate profiles and tender responses. The cards below separate the names that describe the same scheme at different levels from the names that describe different schemes, and point to the checks that resolve each one.
HSS is not a separate algorithm from LMS
HSS is the hierarchical form of LMS, and RFC 8554 says all implementations must support HSS with L=1, which is single-tree LMS. RFC 9802 describes single-tree LMS as HSS with the number of levels equal to 1. A vendor claim of HSS support therefore does not, by itself, establish that the multi-level form is implemented. Check the level count L the product accepts, which RFC 8554 caps at eight, and whether the configuration uses one tree or several.
RFC 8554RFC 8708 and RFC 9708 are not interchangeable
RFC 9708 (January 2025, Standards Track) obsoletes RFC 8708 and defines the CMS identifier id-alg-hss-lms-hashsig for HSS/LMS. Documents, parsers or profiles that still cite RFC 8708 are referring to a superseded specification. When reviewing a CMS signature or a certificate profile, confirm which RFC the implementation follows and whether its public key encoding matches the current text, including the level count followed by the LMS public key with the parameters field absent.
LMS is not XMSS-MT or stateless SLH-DSA
NIST SP 800-208 specifies two stateful hash-based schemes, LMS and XMSS, with their multi-tree variants HSS and XMSS-MT. These are stateful schemes that must track a leaf counter. SLH-DSA, specified in FIPS 205, is stateless. Treating these as one family is a mistake, because a deployment that assumes statelessness for an LMS key can reuse a one-time key after a crash. Confirm which family a product implements before applying any state management guidance.
SP 800-208A vendor's LMS claim may not cover an HSS hierarchy
A product may support single-tree LMS, the L=1 case every implementation must support, without supporting the multi-level HSS form. The two differ in signature capacity and key generation time. Ask the vendor to state the level count range and the tree heights it accepts, and whether the parameter set can differ between levels. RFC 8554 says different levels may use different parameter sets, but the set for a given level must not change.
Key generation time is not signing time
RFC 8554 Table 3 reports key generation times, such as about 6 seconds for height 15, about 3 minutes for height 20 and about 1.5 hours for height 25 in a single tree. These figures describe initialization of the public key and do not measure how long a signature takes. A reader who uses them as a signing latency estimate will misjudge operational cost. Ask for the signing time separately and confirm which hardware and tree height the figure was measured against.
Questions people ask about LMS and HSS
Are LMS and HSS the same thing?
No, but they are closely related. LMS, the Leighton-Micali Signature scheme, is the single-tree hash-based signature defined in RFC 8554. HSS, the Hierarchical Signature System, is the multi-level form of LMS, also defined in RFC 8554. RFC 9802 describes single-tree LMS as HSS with the number of levels equal to 1, so an LMS signature can be understood as the one-level case of HSS. The number of levels L may be between one and eight inclusive. Because the sources describe a single scheme with a level count, check your library's documentation to confirm whether it exposes LMS and HSS as separate interfaces or as one interface with a configurable level count.
Which one is newer, LMS or HSS?
The sources do not establish that either one is newer. RFC 8554 defines both LMS and HSS in one document, and it states that all implementations must support HSS with L=1, which is the single-tree case. Later documents build on that base: RFC 9708, published in January 2025, defines the use of HSS/LMS in CMS and obsoletes RFC 8708, and RFC 9802, published in June 2025, defines HSS in X.509 certificates and CRLs. Those later documents describe how the scheme is carried in formats, not a newer version of the algorithm. Confirm the RFC version your product implements.
Which one does a rule or customer require?
The sources do not say that any rule or customer requires LMS or HSS specifically. NIST SP 800-208, published in October 2020, specifies both LMS and XMSS and their multi-tree variants HSS and XMSS-MT, so it covers both forms. NIST's project page states that SP 800-208 approves only some parameter sets in RFC 8554 and RFC 8391, those using SHA-256 or SHAKE256 with 192-bit or 256-bit outputs, and that key and signature generation must run in hardware modules that do not allow secret keying material to be exported. Ask the customer or regulator which document and which parameter sets they reference, then check your configuration against them.
Do I need both LMS and HSS?
The sources suggest that you do not need to choose between them as separate products. Since single-tree LMS is HSS with one level, a system that supports HSS can produce single-tree signatures by setting L=1. The practical choice is the number of levels and the tree height at each level, not which name to use. RFC 8554 says different HSS levels may use different parameter sets, but the set used for a given level must not change. Whether a single tree or a multi-level tree fits your workload depends on the signature count you need and the key generation time you can accept, which the sources describe in the next questions.
How many signatures can each scheme make?
A single LMS tree of height h signs at most 2^h messages. A two-level scheme with height-h trees signs 2^(2h) messages, and RFC 8554 gives an example with L=3 and h=10 at each level that signs over a billion messages. RFC 8554 defines LMS tree heights H5, H10, H15, H20 and H25, which give 32, 1,024, 32,768, 1,048,576 and 33,554,432 signatures per tree. Each signature consumes one leaf, so the leaf counter must advance with every signature. Confirm the height and level count in your key settings against your planned signing volume.
Why does key generation take longer for taller trees?
Generating an LMS public key requires computing every leaf of the tree, so the work grows with the number of leaves. RFC 8554 Table 3 gives key generation times of about 6 seconds for height 15, about 3 minutes for height 20 and about 1.5 hours for height 25. RFC 8554 identifies the time to generate the public key as the substantial drawback of a single tree, and says a two-level tree is significantly quicker to initialize, with the time roughly matching its top-level tree. These figures come from the RFC's measurements, so measure key generation on your own hardware before committing to a height.
What happens if the signing state is lost or reused?
Reusing a one-time key is a security failure. RFC 8554 says a one-time key must not be used to sign another message, and that developers should not use LMS except in systems that prevent the reuse of secret key states. The RFC requires storing the private-key leaf counter before a signature is released, so that a crash and reboot cannot cause key reuse. For hierarchical schemes it recommends keeping the second-level key in RAM only and regenerating it on restart. Your deployment must therefore handle state atomically, and it should confirm that it meets the stateful requirements of SP 800-208.
What should I ask a vendor about LMS and HSS support?
Ask which RFC version and which parameter sets the product implements, and whether it supports HSS with more than one level or only L=1. Ask how it stores and advances the leaf counter, and whether it prevents key reuse after a crash or restore. Ask which signature sizes and key generation times it measured, on what hardware, and whether it runs key generation and signing inside a hardware module that does not export secret keying material, as NIST's project page describes. Ask whether it has been validated under a NIST program and for which version. The sources do not report vendor-specific figures, so request them in writing.
How DeployOpen helps with post-quantum migration work involving LMS and HSS
DeployOpen scopes LMS and HSS work around the questions that decide the design: whether a single tree or a multi-level hierarchy fits the signing volume, how key generation time and state handling affect the rollout, and which parameter sets the target environment can run. Each engagement produces written, reviewable artifacts that a security lead or auditor can check against their own requirements.
How we scope
- We record the expected number of signatures per key and the signing volume the system must support over its lifetime.
- We document which HSS levels and tree heights the scope covers, and confirm that each level's parameter set stays fixed once chosen.
- We agree the written scope, deliverables and timelines with the client before work starts, as engagements are fixed-scope.
How we build
- We set up key generation and the private-key leaf counter storage so the counter is persisted before any signature is released.
- We configure the second-level key in RAM only, where the chosen design calls for it, and test the regeneration path after a restart.
- We test the setup for key reuse risks, including crash and reboot scenarios, and record the results against the agreed scope.
How we hand over
- We deliver documentation covering the chosen tree structure, parameter sets, state management procedures and key lifecycle steps.
- We provide the configuration, scripts and test evidence the client's security and compliance teams need for their own review.
- We walk through the design and operating procedures with the teams that will run the system after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for systems that keep signing over time.
- We can review the setup again when signing volume, tree height or the target environment changes.
- Confirm with the standards and vendor documentation for the versions you run before relying on any LMS or HSS implementation.

