Requirements for adopting LMS and XMSS firmware signing

Adopting LMS or XMSS firmware signing depends less on the algorithm than on keeping one-time signing state strictly unique, so key custody, state handling and verifier code must all be in place before release.

On this page

What a team needs in place before signing firmware with LMS or XMSS

A firmware engineer can adopt LMS or XMSS for firmware signing only after three things are in place: a key custody design that keeps the private key out of reach of cloning, a state handling mechanism that guarantees no one-time key is ever used twice, and verification code in the boot chain that matches the exact parameter set the signer uses. Both schemes are stateful hash-based signature schemes approved in NIST SP 800-208, final version dated 29 October 2020, which defines LMS and XMSS and their multi-tree variants HSS and XMSS^MT. Approval in that document does not remove the operational burden, which sits almost entirely with the signer. The sources listed on this page define the state rules in RFC 8554 (LMS), RFC 8391 (XMSS), RFC 9802 (certificate encodings, Proposed Standard, June 2025) and RFC 10033 (state and backup management, Informational, September 2026). The first three RFCs are Informational or Proposed Standard documents, and none of them is binding on commercial products. They are the references a team should cite when it sets its own requirements.

This page is written for firmware engineers, release engineers and product security leads, who share the decisions below. Firmware engineers own the verifier: the boot code must support the parameter set that signing uses, and RFC 8391 makes signing with any parameter set optional, so the verifier and signer must be chosen together. A public example is the MCUboot LMS pull request, which verifies with only the sha256 w8 h10 set, a 56-byte public key and a 1452-byte signature, and notes that reusing a one-time index needs special handling in signing workflows (MCUboot PR 2707). Release engineers own the signing workflow, which must record each leaf index before a signature is released and must know the total signature count in advance, as RFC 9802 requires. Security leads should confirm that the team's key custody design follows RFC 10033 section 4, which calls for dedicated cryptographic hardware because it provides rollback-resistant counters, and that backup procedures do not duplicate the private key.

Before the first production signature, the team should confirm four points with its hardware and tooling vendors: whether the signing module can export key material (the Thales TCT page states that SP 800-208 requires the HSM to prevent export, so keys cannot be cloned for high availability), how the module persists state atomically so no signature is released before the counter is updated, what happens to volatile state on power loss (RFC 10033 section 5.9 notes that over-provisioning to offset losses adds roughly 2% to 12% to signature length), and whether a rollback path exists. The sources listed on this page do not say how any specific product implements these controls, so each claim should be checked against that product's documentation and tested on the team's own devices.

Which requirement applies to which scheme, document and version

This table lists each requirement by source document, with the section, date and scheme it applies to, across state handling, storage, hardware and verification. Read each row against the scheme your firmware uses, since LMS, HSS, XMSS and XMSS^MT carry different obligations. The main takeaway is that one-time signing state must be protected in every row, and the MCUboot verifier covers only one parameter set.

Source and sectionState and storage ruleHardware and verifier ruleScheme and date
RFC 8554, LMSA private key value that has signed one message must not sign another, and the leaf counter must be saved to nonvolatile storage before the signature is released.Reusing a secret key state removes all cryptographic security guarantees. The RFC does not prescribe hardware.LMS, April 2019, Informational (IRTF)
RFC 8391, XMSSImplementations must not reuse a key state, and the schemes should be used only in systems that prevent state reuse.Implementations must verify the REQUIRED parameter sets. Signing with any parameter set is optional, so the verifier must match the chosen set.XMSS with WOTS+, XMSS^MT, May 2018, Informational (IRTF)
RFC 10033 section 4 and section 5The system must ensure no two signing operations issue from the same state, and signature generation and state update must be atomic, so no signature is released before state is irrevocably updated.Dedicated cryptographic hardware is recommended for rollback-resistant counters. Verifiers need no state management but must trust the signer not to reuse state.State and backup management, September 2026, Informational
RFC 10033 section 5.8 and section 5.9For time-based schemes, device time must never move backwards. Reserved keys in volatile memory are lost on power loss or reset.Over-provisioning to offset losses adds roughly 2% to 12% to signature length, according to the RFC.Time-based signing and volatile key reserves, September 2026
RFC 9802, X.509 encodingsSigners must know their total signature count in advance, record one-time key indexes checked before each release, and freeze signing and audit released signatures if reuse is detected.Standard backup methods such as duplicating private keys can cause one-time key reuse. Algorithm identifiers cover HSS, XMSS and XMSSMT in certificates and CRLs.X.509 encodings, June 2025, Proposed Standard
NIST SP 800-208The HSM must not allow export of private keying material, so keys cannot be cloned for high availability or backed up to cold storage, according to the Thales TCT summary.Keying material should be generated across a distributed set of HSMs, per the Thales TCT summary of SP 800-208.LMS, HSS, XMSS and XMSS^MT, final version 29 October 2020
MCUboot PR 2707The author notes that reusing a one-time signing index needs special handling in signing workflows.The verifier covers only the sha256 w8 h10 parameter set, with a 56-byte public key and a 1452-byte signature. Confirm that your firmware uses this set before relying on it.LMS verifier using Mbed TLS 4.x, pull request 2707

Why one-time signing state is the hard requirement

LMS and XMSS keys change with every signature. Each signature consumes part of the private key, so the signer must track which one-time keys have already been used. RFC 8554 states that a private key value that has signed one message MUST NOT be used to sign another, and RFC 8391 says that if a key state is reused, no cryptographic security guarantees remain. Reusing a one-time key state is therefore not a minor fault that weakens a signature. It removes the guarantees the scheme exists to provide. RFC 10033 makes the consequence concrete: double-signing with the same one-time signature key allows forgeries. For firmware signing, that means an attacker could produce update images that verify as genuine, so the state handling is the security boundary, not a detail of the signing tool.

The verification side is different. Verifiers keep no state and perform no state management, so the firmware in a device or boot chain only checks signatures against the public key. That simplicity places the whole burden on the signer. RFC 10033 says verifiers must trust the signer not to reuse state, and the firmware team cannot verify that from the device. Engineers should confirm, in writing, who holds the signing state, where it is stored and how it is protected from loss, cloning or rollback. Public signature logs can help detect reuse after the fact, so a release process should record the signatures it issues and check them against any published logs the chosen tooling supports.

For the requirements, this means the signing workflow must be designed around state before the key is generated. RFC 10033 requires that no two signing operations be issued from the same state, and that state update and signature release be atomic, so a signature is not released before the state is irrevocably updated. RFC 9802 adds that a signer should check one-time key indexes before each signature and freeze signing if reuse is detected. Standard backup and restore methods, such as duplicating private keys, can themselves cause reuse, so teams should ask any vendor or tool how it prevents state rollback and cloning before adopting it.

Key custody, state storage, verifier code and signing workflow

Adopting LMS or XMSS for firmware signing puts four things in place before the first signature: where the private key lives, how the one-time state is stored, which verifier code the boot chain carries, and how signing runs day to day. Each depends on the others, so a gap in one undermines the rest.

Key custody and hardware

RFC 10033 recommends dedicated cryptographic hardware because it can provide rollback-resistant counters, and warns that live cloning of a virtual machine can easily lead to state reuse. Thales TCT reports that SP 800-208 requires an HSM to disallow export of private keying material, so the key cannot be cloned for high availability or backed up to cold storage. Confirm with the vendor whether the signing HSM meets these conditions, and how a lost device is recovered without copying the key.

RFC 10033 text

Atomic state storage

RFC 8554 requires that the leaf counter be saved to nonvolatile storage before a signature is released, and RFC 10033 section 4 requires that signature generation and state update be atomic, so no signature leaves until the state is irrevocably updated. For a firmware pipeline, this means the signing service must not release an image signature if the counter write has failed. Ask how the tooling handles a power loss between the counter write and the signature output.

Verifier code in the boot chain

RFC 8391 makes support for signing with any parameter set optional, though verification of its REQUIRED sets is mandatory. The verifier in the boot chain must therefore match the parameter set the signer uses, or valid images will be rejected or invalid ones accepted. The MCUboot LMS pull request, for example, verifies with Mbed TLS 4.x using only the sha256 w8 h10 set, a 56-byte public key and a 1452-byte signature. Check the exact set in both the signer and the bootloader before the first release.

MCUboot PR 2707

Signature count planning

RFC 9802 advises that signers know their total signature count in advance, so the key lifetime fits the expected number of releases. It also recommends keeping a record of one-time key indexes checked before each signature is released, and freezing signing and auditing released signatures if reuse is detected. Plan the number of images per key and confirm how the service behaves after a reuse alarm before production use.

RFC 9802 text

Recovery and backup limits

RFC 9802 notes that standard backup and restore methods, such as duplicating private keys, can cause one-time key reuse. RFC 10033 section 6 proposes extra bottom-level trees from random seeds, held in hardware and used only for worst-case recovery, and section 5.9 notes that over-provisioning to offset losses adds roughly 2% to 12% to signature length. Restore cannot simply copy the key, so ask the vendor which recovery path it supports and what it costs in signature size.

How the requirements change by deployment and key-handling model

When signing happens inside a dedicated hardware security module, the module is the main place where one-time signature state is enforced. RFC 10033 recommends dedicated cryptographic hardware because it can provide rollback-resistant counters, which is the property the state logic depends on. The private keying material is held inside the device, and the operator's job is to confirm that the module's state handling meets the requirements the RFCs set out. Thales TCT states that SP 800-208 requires the HSM to not allow export of private keying material, so keys cannot be cloned for high availability or backed up to cold storage, and keying material should be generated across a distributed set of HSMs.

  • Rollback-resistant counter: confirm that the module's counter survives power loss and cannot be reset or rolled back by an operator or a restored image.
  • No key export: confirm that the module does not allow export of the private key, which rules out ordinary duplication as a backup method.
  • Atomic update: confirm that the module releases no signature until the state update is durable, as RFC 10033 section 4 requires.
  • Distributed generation: confirm whether keying material is generated across more than one HSM, as Thales TCT recommends for SP 800-208.
  • Vendor-stated behavior: ask the module vendor in writing which state and backup behavior it documents for LMS and XMSS.

Before relying on a module, ask the vendor to show how it records state, how it behaves after a power cut mid-signature, and how key recovery works without export.

Steps to take before the first LMS or XMSS release

This sequence settles the parameter set, key custody, state handling, signature accounting, power-loss behavior, clock rules and reuse response before any firmware is signed. Each step ends with a check a reviewer can confirm, so the first release can be traced back to a documented decision.

  1. Pick the parameter set and confirm verifier support

    Firmware engineers choose the LMS or XMSS parameter set and confirm that the verification code in the boot chain accepts exactly that set. RFC 8391 makes signing with any parameter set optional, so a verifier built for one set will reject signatures from another. The MCUboot LMS pull request (PR 2707) verifies only the sha256 w8 h10 set with a 56-byte public key and a 1452-byte signature. Confirm that the verifier in your build matches that set, or check the vendor's build for the same. The check is a written parameter set decision and a test that verifies a signature produced with that set on the target device.

  2. Choose key custody with no export

    Security leads decide where the private key lives before any key is generated. Thales TCT states that SP 800-208 requires an HSM to not allow export of private keying material, so the key cannot be cloned for high availability or copied to cold storage. RFC 10033 section 4 recommends dedicated cryptographic hardware because it enables rollback-resistant counters. Generate the key across a distributed set of HSMs where your design allows it. The check is a key custody record that names the HSM model, confirms that export is disabled, and states who can authorize signing.

  3. Design nonvolatile state storage and ordering

    Firmware engineers design where the one-time key state is stored and the order in which it is written. RFC 8554 requires that the leaf counter be saved to nonvolatile storage before the signature is released. RFC 10033 section 4 requires that signature generation and state update be atomic, so no signature leaves the signer before its state is irrevocably updated. RFC 10033 also lists atomicity, consistency, isolation and durability as goals for state management. Note that live VM cloning can easily lead to state reuse, and that standard backup and restore can cause one-time key reuse under RFC 9802. The check is a design document that shows the state-then-release sequence, plus a fault-injection test that interrupts signing between the state write and the release.

  4. Set the signature count and index log

    The signing team sets the total number of signatures the key will produce before the first release. RFC 9802 says signers must know their total signature count in advance and should keep a record of one-time key indexes checked before each signature is released. Decide where that record lives and who can read it. Keep the count and the index log under the same custody controls as the key. The check is a signed record of the total count and a log format that captures each index before release, reviewed by someone outside the signing team.

  5. Plan power-loss handling for reserved keys

    Firmware and platform engineers plan for what happens when the signing device loses power mid-operation. RFC 10033 section 5.9 says reserved keys live in volatile memory and are lost if the device loses power or is reset. It also notes that over-provisioning to offset such losses adds roughly 2% to 12% to signature length. Decide how many keys to reserve, how lost keys are accounted for, and how this affects the signature length your verifier must accept. RFC 10033 section 6 describes generating extra bottom-level trees from random seeds for worst-case recovery, which you can review as an option. The check is a documented loss model and a test that cuts power during a signing run and confirms the index log is consistent afterward.

  6. Lock clock behavior for time-based schemes

    Platform engineers fix the clock rules for any time-based scheme before deployment. RFC 10033 section 5.8 says the time on signing devices must never move backwards, because doing so can cause double-signing. Specify how the device reads time, whether it is protected against rollback, and what happens when the clock is reset or replaced. The check is a clock specification that the signing device enforces, and a test that sets the clock backward and confirms that signing refuses to proceed.

  7. Write the reuse detection and freeze procedure

    The security team writes the response to a detected reuse before the first release. RFC 9802 says signers should freeze signing and audit released signatures if reuse is detected. Define who can declare a freeze, how signing resumes, and how the released signatures are audited. Note that RFC 10033 says double-signing with the same one-time key allows forgeries. The check is an approved procedure with named roles, and a tabletop exercise that walks through a simulated reuse event.

  8. Publish the signature log

    The release team sets up a public signature log before the first release. RFC 10033 section 4 says verifiers need no state management but must trust the signer not to reuse state, and that public signature logs can help detect reuse. Decide what the log records, where it is published, and how outside parties can check it. The check is a published log location and a verification step that confirms the first released signatures appear in it.

What the sources on this page do not settle, and what to ask

The sources listed on this page cover the signing and state rules well, but they do not show which shipping products support LMS or XMSS, how HSMs handle key export, or how backup works beyond the RFC 10033 proposal. Each card below names one gap and the question to put to the vendor or project before adoption.

Which products and releases ship LMS or XMSS

The sources listed on this page do not say which firmware signing products, bootloaders or HSM releases ship LMS or XMSS signing today. The MCUboot pull request shows verification with a single parameter set, sha256 w8 h10, but it is a pull request, not a released feature, and it does not establish support in any release. Ask each vendor or project for the exact product, version and component that signs and verifies with LMS or XMSS, and whether the parameter sets they verify match the ones they sign with. Ask for the release notes that record the change.

MCUboot pull request

Non-export key model in the HSM

The Thales TCT material says SP 800-208 requires the HSM to block export of private keying material, but the sources listed on this page do not say whether a given HSM offers that non-export key model in its shipping firmware. Ask the vendor whether the HSM and its firmware can generate and hold LMS or XMSS keys without export, which firmware version provides that, and how keys are spread across a set of HSMs for availability. Request the certification and firmware version that the answer applies to.

Thales TCT page

Backup path beyond RFC 10033 section 6

RFC 10033 section 6 proposes exporting random seeds for extra bottom-level trees, for use only in worst-case recovery, but the sources listed on this page do not describe how a team would implement that path in practice. Ask the vendor how a backup or disaster-recovery copy of signing state is created, stored and restored without allowing a one-time key index to be reused, and how the restored device confirms its state before signing again. Ask who approves the recovery and how it is logged.

RFC 10033 text

Reuse detection and audit records

RFC 9802 says a signer should record the one-time key indexes it has used, check that record before each signature is released, and freeze signing if reuse is detected. The sources listed on this page do not say whether any firmware signing tool keeps that record or what it does on detected reuse. Ask the vendor where the index record lives, whether it is written before signature release, and what the tool does when a conflict appears. Ask for the procedure that freezes and audits released signatures.

RFC 9802 text

Verifier parameter sets in boot code

RFC 8391 makes support for signing with any parameter set optional, so a boot chain must verify the sets its signer actually uses. The sources listed on this page do not say which parameter sets a given bootloader or verification library accepts. Ask the project or vendor which LMS and XMSS parameter sets its verification code supports, the public key and signature sizes each one produces, and how a verifier rejects a set it does not support.

RFC 8391 text

What goes wrong when state is mishandled or verifiers mismatch

The most serious failure with LMS and XMSS firmware signing is reuse of one-time signing state. RFC 8554 states that a private key value that has signed one message MUST NOT be used to sign another, and it requires the leaf counter to be saved to nonvolatile storage before the signature is released. RFC 10033 adds that the system must ensure no two signing operations are issued from the same state, and that signature generation and state update are atomic. Reuse can happen in several ways. A virtual machine snapshot or restore can roll the counter back to an earlier value, so the signer reissues indexes it already used. A backup that duplicates the private key gives two copies that each sign with the same one-time keys, which RFC 9802 identifies as a source of one-time key reuse. A power loss can lose reserved keys held in volatile memory, which RFC 10033 section 5.9 describes as a risk on signing devices. A clock that moves backward is a risk for time-based schemes, since RFC 10033 section 5.8 says it can cause double-signing. Confirm with your signing platform's vendor whether its counters survive snapshots, restores and resets, and whether backup procedures can ever export key material.

When reuse happens, no cryptographic guarantee remains for the affected keys. RFC 8391 says that if a key state is reused, no cryptographic security guarantees remain, and RFC 10033 warns that double-signing with the same one-time key allows forgeries. Treat any detected reuse as an incident: RFC 9802 advises freezing signing and auditing the signatures already released. Plan for this before deployment. RFC 9802 says signers should keep a record of one-time key indexes checked before each signature is released, and should know their total signature count in advance. A firmware team should decide who may freeze a key, how the affected images are identified, and how devices are told to reject them.

Verifier mismatch is a separate failure. RFC 8391 makes implementation of its REQUIRED parameter sets mandatory for verification but leaves signing with any set optional, so a verifier built for one parameter set cannot check a signature made with another. The MCUboot LMS pull request shows the constraint in practice: its verifier uses only the sha256 w8 h10 parameter set, with a 56-byte public key and a 1452-byte signature. Before release, confirm the parameter set, public key length and signature length in the signing tool match the verifier in the boot chain, and test that a device rejects an image signed with a different set. Verifiers need no state management, but they depend on the signer not reusing state, and RFC 10033 notes that public signature logs can help detect reuse.

Questions firmware engineers ask about LMS and XMSS signing requirements

Are LMS and XMSS quantum safe?

The sources support a narrower statement: LMS and XMSS are hash-based stateful signature schemes that NIST approved in SP 800-208, final version dated 29 October 2020, and that RFC 8554 and RFC 8391 specify. Whether a particular firmware product is quantum safe is a separate question that depends on its implementation, key handling and verifier, so do not treat the standard's approval as a product claim. Confirm the exact parameter sets and state handling your product uses with the vendor and in its documentation. The main operational risk the sources emphasize is not the algorithm itself but state reuse: RFC 8391 notes that if a key state is reused, no cryptographic security guarantees remain.

Can a standard HSM be used for LMS or XMSS signing keys?

Only if the HSM meets the non-export requirement. Thales TCT states that SP 800-208 requires the HSM to not allow export of private keying material, so keys cannot be cloned for high availability or backed up to cold storage, and keying material should be generated across a distributed set of HSMs. RFC 10033 also recommends dedicated cryptographic hardware because it enables rollback-resistant counters. Ask the HSM vendor whether it supports stateful hash-based signing, whether its counters survive power loss and reset, and whether it can enforce that keys never leave the module. A general-purpose HSM without these properties may not be suitable.

Can signing keys and state be backed up?

Backup is restricted. RFC 9802 says standard backup and restore methods, such as duplicating private keys, can cause one-time key reuse, and RFC 8554 states that a private key value that has signed one message must not be used to sign another. The sources describe one recovery method: RFC 10033 section 6 proposes generating extra bottom-level trees from random seeds, exporting each seed with a signed root node and deleting it from the hardware module, for use only in worst-case recovery. Confirm with your HSM and signing tool vendor which recovery method they implement, and how it prevents state reuse after restore.

What breaks in older verifiers when moving to LMS or XMSS?

Verifiers need code that matches the parameter set the signer uses. RFC 8391 requires implementations to support verifying its REQUIRED parameter sets, but makes signing with any set optional, so verification code in a boot chain must match the chosen set. The MCUboot LMS pull request verifies with Mbed TLS 4.x using only the sha256 w8 h10 parameter set, a 56-byte public key and a 1452-byte signature. An older verifier that lacks LMS or XMSS support, or that expects a different parameter set or signature length, will reject signed images. Check the signature and key sizes against your flash partitions and the verifier's buffer limits before rollout.

What drives the cost of adopting LMS or XMSS firmware signing?

The main cost drivers are HSM hardware, signature length, and state management work. Dedicated HSMs that support stateful signing and enforce non-export are a recurring purchase and support decision. Signature length also drives cost: RFC 10033 section 5.9 says over-provisioning to offset losses in volatile reserved keys adds roughly 2% to 12% to signature length, which affects storage in constrained devices. Ask vendors to quote the HSM hardware, the number of devices needed for distributed key generation, the expected signature size for your parameter set, and any one-time integration effort for the verifier. The sources do not give a price, so request figures in writing.

Can our team do this work internally, or do we need outside help?

A team can do this internally if it has the skills to implement a state management system with atomic updates, durable storage and tested recovery, and if it can meet the requirements in RFC 10033. The required work includes ensuring no two signing operations issue from the same state, making signature generation and state update atomic, and never letting the time on signing devices move backwards for time-based schemes. Teams without experience in these areas, or without HSMs that support stateful signing, may need outside help for design review, integration and testing. DeployOpen offers planning, implementation and testing services for self-hosted systems, and its engagements are scoped in writing before work starts.

How do we confirm state reuse is detected and handled?

RFC 9802 says signers must know their total signature count in advance, should keep a record of one-time key indexes checked before each signature is released, and should freeze signing and audit released signatures if reuse is detected. RFC 10033 section 4 adds that public signature logs can help detect reuse. Before rollout, ask your team to document the total signature budget, where index records are stored, how the signer halts on a detected reuse, and who receives the alert. Test this path in a lab environment before deploying to devices.

How DeployOpen helps teams plan LMS and XMSS firmware signing

DeployOpen approaches adoption of LMS and XMSS firmware signing as an engineering project with three parts: the signing key and its state, the verification code in the boot chain, and the operational controls around both. Each engagement is scoped in writing before work starts, so the team knows which decisions are theirs and which are ours.

How we scope

  • We confirm the parameter set and verifier your boot chain needs, since RFC 8391 leaves signing with any parameter set optional.
  • We record the total signature count you need in advance, as RFC 9802 expects signers to know it before the first signature.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.

How we build

  • We design the state storage so the leaf counter reaches nonvolatile memory before any signature is released, per RFC 8554.
  • We test that signing and state update are atomic, so no two signing operations can ever issue from the same state, per RFC 10033.
  • We check that the signing device's clock never moves backwards for any time-based scheme, since RFC 10033 warns this can cause double-signing.

How we hand over

  • We document key custody, including why private key export is blocked and how backup avoids duplicating key state, as RFC 9802 warns.
  • We deliver the verification code and its tested parameter set, with the signature and public key sizes your team needs to plan storage.
  • We provide a written runbook for signing, reserved-key exhaustion, and the recovery steps your team follows if state reuse is detected.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so the signing setup stays current with your firmware releases.
  • We can retest the signing workflow after changes to hardware, the signing service, or the boot chain verifier.
  • Before go-live, confirm with the vendor or project which LMS and XMSS parameter sets their verifier supports today.

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.