Which signing model fits a system that signs with a changing key state
If a vendor, standard or audit has named LMS, XMSS or SLH-DSA, you need to know whether key state handling applies to your system. Stateful schemes such as LMS and XMSS change the secret key after each signature, and a key state must never be reused, because reuse removes the security guarantees the scheme depends on. Stateless schemes such as SLH-DSA (FIPS 205) have no state to manage, so signing does not depend on tracking a counter across operations. The question usually reaches firmware, software and CA signing teams, PKI engineers and vendor-risk reviewers, often in a vendor questionnaire or an audit request. The two sources listed on this page to start with are NIST SP 800-208, which specifies the stateful schemes LMS, HSS, XMSS and XMSS^MT, and RFC 10033, which gives state and backup guidance for those schemes.
The practical test is whether your signing environment can guarantee that a key state is never used twice. RFC 10033 says the system must not release a signature until the state update is recorded, that cloning, process forking, VM cloning and caching can all lead to state reuse, and that backups must never roll the state back. RFC 9802 adds that standard backup strategies, such as duplicating key material across redundant signers, can cause one-time key reuse with high probability. Confirm with your vendor or signing team how state is stored, whether it is written to nonvolatile storage before each signature is released, and how backups and redundant signers are handled. Stateful schemes fit where RFC 9802 says they are suited, such as firmware signing, software signing and CA certificates under tight operator control, and RFC 10033 says most applications should use stateless alternatives instead.
Stateful and stateless signatures side by side in the sources
This table sets the stateful hash-based schemes (LMS, XMSS) against the stateless standards (SLH-DSA, ML-DSA) across the attributes the sources give. Read the key state row first, because it determines the operational work each scheme requires. Sizes depend on the parameter set, so confirm the exact values for the version and parameter set you deploy.
| Attribute | Stateful (LMS, XMSS) | Stateless (SLH-DSA, ML-DSA) |
|---|---|---|
| Defining document and date | RFC 8554 (April 2019) for LMS. RFC 8391 (May 2018) for XMSS. NIST SP 800-208 (October 2020) specifies LMS, HSS, XMSS and XMSS^MT. | FIPS 205 for SLH-DSA and FIPS 204 for ML-DSA, both published 13 August 2024. RFC 9909 (December 2025) and RFC 9881 (October 2025) carry them into X.509 and related formats. |
| Status | RFC 8554 and RFC 8391 are published RFCs. RFC 10033 (September 2026, Informational) gives state and backup guidance for these schemes. | FIPS 204 and FIPS 205 are NIST standards. RFC 9881 and RFC 9909 are Standards Track RFCs. |
| Uses key state | Yes. The private key changes after each signature, and the sources say a key state reused once removes the security guarantees. | No. The sources describe these as stateless, so no signing counter must be persisted between signatures. |
| Key state handling required | The updated key must reach nonvolatile storage before a signature is released. RFC 10033 says state management should satisfy ACID properties. | Not required by the sources. Confirm this against the implementation you use. |
| Public key size | LMS public key is 56 bytes for m=32 (RFC 8554). XMSS sizes depend on the parameter set (RFC 8391). | ML-DSA-44 1312 bytes, ML-DSA-65 1952 bytes, ML-DSA-87 2592 bytes (RFC 9881). SLH-DSA 32 to 64 bytes depending on set (RFC 9909). |
| Signature size | LMS signature is 1452 bytes for h=10 and 1772 bytes for h=20 (RFC 8554). XMSS-SHA2_20_256 is 2820 bytes (RFC 8391 Table 3). | ML-DSA-44 2420 bytes, ML-DSA-65 3309 bytes, ML-DSA-87 4627 bytes (RFC 9881). SLH-DSA 7856 to 49856 bytes depending on set (RFC 9909). |
| Signatures per key pair | Fixed by tree height: 1,024 for h=10 and 1,048,576 for h=20 in LMS (RFC 8554), and the same counts for XMSS (RFC 8391 Table 3). | Not limited by a key state count in the sources. Confirm limits for the parameter set you deploy. |
| Where supported | Recommended by RFC 9802 mainly for firmware signing, software signing and CA certificates under tight control of the signing environment. Not generally appropriate for end-entity certificates. | Stateless alternatives recommended by RFC 10033 for most applications. Usable in X.509 per RFC 9881 and RFC 9909. |
What stateful and stateless signature schemes are and where practitioners meet them
The stateful family is made of hash-based signature schemes whose private key changes every time the key signs. LMS and HSS are defined in RFC 8554 (April 2019), and XMSS and XMSS^MT are defined in RFC 8391 (May 2018, Informational). NIST SP 800-208 (October 2020) specifies all four. Each signature uses a one-time key from a fixed set, so the signer must record which index has been used before releasing a signature.
- Defining documents: RFC 8554 for LMS and HSS, RFC 8391 for XMSS and XMSS^MT, and NIST SP 800-208 as the NIST specification of the four schemes.
- Purpose: Hash-based signatures for firmware and software signing, where a signer controls the environment and signs a bounded number of objects.
- State requirement: RFC 8554 says a one-time private key must not sign a second message, and RFC 8391 says secret key state used twice leaves no cryptographic security guarantees.
- X.509 use: RFC 9802 says stateful hash-based signatures suit firmware signing, software signing and CA certificates where the operator tightly controls the signing environment, and are generally not appropriate for end-entity certificates.
- Parameter examples: RFC 8554 gives an LMS signature of 1452 bytes for h=10 (1,024 signatures per key), and RFC 8391 lists XMSS-SHA2_20_256 as its recommended default.
Before adopting any stateful scheme, confirm with RFC 10033 that your signing environment can enforce state updates, backups and rollback resistance for the full key lifetime.
The stateless family signs without a state that must be advanced between signatures. SLH-DSA is specified in FIPS 205 (13 August 2024) and RFC 9909 (December 2025, Standards Track), and ML-DSA is specified in FIPS 204 (13 August 2024) and RFC 9881 (October 2025, Standards Track). Both families produce standard digital signatures that detect changes to data, verify the signer and support proof of who signed to a third party.
- Defining documents: FIPS 205 and RFC 9909 for SLH-DSA, FIPS 204 and RFC 9881 for ML-DSA.
- Purpose: General digital signatures for unrestricted signing volume, including certificates and document signing.
- Operational difference: A signer does not need to record a used index before each signature, so ordinary backup and redundancy do not cause one-time key reuse.
- Size trade-off: RFC 9881 gives ML-DSA-44 a 1312-byte public key and 2420-byte signature, and RFC 9909 gives the 128s set a 7856-byte signature. Confirm the size you need against your protocol limits.
- Guidance: RFC 10033 says most applications producing unrestricted numbers of signatures should use SLH-DSA or ML-DSA.
For X.509 profiles, check the algorithm identifiers and key encodings in your version of RFC 9802 and RFC 9881 before issuing certificates.
Practitioners most often meet these schemes in three places: firmware and software signing, CA certificates in a controlled environment, and general certificate or document signing. The choice between families follows from who controls the signer and how many signatures the key must produce. RFC 10033 says stateful schemes may fit only when run time, implementation size or signature and key size make stateless options prohibitive, and the signing environment can be tightly controlled.
- Firmware and software signing: Stateful schemes appear here in RFC 9802's list of suitable uses, where signing is tightly controlled.
- CA certificates: RFC 9802 lists CA certificates in a controlled environment as a suitable use for stateful schemes.
- End-entity certificates: RFC 9802 says stateful schemes are generally not appropriate here, so most TLS and client certificates point to stateless options.
- Backup planning: RFC 9802 says duplicating key material across redundant signers can cause one-time key reuse with high probability, so backup plans must be designed for state.
- Key lifetimes: RFC 10033 notes that key lifetimes of 10 to 20 years or more raise concerns about storage degradation, integrity checking and operator training.
Ask your vendor or CA which family they use for each certificate profile and how they handle state.
Stateful schemes place duties on the signer that stateless schemes do not. RFC 10033 gives the requirements for state and backup management for LMS, HSS, XMSS and XMSS^MT. The guidance is written for operators who must keep state correct across restarts, clones and backups.
- Persist before release: RFC 8554 says the updated private key must reach nonvolatile storage before the signature is released, and may require synchronous writes or disabled drive caching.
- Atomic updates: RFC 10033 says state management should satisfy ACID properties and must not release a signature until the state update is recorded.
- Clone and fork risk: RFC 10033 says cloning, process forking, VM cloning and caching can all cause state reuse.
- Rollback resistance: RFC 10033 recommends dedicated cryptographic hardware, particularly for rollback-resistant counters.
- Verifier role: RFC 10033 says verifiers do not manage state, though they can check for index reuse if they hold all issued signatures.
Review your signing platform against RFC 10033 for each of these duties before operating a stateful scheme in production.
How key state handling changes operations and risk
Stateful schemes depend on a signing key whose state advances with every signature, so the operational controls around that state carry the security guarantees. The cards below cover the consequences for signing systems, storage, backups and verifiers that follow from that dependency.
Never reuse a key state
RFC 8554 states that a one-time private key that has signed one message must not be used to sign another. RFC 8391 says that if a secret key state is used twice, no cryptographic security guarantees remain. Check that your signing software and deployment process make reuse impossible, not merely unlikely, and treat any reuse as a compromise of that key.
RFC 8554 textPersist state before release
RFC 8554 section 9.2 says the updated private key must reach nonvolatile storage before the signature is released. File-system and drive caching can delay those writes, so the implementation may need synchronous write flags or disabled drive caching. Confirm this behavior on every storage stack the signer uses, including virtualized and networked volumes.
RFC 8554 textRecorded, transactional state updates
RFC 10033 says a system must not release a signature until the state update is recorded, and that state management should satisfy ACID properties. It also recommends dedicated cryptographic hardware, particularly for rollback-resistant counters. Ask a vendor whether its state store meets these requirements and where the counter lives.
RFC 10033 textBackups can reuse keys
RFC 10033 says backups of private keys and state must never roll the state back to a point where already-used one-time keys are available again. RFC 9802 warns that standard backup strategies, such as duplicating key material across redundant signers, can cause one-time key reuse with high probability. Plan backups around state, not around key files alone, and rehearse restores.
RFC 9802 textLarger signatures and fixed counts
Stateful schemes fix the number of signatures each key pair can produce. RFC 8391 Table 3 lists XMSS-SHA2_10_256 at 1,024 signatures per key pair and XMSS-SHA2_20_256 at 1,048,576, with signatures of 2,500 and 2,820 bytes. Size the key lifetime and signature volume together, and check that your certificates and protocol messages accept these sizes.
RFC 8391 textVerifiers hold no state
RFC 10033 says verifiers do not manage state, though they can check for index reuse if they have access to all issued signatures. Verification therefore stays simple, and the operational burden falls on the signing side. Relying parties still need the public key and signature, and the signer's records are what allow a reuse check.
RFC 10033 textWhere stateful and stateless signatures show up in protocols, certificates and products
Stateful hash-based signatures are defined in RFC 8554 (LMS, April 2019), RFC 8391 (XMSS and XMSS^MT, May 2018), and the NIST specification NIST SP 800-208 (October 2020), which covers LMS, HSS, XMSS and XMSS^MT. RFC 8554 and RFC 8391 describe the key-state rules, including that a one-time private key must not sign a second message. For X.509 certificates, RFC 9802 (June 2025) says stateful hash-based signatures are suitable for firmware signing, software signing and CA certificates where the operator tightly controls the signing environment, and says they are generally not appropriate for end-entity certificates. RFC 10033 (September 2026) gives operational guidance on state and backup management for these schemes, and says most applications should use stateless alternatives instead.
The stateless standards are FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), both published by NIST on 13 August 2024. They do not carry signing state, so they do not need the synchronous storage, backup and rollback controls that RFC 10033 describes. Their certificate and key encodings are defined in RFC 9881 (ML-DSA, October 2025) and RFC 9909 (SLH-DSA, December 2025). Readers should compare the sizes these RFCs list, such as the 2420-byte ML-DSA-44 signature and the 7856-byte SLH-DSA-128s signature, against their own certificate chain and handshake budgets before choosing between the two families. The sources do not list which protocols or products deploy either family in production, so confirm support, versions and tooling in each vendor's documentation and in your own configuration.
How the signing step differs when key state must be recorded first
The diagram starts when a signing request arrives at the signer. In the stateful path, the signer loads the current key state, records the updated state to nonvolatile storage, and only then releases the signature, with a backup check before the state is written. RFC 10033 and RFC 8554 section 9.2 require that the state update be recorded before release, so a delayed or cached write can allow a one-time key to be reused. The stateless path signs and releases directly, with no state update step. Check the backup and write-ordering steps when you review a stateful design.
The stateful path must record updated key state before any signature is released.
Whether stateful and stateless schemes are used together or replace each other
The sources describe the two families as alternatives rather than as parts of one construction. RFC 10033, the September 2026 guidance on state and backup management, recommends that most applications, especially those that produce an unrestricted number of signatures, use stateless alternatives such as SLH-DSA (FIPS 205) or ML-DSA (FIPS 204). It allows stateful schemes such as LMS, HSS, XMSS and XMSS^MT only when run time, implementation size or signature and key size make stateless options prohibitive and the signing environment can be tightly controlled. RFC 9802 gives a similar boundary for X.509, citing firmware signing, software signing and CA certificates under tight operator control as suitable uses, and saying stateful schemes are generally not appropriate for end-entity certificates.
The composite and hybrid constructions in the sources do not include stateful schemes as a named component. RFC 9794 defines a PQ/T hybrid scheme as a multi-algorithm scheme with at least one post-quantum and at least one traditional component, and a composite scheme as a hybrid exposed as a single interface of the same type as its components. The sources do not describe a combined stateful and stateless construction, so a reader should not assume that an LMS or XMSS key can be paired with an ML-DSA or SLH-DSA key inside one signature object. Where a team does need both kinds of key, for example when a firmware signing key runs under a stateful scheme while a CA or a service uses a stateless one, the two should be treated as separate keys with separate lifecycles and separate verification paths.
Before you rely on any mixed arrangement, confirm with the vendor, the library and the standards text for each version you run whether they support it. Check the exact profile and OIDs in use, whether the signing component is restricted to tightly controlled hardware, and how the stateful key's state is recorded and backed up. RFC 10033 and RFC 9794 are the sources to read first, and the vendor's documentation should state whether a composite or hybrid option exists for the scheme in question. If the answer is not stated in writing, treat it as unsupported until the vendor confirms it.
How to work out whether stateful signing applies to your system
This sequence establishes whether any system in your estate signs with LMS, HSS, XMSS or XMSS^MT, and if so, whether that use falls within the narrow circumstances the RFCs describe as suitable. It ends with a documented decision and written vendor confirmations that you can take into an audit or a procurement review.
Inventory every system that signs with stateful schemes
Start by listing every system, service, appliance, firmware pipeline and certificate authority in your estate that produces signatures with LMS, HSS, XMSS or XMSS^MT. Include signing tools in build pipelines, hardware security modules, and vendor-managed signing services, since these are often missed. Ask each owner to confirm which algorithm and parameter set they use, not just the product name. The output is a register with one row per signing system, the algorithm, the parameter set, and the owner. Treat any system you cannot confirm as unresolved until a vendor or owner answers in writing.
Classify each signing use against RFC 9802
For each system in the register, determine what is being signed. RFC 9802 says suitable uses for stateful hash-based signatures in X.509 include firmware signing, software signing and CA certificates, and only where the operator tightly controls the signing environment. It also says these schemes are generally not appropriate for end-entity certificates. Record whether each use is firmware, software, CA or end-entity, and whether the signing environment is tightly controlled, with the evidence for that control. Any end-entity use should be flagged for review rather than accepted by default. The output is a classification column added to the register.
Check state recording and nonvolatile storage against RFC 10033
For each system that passes classification, examine how the signing state is recorded and stored. RFC 10033 says the system must not release a signature until the state update is recorded, and that state management should satisfy ACID properties. RFC 8554 section 9.2 says the updated private key must reach nonvolatile storage before the signature is released, and that drive caching may need to be disabled or synchronous writes enabled. Ask the owner to show the write path, the caching behavior, and how a restart is handled. The output is a documented state-handling design per system, with any gap noted.
Review backup, cloning and rollback exposure
Examine whether the design could reuse a one-time key. RFC 10033 says cloning, process forking, VM cloning and caching can all lead to state reuse, and that backups must never roll the state back to a point where used one-time keys become available again. RFC 9802 notes that standard backup strategies, such as duplicating key material across redundant signers, can cause one-time key reuse with high probability. Confirm how backups are taken and restored, whether virtual machines are snapshotted or cloned, and whether rollback-resistant counters are held in dedicated hardware. The output is a list of backup and clone paths, each marked as safe under the stated design or as a finding.
Test whether stateless options are prohibitive
Stateful schemes are appropriate only where stateless alternatives are prohibitive. RFC 10033 says most applications, especially those producing unrestricted numbers of signatures, should use stateless options such as SLH-DSA (FIPS 205) or ML-DSA (FIPS 204). It also says stateful schemes may fit only when run time, implementation size, or signature and key size make stateless options prohibitive. Compare the signing rate and the signature size your system needs against the published sizes in RFC 8554 and RFC 9909, and record the result. Where the sources give no figure for your case, say so and ask the vendor to supply one. The output is a written comparison for each system that states the measured constraint.
Obtain written vendor confirmation of state handling and parameter set
Send each vendor or internal platform owner a written request to confirm, for each signing system, the algorithm, the exact parameter set, how key state is recorded and stored, how backups and clones are handled, and whether the signing environment is controlled as described. Ask them to name the product version and edition the answer applies to, because behavior can differ between versions. Verbal assurances are not enough for an audit file. The output is a signed or dated vendor response for each system, filed alongside the register and the design review.
Common questions about stateful and stateless signatures
Are stateful and stateless signatures the same thing?
No. The difference is whether the signing key changes over time. Stateful schemes such as LMS and XMSS have a private key whose state advances with every signature, and RFC 8554 warns that these schemes are stateful because the secret key changes over time. Stateless schemes such as SLH-DSA (FIPS 205) and ML-DSA (FIPS 204) do not require the signer to track state between signatures. Both produce digital signatures that detect unauthorized changes and verify who signed, but they carry different operational risks, so a stateful scheme needs controls on key state that a stateless one does not.
Which signature type is newer, and which do the sources recommend?
The stateless standards are the newer NIST publications: FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) were both published on 13 August 2024. The stateful schemes LMS, HSS, XMSS and XMSS^MT are specified in NIST SP 800-208, published in October 2020, and RFC 8554 (April 2019) and RFC 8391 (May 2018) predate the stateless standards. For recommendations, RFC 10033 says most applications, especially those producing an unrestricted number of signatures, should use stateless alternatives such as SLH-DSA or ML-DSA. It says stateful schemes may fit only when run time, implementation size or signature and key size make stateless options prohibitive and the signing environment can be tightly controlled.
Does a rule or customer require stateful or stateless signatures?
The sources on this page do not identify a regulation or customer requirement that mandates either type. The recommendation that most applications use stateless schemes comes from the IETF guidance in RFC 10033, which is informational rather than binding. Contracts, procurement terms or internal security policies may name a specific scheme, so check those documents directly. Also confirm which standards your customers or regulators reference, since a stateful scheme may be acceptable only where the signing environment is tightly controlled, as RFC 9802 describes for firmware, software and CA certificates.
Do we need both stateful and stateless signatures?
The sources on this page do not say that an organization must deploy both. RFC 10033 presents stateless schemes as the default choice for most applications, with stateful schemes fitting only specific cases. Those cases, as RFC 9802 describes, include firmware signing, software signing and CA certificates where the operator tightly controls the signing environment. RFC 9802 also says stateful schemes are generally not appropriate for end-entity certificates. A realistic answer depends on your signing workload and environment, so review each use case against that guidance before deciding whether a stateful scheme has a place in your design.
How does key state work, and why does it matter?
For a stateful scheme, each one-time private key may sign only once, and RFC 8554 states that once a one-time private key has signed one message it must not be used to sign another. RFC 8554 also requires the updated private key to reach nonvolatile storage before the signature is released. Reusing a key state removes the security guarantees, per RFC 8391 and RFC 8554. Those requirements make key state a control point. Confirm how your signing system records state updates before releasing signatures, and whether file-system or drive caching could delay those writes.
What should we ask a vendor about key state, backups and rollback protection?
Ask how the vendor records each state update and confirms it before releasing a signature. RFC 10033 says the system must not release a signature until the state update is recorded, and that state management should satisfy ACID properties. Ask how backups are taken, since RFC 10033 says backups must never roll the state back to a point where already-used one-time keys become available again. Ask whether cloning, process forking, VM cloning or caching could cause state reuse, and whether the vendor uses dedicated cryptographic hardware for rollback-resistant counters. Also ask how stored keys are checked for integrity over the lifetime of the key. Ask for these answers in writing.
How large are stateful and stateless signatures in practice?
Sizes differ by scheme and parameter set, so confirm figures against the exact variant you plan to run. RFC 8554 gives an LMS signature length of 1132 + 32h bytes, which works out to 1452 bytes for h=10 (1,024 signatures per key) and 1772 bytes for h=20 (1,048,576 signatures). RFC 8391 lists XMSS-SHA2_20_256 with a 2,820-byte signature and 1,048,576 signatures per key pair. For stateless schemes, RFC 9881 gives ML-DSA-65 a 1952-byte public key and a 3309-byte signature, and RFC 9909 gives the SLH-DSA 128s sets a 7856-byte signature. Size affects storage, bandwidth and certificate design, so compare these figures against your limits.
Can a verifier tell whether a stateful signer reused a key state?
Verifiers do not manage state, according to RFC 10033. A verifier can check for index reuse only if it has access to all issued signatures. That means detecting reuse depends on the signer's record-keeping, not on the verifier. Because a backup that duplicates key material across redundant signers can cause one-time key reuse with high probability, as RFC 9802 notes, treat the signer's state controls as the primary defense. Ask your vendor how issued signatures are logged and whether that log is available to a verifier or auditor who needs to check for reuse.
How DeployOpen works on this
DeployOpen helps teams decide where a stateful hash-based signing scheme fits and where a stateless standard is the better match for their signing workload. We scope the key state handling, build and test the signing environment against the write-ordering and backup requirements in the RFCs, and document the operating procedures the team needs to run it safely.
How we scope
- We map which signing use cases exist and how many signatures each key must produce over its lifetime.
- We identify whether the signing environment can be tightly controlled, as the RFC guidance requires for stateful schemes.
- Engagements are fixed-scope, with scope and deliverables agreed in writing before any work starts.
How we build
- We configure key state storage so the updated state reaches nonvolatile storage before any signature is released.
- We review disk caching, VM snapshots and process cloning settings that could cause one-time key reuse.
- We test the signing setup against state rollback and duplicate-signer scenarios before the team relies on it.
How we hand over
- We document the key state procedures, backup approach and recovery steps the operators must follow.
- We deliver the test results and a list of the controls in place, so your security and compliance teams can review them.
- We train the operators on the state management responsibilities that apply over long key lifetimes.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- We can re-test the signing environment when signing volume, hardware or backup procedures change.
- Before committing to a stateful scheme, confirm the current RFC and NIST guidance for your use case with your team.
Sources and further reading
- RFC 8554: The Leighton-Micali Hash-Based Signatures (LMS) system ↗
- RFC 10033: State and backup management for stateful hash-based signatures ↗
- RFC 8391: XMSS, eXtended Merkle Signature Scheme ↗
- RFC 9802: Use of stateful hash-based signatures in X.509 ↗
- NIST SP 800-208: Recommendation for Stateful Hash-Based Signature Schemes ↗
- NIST FIPS 205: Stateless Hash-Based Digital Signature Standard ↗

