Where LMS and XMSS firmware signing use cryptography in your environment
The cryptography in LMS and XMSS firmware signing is hash-based signing with stateful one-time keys. Each signature is produced by a one-time key that is tied to a leaf in a Merkle tree, and the signer must track which leaf has already been used. That signing key state is the item to protect and record. RFC 8554 requires the leaf counter to be incremented and saved to nonvolatile storage before a signature is released, so that a crash and reboot cannot cause a one-time key to be reused. RFC 8391 makes the same point for XMSS, where a per-key index tracks the next leaf. If that state is rolled back or copied, the security guarantees of the scheme are lost, and RFC 10033 notes that double-signing with the same one-time key allows forgeries.
Your inventory entry for this topic should cover four areas: signing keys and key state, certificates, verification code, and update channels and integrations. For signing keys and key state, record where the private keys and their index or counter files live, which systems can write to them, how they are backed up, and whether any hierarchical second-level key is kept only in RAM and regenerated at startup, as RFC 8554 permits. For certificates, note whether LMS or XMSS keys appear in X.509 certificates under RFC 9802, which states that stateful hash-based keys are generally considered unsuitable for end-entity certificates and are more appropriate for root CAs. For verification code, record the parameter sets compiled into devices, for example the LMS height, levels and Winternitz values or the XMSS parameter string, and confirm the signature size each image carries. For update channels and integrations, list every build system, signing service and release pipeline that touches the keys.
This entry matters now because the state handling in these schemes is a property of your release process, not only of the algorithm, and it is easy to lose in a migration or a change of build host. Firmware engineering should own the entry, working with the product security lead, who signs off on where state is stored and who can access it. Confirm with your firmware vendor or project which parameter sets and state-management guidance they follow, and check the wolfBoot manual's configuration settings if you use that bootloader, since the sources listed on this page do not say which other products implement the same controls.
Every place LMS and XMSS firmware signing use cryptography
This table maps each area of an LMS or XMSS firmware signing deployment to what it protects, the algorithm family involved, whether it depends on public-key algorithms, and where it is configured. Rows the sources do not document are marked as needing vendor confirmation, so read the table as a checklist for your own inventory. The main takeaway is that the stateful signing key and its leaf counter carry the most risk, and that the hash-based algorithms themselves are only part of the picture.
| Area | What it protects | Algorithm family and dependency | Where it is configured |
|---|---|---|---|
| Signing keys (LMS/HSS and XMSS/XMSS^MT) | Authenticity of firmware images, verified against a public key held by the device | LMS/HSS (RFC 8554) or XMSS/XMSS^MT (RFC 8391) with SHA-256 hash functions. Hash-based, so it does not rely on RSA or elliptic-curve keys | Tree height, levels and Winternitz width (LMS) or parameter set (XMSS) in the signing tool and bootloader config, for example wolfBoot's LMS_HEIGHT and XMSS_PARAMS |
| Signing key state (leaf counter) | Prevents reuse of one-time keys, which the RFCs say removes all security guarantees | Not a cipher. The leaf counter must be incremented and saved to nonvolatile storage before a signature is released (RFC 8554) | Signer's storage and state handling. The sources do not describe how individual products store this, so confirm with the vendor |
| Hierarchical second-level keys (HSS) | Lower-level tree keys used to sign firmware | LMS/HSS hash-based. RFC 8554 allows the second-level key to live only in RAM and be regenerated at startup | Signer configuration for LMS_LEVELS. Confirm which levels a given signer keeps in RAM |
| Certificates for CA use | Binding of a hash-based public key to an identity in X.509 certificates | Hash-based identifiers from RFC 9802. RFC 9802 says these keys are generally unsuitable for end-entity certificates and more appropriate for root CAs | The sources do not document any product issuing such certificates. Confirm with the CA vendor whether it supports them |
| Verification in boot code | Checks each image against the stored public key before execution | Hash-based verification only. Verifiers need no state management but must trust the signer (RFC 10033). No RSA or elliptic-curve dependency is named in the sources | Bootloader build settings such as IMAGE_SIGNATURE_SIZE and the parameter set. Confirm the exact keys for your bootloader version |
| Update and image channels | Integrity of firmware images as they are delivered and staged | Depends on what wraps the image. Any RSA or elliptic-curve layer added by the update system is not covered by the sources | The update tooling and any transport signing layer. Not documented in the sources, so confirm with the vendor |
| Integrations (signing services and HSMs) | Custody of the private key and state across signing hosts | Algorithm support in the HSM or signing service for LMS or XMSS is not documented in the sources. Confirm before relying on it | Vendor product configuration. Not documented in the sources; ask the vendor whether state is kept inside the module |
Which parameter sets and signing settings the schemes use
LMS and XMSS firmware signing depend on a handful of parameters that fix signature size, tree capacity and the number of signatures a key can produce. These settings also decide which state must be recorded and which values appear in verification code, so they should be checked before any key is generated.
LM-OTS Winternitz width and signature size
LM-OTS one-time signatures use a Winternitz width w of 1, 2, 4 or 8 bits, as defined in RFC 8554. The width trades signature size against signing time: an 8516-byte signature at w=1 shrinks to 1124 bytes at w=8. Confirm the chosen width with the firmware image size budget, since IMAGE_SIGNATURE_SIZE in the bootloader config must match the signature length the scheme produces.
RFC 8554 textLMS tree height and HSS levels
RFC 8554 defines LMS tree heights of 5, 10, 15, 20 and 25, and allows HSS with one to eight levels. Tree height sets how many signatures one key can produce, so it determines how long a signing key lasts before it must be replaced. Every implementation must support one-level HSS for interoperability, so verifiers should be checked for the levels they accept.
- Allowed LMS tree heights
- 5 to 25
XMSS parameter sets and SHA2-256
RFC 8391 requires verifiers to support its REQUIRED parameter sets, all of which use SHA2-256, while signing with any set is optional. The named defaults are XMSS-SHA2_20_256 and XMSSMT-SHA2_60/3_256. Check which set a device's verifier supports before choosing one, because a signer using an unsupported set produces images the device will reject.
RFC 8391 textSHA-256 hash function and matching outputs
The parameter sets in RFC 8554 use SHA-256 with 32-byte outputs, and the RFC recommends that the LM-OTS and LMS hash functions match. Mixing hash functions across the layers of a signing configuration complicates verification code and review. Confirm the hash choice in the signing tool and the verifier together, since both must agree on it.
RFC 8554 textwolfBoot configuration keys
wolfBoot selects LMS with LMS_LEVELS, LMS_HEIGHT, LMS_WINTERNITZ and IMAGE_SIGNATURE_SIZE, and XMSS with XMSS_PARAMS and IMAGE_SIGNATURE_SIZE, set in files such as config/examples/sim-lms.config and sim-xmss.config. These keys fix the signature scheme compiled into the bootloader, so changing a parameter later usually means rebuilding verification code. Record each value alongside the image build so the signing and verifying sides can be compared during review.
What these settings require you to record
Each parameter choice determines key state that must be recorded. The leaf counter must be saved to nonvolatile storage before a signature is released, so the chosen tree height sets how many counter values need tracking. Per RFC 10033, verifiers need no state but must trust the signer not to reuse state. Document each parameter set in the signing inventory together with where its state is stored.
RFC 10033 textSigning keys, key state and certificates by use
The device verifies firmware images, so it holds the public key or root of trust used to check a signature. This key does not need to be secret, but it must be protected from modification, because replacing it lets an attacker accept images signed by someone else. RFC 8554 and RFC 8391 define only the verification side as stateless: a verifier needs no state management, but it must trust the signer not to reuse state (RFC 10033, section 4). The verification key is typically written into the bootloader or a protected flash region at manufacture.
- Storage: The public key or hash of the root key is compiled into or stored alongside the bootloader, as the wolfBoot examples show with the LMS and XMSS parameter settings in its configuration files.
- Issuance: The key pair is generated by the signer, and only the public part is provisioned to devices.
- Rotation: Changing the verification key generally means a firmware update that the existing trust chain must authorize, so plan that path before the first release.
- Parameter match: The device must support the LMS or XMSS parameter set used by the signer. RFC 8391 requires verification of its REQUIRED sets, but signing support for each set is optional, so confirm the set your signer uses.
- Hash function: The parameter sets in RFC 8554 use SHA-256 with 32-byte outputs, and RFC 8391's REQUIRED sets use SHA2-256.
Check which parameter sets each deployed bootloader can verify, and record the storage location of its public key for every device model.
The build or release owner holds the private signing key used to sign firmware images. This is the most sensitive key in the system, because a copy of it lets someone produce images that devices will accept. Hash-based schemes like LMS and XMSS sign a limited number of messages with each key tree, so the signing key also carries state: the private key changes with every signature, and RFC 8554 says a private key that has signed one message MUST NOT be used to sign another.
- Storage: Keep the signing key offline or in a hardware-backed signing environment, with access limited to named release staff.
- Issuance: Generate the key tree with the parameters the device supports (tree heights, levels and Winternitz width). NIST SP 800-208, dated 29 October 2020, approves LMS and XMSS and their multi-tree variants HSS and XMSS^MT.
- Backup: Copies of the private key are copies of its state. RFC 10033, Hash-Based Signatures: State and Backup Management (September 2026), gives operational guidance on backup, and double-signing with the same one-time key allows forgeries.
- Rotation: Rotation is decided by the release owner and tied to the number of signatures the tree can produce, which depends on the chosen height. Ask the vendor how many signatures remain on each key tree.
- Signing log: Record each signing event and its leaf index, so reuse can be detected.
Confirm where the private key is stored, who can use it, and how the remaining signature count is tracked for each release line.
The leaf counter, or index, records which one-time key is used next. In LMS, RFC 8554 requires the leaf counter to be incremented and saved to nonvolatile storage before the signature is released, so that a crash and reboot cannot cause a one-time key to be reused. In XMSS, RFC 8391 says each tree leaf corresponds to one WOTS+ key pair and a per-key index tracks which leaf is used next, so that index is the state that must be protected. If the counter is rolled back or copied, a key can be reused, and RFC 8391 notes that no cryptographic security guarantees then remain.
- Storage: The counter must sit on nonvolatile storage the signing process updates atomically, with the increment committed before the signature leaves the system.
- Hierarchical deployments: RFC 8554 notes the second-level key can be kept only in RAM and regenerated at each startup, to reduce synchronization risk. This trades one risk for another, so document which choice the vendor makes.
- Restores: Restoring an older copy of the signing environment can roll the counter back. Treat restores as a state-management event with a documented procedure.
- API requirement: RFC 8391 says standard signature APIs need modification because the API must return an updated secret key state, so check whether the signing tool exposes that state.
- Verification: RFC 10033 says public signature logs can help detect reuse, so consider whether your release process publishes one.
Ask the vendor or project how the counter is written, where it is stored, and what happens after a power loss during signing.
RFC 9802 defines the algorithm identifiers and ASN.1 encodings for HSS, XMSS and XMSSMT in X.509 certificates and certificate revocation lists. Its stated use cases include firmware, software and CA certificates, and it says XMSS and XMSSMT key generation follows NIST SP 800-208. It is a Proposed Standard, dated June 2025. The RFC also says stateful hash-based signature keys are generally considered unsuitable for end-entity certificates and general use, and are more appropriate for root CAs than subordinate CAs. That guidance shapes which certificate role any LMS or XMSS key should hold.
- Root CA use: A root CA that signs a small number of subordinate certificates is the case RFC 9802 treats as the better fit for stateful keys.
- End-entity use: Firmware or software certificates issued to many end entities with stateful keys run against the RFC's general guidance, so verify whether the vendor's design depends on that.
- Parameter fields: The AlgorithmIdentifier parameters field must be absent, so check certificate tooling against that requirement.
- Identifiers: RFC 9802 defines id-alg-xmss-hashsig and id-alg-xmssmt-hashsig, and takes the HSS identifier from RFC 9708.
- Issuance: Certificate issuance should record the signing key state along with the certificate, since reuse across issuance affects every certificate that key signs.
For each certificate in the signing chain, record its role (root, intermediate or end entity), the algorithm identifier, and who issues and revokes it.
How administrators and build tools reach the signing process
The signing process is reached through three kinds of path: the build or signing host where the firmware image is assembled and signed, any key-management tooling that holds or brokers the signing key, and remote access to the release systems that administrators and build tools use. Each path matters for LMS and XMSS because the private key is stateful. RFC 8554 requires that the leaf counter be incremented and saved to nonvolatile storage before a signature is released, and RFC 8391 says that reusing a secret key state removes all cryptographic security guarantees. Any path that lets a second process, a restored backup or a second operator sign with the same state can therefore produce forgeable signatures, not just a failed build. Your inventory should list every host, tool and login that can trigger a signature, and record which of them can read, write or roll back the state file or counter.
For each path, confirm what protects it and who can change that protection. Typical controls include restricting the signing host to named administrators, requiring multi-factor authentication for remote sessions, keeping the state store on storage that a backup restore cannot silently revert, and logging every signing event with its counter value. RFC 10033 says verifiers need no state management but must trust the signer not to reuse state, and notes that public signature logs can help detect reuse, so decide whether your release process will publish or retain such a log. The sources listed on this page do not describe the management interfaces, access APIs or remote administration features of any particular key-management product, HSM or vendor signing tool, so confirm these with the vendor or in your own environment before recording an answer.
Pay particular attention to hierarchical deployments and to disaster recovery. RFC 8554 notes that a second-level key can be kept only in RAM and regenerated at each startup to reduce synchronization risk, which changes which host holds durable state. Snapshots, virtual machine clones and restored backups of a signing host can re-expose an old counter, so test how a restore behaves before you rely on it. Record the answers as a dated inventory entry naming the host, the tool, the access method and the control that protects each path.
Firmware images, update channels and secure boot checks
These cards follow a signed LMS or XMSS firmware image from the signing step, through the bootloader check, to delivery to devices. Some of the parameters that govern each step are set by the owner, and others are fixed by the vendor or project, so the owner needs to know which is which.
Signed image production
The signer produces an LMS or XMSS signature over each firmware image using a private key whose leaf or index state advances with every signature. Each signed image consumes one one-time or leaf key, so the signing process must record the advanced state before the signature is released. RFC 8554 requires this ordering for LMS, and RFC 8391 notes that XMSS is only safe where secret key state reuse is prevented. The owner controls the signing workflow and its state storage, not the algorithm itself.
RFC 8554 textVerification in the bootloader
The bootloader checks the image signature against a public key provisioned in the device, before it hands control to the new firmware. Verification is stateless: the verifier needs no state management, but it must trust the signer not to reuse state. The owner selects the parameter set when building the bootloader, while the algorithm and verification logic are defined by the vendor or project. Confirm which parameter sets the bootloader build accepts before you provision a key.
wolfBoot Appendix HSignature size field
The image format reserves a fixed signature size, set through IMAGE_SIGNATURE_SIZE in wolfBoot's configuration. LMS signature length depends on the Winternitz width and the number of levels, so the size you configure must match the parameter set you sign with. A mismatch can cause verification to fail or leave the field oversized for the signature. Check the value against the chosen LMS or XMSS parameters during build, and treat it as a setting the owner must align with the signer.
wolfBoot configurationUpdate delivery and channels
Signed images reach devices through an update channel, which the owner designs and operates. The channel can carry images only after signing, and the device accepts only images whose signature verifies under its provisioned key. Delivery mechanics and channel security are outside the scope of the signature scheme itself, so the owner should confirm how the chosen update tooling handles the signed image. Record which channel delivers each image version and who can trigger a release.
Reuse risk and signature logs
A repeated use of the same one-time key allows forgeries, so the signer's state records are the critical control. RFC 10033 says public signature logs can help detect reuse, which gives the owner a way to check the signer's history. The owner should review how the signer stores and backs up state, because a restored backup can roll state back and cause reuse. Ask the signing tool vendor how it prevents state rollback.
RFC 10033 textWhat to record for each LMS and XMSS item
This table lists the fields to capture for each LMS, HSS, XMSS or XMSS^MT signing setup, with what each field means and where to find it. Read it as an inventory template: one row per signing key or signing service. The main takeaway is that the key state location and last-used counter matter as much as the algorithm settings, because a reused state removes the security guarantees of these schemes.
| Field | What to record | Where to confirm |
|---|---|---|
| Product and version | The signing tool or firmware build pipeline, with the exact release that produces the signature | The vendor documentation and the build configuration in your own environment |
| Signing key owner | The team or role accountable for the private key and its state | Your key custody records and change approvals |
| Storage location | Where the private key and state are kept, such as an HSM, file system, or device memory | Your key management records; the sources on this page do not say which storage a given product uses |
| Scheme and parameter set | LMS, HSS, XMSS or XMSS^MT, with tree height, levels, Winternitz width, or the XMSS_PARAMS value | The build config, for example LMS_LEVELS, LMS_HEIGHT, LMS_WINTERNITZ or XMSS_PARAMS in wolfBoot |
| Hash function | The hash used by the scheme, typically SHA-256 for the parameter sets RFC 8554 defines | The configuration and the scheme's RFC parameter table |
| Signature size | The signature length for the chosen parameters, which affects image layout and storage | IMAGE_SIGNATURE_SIZE in the build config and the RFC size tables |
| Key state location | Where the leaf counter or index is saved, and whether it is nonvolatile | The product's state handling code and documentation; confirm with the vendor |
| Last-used counter | The most recent leaf or index value, recorded so reuse can be detected | The state store on the signing system; RFC 10033 covers state and backup management |
| Certificate issuer and expiry | Issuer and expiry date for any certificate that wraps the signing key, where one exists | The certificate itself; RFC 9802 covers LMS, HSS, XMSS and XMSS^MT in X.509 certificates |
| Configurable or fixed | Whether the scheme and parameters can be changed after deployment or are fixed in the product | The vendor documentation and the build configuration |
| Trust period for signed firmware | How long signed firmware must stay trustworthy, which sets the lifetime of the signing key | Your product lifecycle and support commitments; the sources on this page do not give a duration |
Which of these items depend on public-key algorithms
LMS and XMSS are hash-based signature schemes. Their signing and verification rest on the security of SHA-256 rather than on factoring or discrete logarithms, so they are not RSA or elliptic-curve schemes. The parameter sets in RFC 8554 and RFC 8391 use SHA-256 with 32-byte outputs, and NIST SP 800-208 approves both LMS and XMSS along with their multi-tree forms, HSS and XMSS^MT. For the firmware signing key itself, this means the signature algorithm is not the element that a quantum attack on factoring or discrete logarithms would break. Teams should not carry RSA or ECDSA exposure assumptions over to these items without checking each component separately.
The full exposure detail for RSA and elliptic-curve dependencies in LMS and XMSS flows is covered on the sibling page, which addresses the data flows and logins that still use those algorithms. Review that page alongside this one. Be aware that the signing scheme is only one part of a firmware signing chain. Items in your crypto map that still rely on other public-key algorithms, such as certificate chains used to distribute or revoke verification keys, transport keys used to deliver images to devices, or signing keys held by a host tool, need their own entries. Confirm with each vendor which algorithm protects each of these, and record the answer against the specific component, version and configuration you run.
For the inventory, record which items use LMS or XMSS for image signatures and which use another public-key algorithm for anything around them. The sources here do not say how a given vendor's tooling wraps these schemes in certificates, so confirm that with the vendor and with your own build pipeline. Where a certificate is involved, RFC 9802 says stateful hash-based keys are generally considered unsuitable for end-entity certificates and are more appropriate for root CAs than subordinate CAs. Check that your design follows that guidance before you list the item as settled.
How to gather the LMS and XMSS signing inventory
This sequence produces a dated inventory of the signing build, its LMS or XMSS parameters, the key state that prevents one-time key reuse, the certificates that carry these keys, and the build host access paths. Each step ends with a record your team can check against the vendor's documents.
Confirm the signing build and version
Identify the exact signing tool, wolfBoot or other equivalent, its release version or commit, and the build of the signing host it runs on. Record which bootloader or firmware image each signing build produces and which devices consume those images. Check that the version matches what is deployed, not only what is documented. Done when a single version string and commit hash are recorded for every signing environment, with the date you checked it.
Export the signing configuration parameters
Export the build configuration and record the settings that define the scheme: LMS_LEVELS, LMS_HEIGHT, LMS_WINTERNITZ and IMAGE_SIGNATURE_SIZE for LMS, and XMSS_PARAMS and IMAGE_SIGNATURE_SIZE for XMSS. The wolfBoot manual's Appendix H lists these keys and sample config files such as sim-lms.config and sim-xmss.config, which show their expected form. Confirm that LMS tree heights and Winternitz widths match the RFC 8554 options your deployment intends to use, and that the hash function is SHA-256 as those RFCs define. Done when every signing configuration is saved as a file with its path, its settings and the build it applies to.
Locate and list key state files and counters
Find every place the signer stores its leaf index or one-time key counter, the state that prevents reuse. Under RFC 8554, the leaf counter must be incremented and saved to nonvolatile storage before a signature is released, so record the file or device, its storage medium and its write behavior. For hierarchical LMS deployments, note whether the second-level key lives only in RAM and is regenerated at startup, since RFC 8554 describes this as a way to reduce synchronization risk. For XMSS, record the per-key index that tracks the next leaf. Done when each signing key has a listed state location, storage type and backup or synchronization method, with its owner named.
List certificates where RFC 9802 applies
Where your organization carries LMS, HSS, XMSS or XMSS^MT keys in X.509 certificates, list each certificate, its issuing authority and its use. RFC 9802 defines the object identifiers for these algorithms and covers firmware, software and CA certificates. Note that RFC 9802 describes stateful hash-based keys as generally unsuitable for end-entity certificates and more appropriate for root CAs than subordinate CAs, so flag any such use for review. If no certificate in your environment uses these algorithms, record that as a finding. Done when each relevant certificate is listed with its algorithm identifier, subject, issuer and expiry.
Review build host access paths
Map who and what can reach the signing host and the state files: local accounts, remote administration paths, backup systems, build servers and automation that trigger signing. Confirm which accounts can write to the key state, since state reuse removes the security guarantees of these schemes, and record whether writes are logged. Note which paths can restore an earlier state, because restoring old state is a common route to one-time key reuse. Done when each access path is listed with its permissions, its logging status and the person responsible for it.
Send questions for gaps in the documents
Where the vendor or project documents do not show a value, a storage behavior or a support status, write it down as a specific question and send it to the vendor or project. Ask about the exact release and build where each setting applies, how state is persisted across power loss, and whether any post-quantum or hybrid option is planned for these signature schemes. Record the date each question was sent and the date each answer arrived. Done when every unanswered item in your inventory has a dated question and a named recipient.
Questions engineers and vendor-risk reviewers ask about this inventory
Are LMS and XMSS firmware signing quantum safe?
The sources support one narrow statement: LMS and XMSS are hash-based signature schemes, and NIST SP 800-208 approves them as stateful hash-based signature schemes. Their security rests on the hash function rather than on the number-theoretic problems that RSA and elliptic-curve signatures depend on. That is the reason they are cited as candidates for signing use. The sources listed on this page do not say that any product built on them is quantum safe, certified or validated for that purpose, so do not record it as a product property. Ask the vendor which exact scheme, parameter set and hash function the signing tool uses, and whether that configuration is documented as approved under NIST SP 800-208. Record the answer as the vendor's statement with its date.
Which LMS or XMSS version and configuration should we record?
Record the scheme family, the exact parameter set, and the implementation version. For LMS, record the number of levels (HSS), the tree height, and the Winternitz width, since RFC 8554 defines tree heights of 5, 10, 15, 20 and 25, and Winternitz widths of 1, 2, 4 or 8 bits. The sources say these parameter sets use SHA-256. For XMSS, record the parameter string, such as the XMSS_PARAMS value used in the build. The sources also say the signature size depends on these choices, from 8516 bytes at w=1 down to 1124 bytes at w=8 for LM-OTS signatures. Record the signing key's remaining leaf count, because it bounds how many signatures the key can produce. Keep these values in the firmware build configuration so the inventory matches what is shipped.
Does recording the inventory cost extra?
Recording the inventory itself is mostly internal labor. The costs that matter are the ones that recur. Your team spends time locating each signing tool, build pipeline and verifier, and confirming which parameter set each one uses. Vendors may charge for detail they do not publish, such as written statements on support or key-state behavior, so ask for those in writing before signing a contract. If a firmware signing product has to be replaced or reconfigured, that becomes a separate project. The sources listed on this page do not give any cost figures, so do not estimate one. Ask the vendor or your own engineering lead for effort in person-days, and record the source of any number you use.
What breaks if the signing key state is lost or reused?
Reuse is the failure that removes the security guarantee. RFC 8554 states that a private key value that has signed one message must not be used to sign another, and that reusing a secret key state removes all cryptographic security guarantees. RFC 8391 says the same for XMSS. RFC 10033 adds that signing twice with the same one-time key allows forgeries. Loss is a different problem: you can no longer sign new firmware with that key, so a new key and a new trust anchor in the device may be needed. RFC 8554 requires the leaf counter to be saved to nonvolatile storage before a signature is released, so that a crash and reboot cannot reuse a leaf. Record how each signing host stores this counter and whether backups can restore an older copy, since a restored old counter is a reuse risk.
What should we ask the vendor before we rely on LMS or XMSS signing?
Ask for written answers to a short list of questions:
- Which scheme, parameter set and hash function does the signing tool use, and which RFC or NIST document does it follow?
- Where is the leaf counter or index stored, and is it written to nonvolatile storage before each signature is released?
- What happens if the counter is restored from a backup, or if two signing hosts run at once?
- Does the verifier code on the device check the scheme and parameters, and is the verifier released with the firmware?
- Is there a documented procedure for key rotation and for retiring a key that is nearly exhausted?
- What has the vendor published about its plans for this signing scheme, and on what date?
Record each answer with the vendor name, product version and date. The sources listed on this page do not give vendor-specific answers, so these must come from the vendor.
Can our team do this inventory ourselves, or do we need outside help?
Your team can likely do most of the inventory itself, because the work is mainly locating signing tools, build pipelines and verifiers, and recording their configuration. Your firmware engineers are best placed to read the build config files, such as the sim-lms.config and sim-xmss.config examples in the wolfBoot manual, and confirm the settings they contain. Outside help is more useful for the questions the sources cannot answer on their own: confirming how a particular product stores key state, reviewing backup and restore procedures, and checking that the verifier matches the signed images. DeployOpen can plan and run that review, but it does not issue audit reports or certifications. An independent auditor or certification body would provide that opinion, and it is a separate engagement.
Are LMS and XMSS suitable for end-entity certificates?
The sources say they generally are not. RFC 9802 states that stateful hash-based signature keys are generally considered unsuitable for end-entity certificates and general use, and are more appropriate for root CAs than subordinate CAs. Its listed use cases include firmware, software and CA certificates, so firmware signing is the case the scheme is designed for. If your inventory includes certificates that wrap these keys, record them as a separate item and confirm the certificate's role with your PKI owner before relying on it for anything else.
How DeployOpen works on this
DeployOpen approaches the cryptographic inventory of LMS and XMSS firmware signing as a fixed-scope engagement inside the client's own build and signing environment. The work starts with written scope, moves through documented testing of signing keys and key state, and ends with a handover the client's security and firmware teams can review. Ongoing support is available as a retainer.
How we scope
- Engagements are fixed-scope, with the systems, signing workflows and key stores in scope agreed in writing before work starts.
- We confirm which LMS or XMSS parameter sets, tree heights and HSS levels the firmware signing flow actually uses.
- We agree how signing keys, leaf counters and secret key state are stored, and who can access them, as part of the written scope.
How we build
- We map each place the signing process calls LMS or XMSS, including key generation, signing and verification code paths.
- We check that the leaf counter or key index is saved to nonvolatile storage before a signature is released.
- We document the signing and verification configuration, such as the LMS_LEVELS, LMS_HEIGHT and XMSS_PARAMS settings where the build uses them.
How we hand over
- You receive an inventory listing signing keys, key state locations, algorithm identifiers and the verifiers that depend on them.
- The inventory records which standard each function follows, such as RFC 8554, RFC 8391 or NIST SP 800-208, with the version checked.
- Findings on state handling and reuse risk come with fixes and a retest, so your team can confirm the inventory matches the running system.
How we support
- Ongoing support and continuous testing of signing workflows are available as a retainer after the initial handover.
- Upgrades to signing tools, verifier code or key storage can be retested against the inventory when they change.
- Questions about vendor documentation, such as RFC 10033 state and backup guidance, can be reviewed against your current practice.

