Which signing mode does your system use, the full message or its digest?
Pure signing signs the full message, while pre-hash signing (HashSLH-DSA and HashML-DSA) signs a pre-hash digest of the message. The choice is fixed in the key's OID: a key issued with a pure OID cannot be used for HashSLH-DSA signatures, and a key with a HashSLH-DSA OID cannot be used for pure signatures. Certification authority operators must decide in advance which mode their CA certificates will use, so the question is settled when the key is generated, not when the signature is made.
The question usually comes from PKI engineers, security reviewers and vendor-risk teams who meet the term in a vendor's product sheet, a tender requirement or a certificate profile that names one mode or the other. It shows up in X.509 certificates and CRLs, where RFC 9909 allows both SLH-DSA modes, and in CMS SignedData, where RFC 9814 specifies only pure SLH-DSA with an empty context string. For ML-DSA, RFC 9881 specifies only pure mode for X.509, and the draft TLS ML-DSA specification excludes the HashML-DSA variants. Check the signing mode the vendor's HSM, TLS stack and certificate tooling actually produce, and confirm it matches the OID in your certificate profile.
Pre-hash mode can move hashing out of constrained hardware, since RFC 9909 notes the digest can be computed in the signing module or a separate module, which reduces the data sent to an HSM. Ask the vendor which module computes the pre-hash, which hash function it uses (the RFC 9909 pairing is named in the OID), and whether a verifier in your environment can process that mode. Because pre-hash signatures differ from pure signatures over identical content, mixing modes in one trust chain will fail verification, so record the chosen mode in your certificate inventory.
Pure and pre-hash modes side by side in the sources listed on this page
This table compares how each source treats pure signing and pre-hash signing, covering what gets signed, the defining document, and whether X.509, CMS and the TLS draft allow each mode. Read each row across the columns to see where a mode is specified, excluded or left undefined. The main takeaway is that the modes are not interchangeable: RFC 9909 defines both for SLH-DSA, while RFC 9881, RFC 9814 and the TLS draft each permit only the pure form.
| Attribute | Pure mode | Pre-hash mode |
|---|---|---|
| What is signed | The full message for pure SLH-DSA (RFC 9909) and pure ML-DSA (RFC 9881) | A pre-hash digest of the message (PH_M) for HashSLH-DSA (RFC 9909) |
| Defining document and date | RFC 9909 (December 2025), RFC 9881 (October 2025), RFC 9814 (CMS) | RFC 9909 (December 2025) |
| X.509 certificates allow it | true | true |
| CMS SignedData allows it | true | false |
| TLS draft (draft-ietf-tls-mldsa-06) uses it | true | false |
| OID arc range under 2.16.840.1.101.3.4.3 | Arcs 20 to 31 (id-slh-dsa-*) | Arcs 35 to 46 (id-hash-slh-dsa-*) |
| Pre-hash function named by the OID suffix | Not applicable | sha2-128s uses SHA-256, sha2-192 and sha2-256 use SHA-512, shake-128 uses SHAKE128 (256-bit output), shake-192 and shake-256 use SHAKE256 (512-bit output) |
| Key reuse across modes | A key with a pure OID cannot make HashSLH-DSA signatures | A key with a pre-hash OID cannot make pure SLH-DSA signatures |
What pure signing and pre-hash signing each are
Pure signing passes the complete message to the signature algorithm, with an empty context string. For SLH-DSA and ML-DSA, the pure variants are the ones that take the whole message as input and sign it directly. RFC 9909 defines pure SLH-DSA for X.509 certificates and CRLs, and RFC 9881 specifies only pure ML-DSA for X.509, so pure mode is the form most PKI documents name. RFC 9814 specifies only pure SLH-DSA with an empty context string for CMS SignedData, which means document signing profiles built on CMS follow the same pattern. The draft for TLS, draft-ietf-tls-mldsa-06 dated 11 September 2026, uses ML-DSA.Sign and ML-DSA.Verify and requires the context to be the empty string. RFC 9802 takes the same approach for the hash-based schemes HSS, XMSS and XMSS^MT in X.509, where no digest is applied before signing.
- Message input: the signer hashes internally as part of the algorithm, so the full content must be available to the signing module.
- X.509 use: RFC 9909 allows pure SLH-DSA in certificates and CRLs, and RFC 9881 allows pure ML-DSA in X.509 certificates.
- Object identifiers: pure SLH-DSA uses the id-slh-dsa-* arc from 20 to 31 under 2.16.840.1.101.3.4.3.
- TLS and CMS: the TLS draft and RFC 9814 both specify the pure variants with an empty context string.
- Key commitment: a key generated for pure mode cannot be used to produce HashSLH-DSA signatures.
Check which profile your PKI, TLS stack or document signing tool implements, and confirm that the signing module in your environment accepts the full message or the streamed content your workflow produces.
Pre-hash signing applies a digest function to the message first and signs the resulting pre-hash, PH_M. HashSLH-DSA and HashML-DSA are the named variants. RFC 9909 names the pre-hash function in the OID after the 'with': sha2-128s uses SHA-256, sha2-192 and sha2-256 use SHA-512, shake-128 uses SHAKE128 with 256-bit output, and shake-192 and shake-256 use SHAKE256 with 512-bit output. RFC 9909 says the pre-hash can be computed in the signing or verifying module or in a separate module, which reduces the data sent to hardware such as HSMs. Its security relies on both preimage and collision resistance of the pre-hash function. RFC 9909 permits HashSLH-DSA in X.509 certificates and CRLs. RFC 9881 does not, because it says certificates, CRLs, OCSP, issuance and related PKIX protocols MUST NOT use the id-hash-ml-dsa-*-with-sha512 identifiers. The TLS draft also excludes the HashML-DSA variants. RFC 9814 says pre-hash mode is not specified for CMS SignedData and notes that pre-hash produces a different signature than pure mode for identical content.
- What is signed: the signature covers PH_M, a digest of the message, and the digest function is named in the OID.
- X.509 availability: HashSLH-DSA is allowed in X.509 under RFC 9909, while HashML-DSA is excluded from X.509 by RFC 9881.
- TLS and CMS: the TLS draft excludes HashML-DSA and RFC 9814 does not specify pre-hash for CMS.
- Mode commitment: a certification authority operator must decide in advance whether its CA certificates use pure or pre-hash mode.
- Recommended alternative: RFC 9881 points to the external mu mode in its Appendix D for pre-hash-style workflows.
Before choosing pre-hash mode, confirm that the certificate profile, library and HSM in your environment support the specific OID you plan to issue or verify.
Which differences of pure and pre-hash signing change systems and decisions
Pure and pre-hash signing differ in what the signature covers, which keys and certificates can be used, and how software and hardware are wired. The cards below cover the consequences that the sources report for certificate operators, HSM and module design, and CMS and signed-attribute handling.
A key is bound to one mode
A key carrying a pure SLH-DSA OID cannot be used to produce HashSLH-DSA signatures, and a key carrying a HashSLH-DSA OID cannot be used for pure signatures. The OID is therefore a fixed property of the key, not a runtime option. Before issuing or procuring keys, confirm which OID family each product and certificate profile expects.
RFC 9909 textCA operators decide the mode early
RFC 9909 says certification authority operators must decide in advance which mode their CA certificates will use. Because a key is bound to one mode, a change of mode later means new keys rather than a configuration change. Put the mode decision into the CA's design and key-ceremony plan before the first certificate is issued.
RFC 9909 textThe OID names the pre-hash function
In RFC 9909 the pre-hash function is fixed by the suffix after 'with' in the OID, so the parameter set and the pre-hash are chosen together. The sources list SHA-256 for sha2-128s, SHA-512 for sha2-192 and sha2-256, and SHAKE128 or SHAKE256 for the shake variants. Check the OID in a certificate or product configuration to confirm which hash will run.
Pre-hash can run in a separate module
RFC 9909 says the pre-hash can be computed in the signing module, the verifying module, or a separate module. Running it outside the signer reduces the amount of data sent to hardware such as HSMs. Ask the HSM vendor whether the pre-hash step can be offloaded in the firmware and version you run.
CMS does not specify pre-hash
RFC 9814 specifies only pure SLH-DSA for CMS SignedData and states that pre-hash mode is not specified for use with CMS. It also notes that pre-hash produces a different signature from pure mode for identical content. Signed content verified under one mode will not match the other, so tooling that expects CMS must be checked for the mode it emits.
RFC 9814 textSigned attributes need a larger digest
When CMS signed attributes are present, RFC 9814 requires the digest algorithm to produce a hash at least twice the size of the SLH-DSA tree's hash. RFC 9814 also recommends signed attributes so recipients can process content as a stream. Confirm the digest algorithm configured for SLH-DSA signed attributes against this requirement before deployment.
RFC 9814 textWhere pure and pre-hash signatures appear in certificates, CMS and TLS
The mode a signature uses is set by the format that carries it, so the first question for an engineer is which format a given system produces. In X.509 certificates and CRLs, RFC 9909 allows both SLH-DSA modes: pure SLH-DSA, which signs the full message, and HashSLH-DSA, which signs a pre-hash digest of it. The two modes use different object identifiers, and a key generated with a pure OID cannot be used for HashSLH-DSA signatures or the reverse. RFC 9909 also requires certification authority operators to decide the mode for their CA certificates in advance. By contrast, RFC 9881 specifies only pure ML-DSA for X.509 and says certificates, CRLs, OCSP and related PKIX protocols must not use the HashML-DSA identifiers. Confirm which mode your CA software and issuance profiles produce before generating CA keys.
In CMS SignedData, RFC 9814 specifies only pure SLH-DSA with an empty context string, and it says pre-hash mode is not specified for CMS SignedData. The RFC notes that pre-hash produces a different signature from pure mode for identical content, so a signature made in one mode will not verify in the other. If signed attributes are present, RFC 9814 requires the digest algorithm to produce a hash at least twice the size of the SLH-DSA tree's hash, and it recommends signed attributes so recipients can process content as a stream. Check the sizing requirement against your signing library's default digest before deploying.
In TLS, draft-ietf-tls-mldsa-06, dated 11 September 2026, uses ML-DSA.Sign and ML-DSA.Verify, explicitly excludes the HashML-DSA variants and requires the context string to be empty. A TLS stack that exposes a pre-hash option should not be configured to use it for these handshakes. The stateful hash-based schemes in RFC 9802 (HSS, XMSS and XMSS^MT) apply no digest before signing and sign the full message, so they are pure by design. Whatever the format, check the library and HSM interface for the mode it exposes: look for OID selection, a pre-hash flag, a context parameter, or a separate digest-then-sign call, and record which one your deployment uses. Where the sources do not say how a particular product behaves, confirm that with the vendor's documentation or a test signature.
How to work out which signing mode applies to your system
This sequence establishes whether a given certificate, CMS object or hardware module uses pure signing over the full message or pre-hash signing over a digest, and records that decision in writing before issuance. Each step produces evidence a CA, vendor or auditor can check against the same profile.
Check the OID arc in the certificate profile
Start with the certificate profile or CA policy that governs the signing key. For SLH-DSA, RFC 9909 assigns pure signing OIDs (id-slh-dsa-*) to arcs 20 to 31 and HashSLH-DSA OIDs (id-hash-slh-dsa-*) to arcs 35 to 46 under 2.16.840.1.101.3.4.3. Find the OID listed in the profile and match it to one of these ranges. The step is done when you can state the mode the OID implies, and when the profile shows that a key with a pure OID is not used for HashSLH-DSA signatures or the reverse.
Identify the document that carries the signature
Establish whether the signature sits in an X.509 certificate or CRL, a CMS SignedData object, or a TLS handshake, because each document has its own restriction. RFC 9881 specifies only pure ML-DSA for X.509 and bars the id-hash-ml-dsa-*-with-sha512 identifiers from certificates, CRLs, OCSP and PKIX issuance. RFC 9814 specifies only pure SLH-DSA with an empty context string for CMS, and draft-ietf-tls-mldsa-06 excludes the HashML-DSA variants and requires an empty context. Record the document type and the restriction that applies to it.
Confirm the mode exposed by the HSM or library
Open the documentation for the HSM, cryptographic library or signing service and find the signing function it exposes for the algorithm. Note whether it signs the full message (pure) or a pre-hash digest (PH_M), and whether the pre-hash is computed inside the module or in the calling software. RFC 9909 notes the pre-hash can run in either place and that doing it outside the module reduces the data sent to hardware such as HSMs. The step is done when you have written down the function name, the mode it implements and the location of the pre-hash computation.
Compare the stated mode against the profile
Check that the mode the module exposes matches the OID arc the profile requires. If the library offers both modes under one key, confirm which one the issuing path calls, because RFC 9909 says a key with a pure OID cannot produce HashSLH-DSA signatures. Where they disagree, stop and resolve the conflict with the CA operator or vendor before issuing anything, since the wrong mode produces a signature that the profile does not allow.
Ask the vendor to state the mode in writing
Send the vendor a written question asking which signing mode each algorithm and OID uses in the product version you run, where the pre-hash is computed, and whether the mode can be changed after key generation. Ask for the answer in a document the vendor signs or in a dated support response. The step is done when you hold a written statement naming the version, the mode and the OID arc. Do not accept a verbal answer or a general marketing claim in its place.
Record the decision before issuance
Write the chosen mode, OID arc, document type, module and version, and the vendor statement into the CA policy or key register. RFC 9909 says certification authority operators must decide in advance which mode their CA certificates use, so the record must exist before the first certificate is issued. Date the entry and name the person who approved it. The step is done when the register entry can be produced for an auditor and matches the profile and vendor statement.
Common mix-ups between pure signing, pre-hash signing and the hash-based schemes
Several terms in the post-quantum signature standards look alike but change what gets signed, which certificate formats accept them, and which OIDs apply. The cards below cover the points that most often lead to a wrong assumption about a signing mode.
Pre-hash is not a stronger or weaker mode
RFC 9909 describes HashSLH-DSA as signing a pre-hash digest of the message (PH_M) and pure SLH-DSA as signing the full message, and both are allowed in X.509 certificates and CRLs. The sources do not rank one above the other, so a reviewer should not read the pre-hash variant as a downgrade or an upgrade. Confirm which mode each CA and each certificate profile uses, since RFC 9909 says CA operators must decide in advance.
RFC 9909 textContext string is empty in X.509
RFC 9909 states that the context string is always empty when SLH-DSA is used in X.509, for both pure and pre-hash modes. A verifier that expects a non-empty context will reject these signatures, so check that the signing and verifying modules pass an empty context. Do not assume a context value carries over from another protocol.
RFC 9909 textHashML-DSA excluded from X.509 and TLS
FIPS 204 defines HashML-DSA, but RFC 9881 specifies only pure ML-DSA for X.509 and says the id-hash-ml-dsa-*-with-sha512 identifiers MUST NOT be used in certificates, CRLs, OCSP or PKIX issuance. The TLS draft draft-ietf-tls-mldsa-06 also excludes the HashML-DSA variants and uses ML-DSA.Sign with an empty context. Presence of HashML-DSA in FIPS 204 does not mean a PKI or TLS product can use it, so ask vendors which identifiers they emit.
RFC 9881 textSHA-512 suffix names the pre-hash
In RFC 9909 the function after the 'with' in an OID names the pre-hash function, so an identifier ending in SHA-512 says the message is pre-hashed with SHA-512 before signing. It does not mean the message is hashed in pure mode. Pure identifiers, such as id-slh-dsa-*, carry no hash suffix. Read the OID text rather than inferring the mode from the presence or absence of a hash name.
RFC 9909 textStateful schemes sign the full message
RFC 9802 says that for HSS, XMSS and XMSS^MT in X.509, no digest is applied before signing and the full message is signed. This differs from the pre-hash mode of SLH-DSA in RFC 9909, so the stateful schemes in RFC 9802 do not use a digest step at all. Stateful schemes also carry key state, which is covered separately in the stateful versus stateless topic, so confirm both the mode and the state handling for any HSS or XMSS deployment.
RFC 9802 textPH_M is not the full message
In RFC 9909, PH_M is the pre-hash digest produced from the message, not the message itself. A verifier that expects the full message will fail on a HashSLH-DSA signature, and the sources state that a pre-hash signature differs from a pure signature over identical content. The pre-hash can be computed in the signing module or a separate module, which affects what is sent to an HSM. Confirm where the digest is computed in your design.
RFC 9909 textQuestions readers search about pure and pre-hash signing
Are pure signing and pre-hash signing the same thing?
No. Pure signing takes the full message as input, while pre-hash signing takes a digest of the message as input. RFC 9909 describes pure SLH-DSA as signing the full message and HashSLH-DSA as signing a pre-hash digest of the message, labeled PH_M. Because the signed input differs, the two modes produce different signatures for identical content. RFC 9814 states this directly for CMS, noting that pre-hash produces a different signature than pure mode for the same content. The mode is a property of the algorithm identifier, not a setting you change afterward, so treat the two as separate choices when you read a vendor document or standard.
Which signing mode must a CMS SignedData signature use?
For SLH-DSA in CMS SignedData, RFC 9814 specifies only pure SLH-DSA with an empty context string. It states that pre-hash mode is not specified for use with CMS SignedData, so a SignedData signature should be produced in pure mode under that standard. If your signing product offers a pre-hash option for CMS, confirm with the vendor which RFC or draft it follows, since the sources listed on this page do not describe how such an option would interoperate with CMS recipients. RFC 9814 also says that when signed attributes are present, the digest algorithm must produce a hash at least twice the size of the SLH-DSA tree's hash, and it recommends signed attributes so recipients can process content as a stream.
Does X.509 allow both pure and pre-hash signatures?
It depends on the algorithm. For SLH-DSA, RFC 9909 says both pure and pre-hash modes are allowed in X.509 certificates and CRLs. For ML-DSA, RFC 9881 specifies only pure ML-DSA for X.509, and says certificates, CRLs, OCSP, issuance and related PKIX protocols MUST NOT use the id-hash-ml-dsa-*-with-sha512 identifiers. For HSS, XMSS and XMSS^MT, RFC 9802 says no digest is applied before signing and the full message is signed. Check the RFC for the algorithm your certificate authority uses, and confirm that your PKI software recognizes the identifier you intend to issue under.
Can one deployment use both pure and pre-hash signing?
The sources allow it for SLH-DSA in X.509, but they constrain how keys are used. RFC 9909 says a key with a pure OID cannot be used for HashSLH-DSA signatures, and the reverse also holds, so each key is committed to one mode. Certification authority operators must decide in advance which mode their CA certificates will use. A deployment that mixes modes therefore needs separate keys for each mode, and every verifier must accept the identifiers in use. For ML-DSA in X.509, RFC 9881 gives interoperability and key-commitment difficulty as reasons to exclude the pre-hash mode, so a mixed design is not supported there. Confirm the intended mode with your PKI vendor before issuing.
Why is the OID where the signing mode gets fixed?
The OID identifies both the algorithm and the mode, so the mode is set when a key is generated and certified. RFC 9909 assigns pure SLH-DSA OIDs (id-slh-dsa-*) under arcs 20 to 31 and HashSLH-DSA OIDs (id-hash-slh-dsa-*) under arcs 35 to 46, both under 2.16.840.1.101.3.4.3. RFC 9909 also names the pre-hash function in the OID: sha2-128s uses SHA-256, sha2-192 and sha2-256 use SHA-512, shake-128 uses SHAKE128 with 256-bit output, and shake-192 and shake-256 use SHAKE256 with 512-bit output. Because the identifier is embedded in the certificate, a verifier that does not recognize it cannot check the signature, so confirm the identifiers your software supports.
What should I ask a vendor about pre-hash signing?
Ask which mode each signature uses, and which OID your certificates and CMS objects carry. Ask whether the product implements pure SLH-DSA or HashSLH-DSA, and whether it implements the pre-hash function named in the OID. For SLH-DSA in X.509, ask whether keys are committed to one mode at generation time, as RFC 9909 requires. Ask where the pre-hash is computed: RFC 9909 says it can run in the signing module, the verifying module or a separate module, which reduces the data sent to hardware such as HSMs. Ask whether the product supports the external mu mode described in RFC 9881 Appendix D for pre-hash-style workflows. Request the exact RFC or draft version the product follows.
Is pure signing stronger than pre-hash signing?
The sources listed on this page do not rank the two modes by strength. RFC 9909 says that security of the pre-hash mode relies on both preimage and collision resistance of the pre-hash function. RFC 9881 says excluding HashML-DSA from X.509 leads to the loss of the extra collision resistance that pure ML-DSA provides, which is a stated trade-off in that document. Neither source calls one mode stronger overall. Ask your vendor or the standard's authors for a direct comparison, and check the security considerations of the specific RFC you implement before choosing a mode.
How DeployOpen works on this
DeployOpen scopes, builds and hands over post-quantum signing setups with the signing mode fixed in writing before any certificate is issued. For each system we record whether it uses pure signing or pre-hash signing, which standard governs that choice, and which parts of the stack must agree on it. Engagements are fixed-scope, and the written scope sets the deliverables.
How we scope
- We list every certificate, CRL and signing workflow in scope and record which signing mode each one uses or must use.
- We confirm which standard applies to each use, such as RFC 9881 for X.509 ML-DSA or RFC 9814 for CMS SignedData.
- The written scope names the signing mode decision and who owns it, since RFC 9909 requires CA operators to decide in advance.
How we build
- We configure each CA and signing service to one mode, using the pure or pre-hash OIDs that match the chosen key.
- We check that keys are not reused across modes, because a key carrying a pure OID cannot produce pre-hash signatures.
- We document where any pre-hash digest is computed, in the signing module or a separate module, and what that means for HSM load.
How we hand over
- We deliver a configuration record stating the signing mode, OID and pre-hash function for each certificate profile.
- We provide test evidence that verifiers in your environment accept signatures produced in the chosen mode.
- We document which verifiers or protocols must not use the pre-hash identifiers, such as TLS drafts that exclude HashML-DSA.
How we support
- Ongoing support is available as a retainer, covering signing mode changes when standards or client libraries are updated.
- We retest signing paths after upgrades to confirm that the mode and context string still match the written configuration.
- Confirm current OID assignments and library support against the RFCs and your vendors' documentation before any production change.
Sources and further reading
- RFC 9909: SLH-DSA in X.509 certificates and CRLs ↗
- RFC 9881: ML-DSA in X.509 certificates and CRLs ↗
- RFC 9814: SLH-DSA in CMS SignedData ↗
- IETF draft-ietf-tls-mldsa-06: ML-DSA in TLS ↗
- NIST FIPS 204: Module-lattice-based digital signature standard ↗
- NIST FIPS 205: Stateless hash-based digital signature standard ↗

