Pure SLH-DSA vs HashSLH-DSA: signing the message or a digest

Pure SLH-DSA signs the entire content directly, while HashSLH-DSA signs a digest of it. The two use different OIDs and keys cannot be shared between them.

On this page

Does pure SLH-DSA or HashSLH-DSA apply to your signing system?

You need to know which mode applies when a vendor, standard or tender names pure SLH-DSA or HashSLH-DSA. Pure SLH-DSA signs the entire content directly, while HashSLH-DSA signs a digest of the content. Each signature is tied to one mode through the key and its object identifier (OID): RFC 9909 says a key assigned to a pure SLH-DSA OID cannot be used for a HashSLH-DSA signature, and a key assigned to a HashSLH-DSA OID cannot be used for a pure signature. Mode is therefore fixed when the key is created, not chosen per signature.

The question usually reaches PKI engineers, HSM administrators, and engineers who build CMS and X.509 profiles. PKI engineers see it in certificate profiles and in the algorithm identifiers a CA issues. HSM engineers see it in which mechanisms and OIDs a module exposes. CMS engineers see it in signed-data structures. Check each product against RFC 9909, which defines HashSLH-DSA OIDs at arcs 35 through 46 under sigAlgs 2.16.840.1.101.3.4.3, and against RFC 9814, which covers CMS.

Confirm the mode from the OID, not from the marketing name. The pure OIDs sit at arcs 20 through 31 and the HashSLH-DSA OIDs at arcs 35 through 46, and each HashSLH-DSA name includes its pre-hash function, such as id-hash-slh-dsa-sha2-128s-with-sha256. For X.509, RFC 9909 says only the empty context string is used, while FIPS 205 allows a context string of up to 255 bytes. Ask the vendor which OID its keys and certificates carry and whether any setting lets a key sign in the other mode.

RFC 9814 specifies only pure mode with an empty context string for CMS signed-data, because signed attributes already let a small value be signed. RFC 9814 also notes that pre-hash and pure mode produce different signatures for the same content, so a verifier must know the mode in advance. Where a system must produce or verify both forms, confirm the exact versions in use, since the sources do not say that the two modes are interchangeable.

Pure and HashSLH-DSA side by side, attribute by attribute

This table sets pure SLH-DSA against HashSLH-DSA across the attributes the sources give, including what is signed, pre-hash functions, OID arcs, naming, key reuse and context strings. Read each row as a difference that affects key assignment, interoperability or X.509 and CMS use. The main takeaway is that a key is bound to one mode, so the mode must be chosen before a key is generated.

AttributePure SLH-DSAHashSLH-DSA
What is signedThe entire message content, signed directlyA digest of the content, computed with a pre-hash function
Pre-hash functions by parameter familyNone, because no digest is computed before signingSHA-256 for SHA2 128 sets, SHA-512 for SHA2 192 and 256 sets, SHAKE128 (256-bit output) for SHAKE 128 sets, SHAKE256 (512-bit output) for SHAKE 192 and 256 sets
OID arc range under sigAlgsArcs 20 through 31 under 2.16.840.1.101.3.4.3Arcs 35 through 46 under 2.16.840.1.101.3.4.3
Name formatPure names such as id-slh-dsa-sha2-128s, with no pre-hash function in the nameNames that include the pre-hash function, such as id-hash-slh-dsa-sha2-128s-with-sha256
Key reuse ruleA key tied to a pure OID cannot be used for a HashSLH-DSA signatureA key tied to a HashSLH-DSA OID cannot be used for a pure signature
Context string behaviour in X.509 and FIPS 205X.509 uses only the empty context string, while FIPS 205 allows a context string of up to 255 bytesX.509 uses only the empty context string, while FIPS 205 allows a context string of up to 255 bytes
Signature size, 128s example7856 bytes for 128s, per RFC 99097856 bytes for 128s, matching the pure variant, per RFC 9909
Defining documentFIPS 205 defines the pure algorithms, and RFC 9909 defines their OIDsRFC 9909 defines the HashSLH-DSA variants, OIDs and pre-hash functions

What pure SLH-DSA and HashSLH-DSA each are and where they are defined

Pure SLH-DSA is the form of the SLH-DSA signature scheme that signs the entire content directly, with no pre-hash step applied by the signing protocol. It is defined in FIPS 205, the NIST standard published as a final standard on 13 August 2024, which followed a draft dated 24 August 2023. FIPS 205 also allows a context string of up to 255 bytes, which gives the signer a way to bind a signature to an application domain. Pure SLH-DSA is the form most engineers meet first, because it is the one NIST standardized directly and the one that most libraries expose by default.

  • Defining document: FIPS 205 defines the pure algorithms, and RFC 9909 assigns their object identifiers (OIDs) at arcs 20 through 31 under sigAlgs 2.16.840.1.101.3.4.3.
  • Signing input: The entire message is passed to the signing operation, so the verifier needs the full content to check the signature.
  • Context string: FIPS 205 permits a context string of up to 255 bytes, while X.509 usage in RFC 9909 uses only the empty context string.
  • OpenSSL naming: The OpenSSL 3.5 documentation for its SLH-DSA key type lists a mandatory-digest value that is the empty string, meaning no digest may be specified for the twelve pure algorithm names.
  • Where it appears: Practitioners meet pure names in library configuration and in certificate or key profiles that name the algorithm with a pure OID.

Before issuing keys, confirm in the library and profile documentation whether your system expects the pure OIDs or the pre-hash OIDs, and confirm that the context string handling matches what your verifiers expect.

Six differences that change systems, configurations or decisions

Pure SLH-DSA and HashSLH-DSA differ in what gets signed, how keys are bound to modes, and what memory and certificate rules apply. Each card below is one consequence that changes a system, a configuration or a decision, and what to confirm before you choose.

Keys bound to one mode

RFC 9909 ties each public key to a specific algorithm OID. A key registered under a pure SLH-DSA OID cannot produce a HashSLH-DSA signature, and a key registered under a HashSLH-DSA OID cannot produce a pure signature. Choose the mode before key generation, because switching later means generating new keys and reissuing certificates. Confirm which OID your HSM, library and CA profile expect for each key.

RFC 9909

Memory use in hardware and verifiers

RFC 9909 says HashSLH-DSA reduces the amount of data held in memory, which helps with HSMs and verifiers. Pure SLH-DSA processes the full message inside the signing device, while HashSLH-DSA passes only a digest. For constrained HSMs or embedded verifiers, the memory footprint can decide which mode the device can run. Ask the HSM vendor which mode its firmware supports and how large a message it can handle.

RFC 9909

Pre-hash function fixed per family

RFC 9909 pairs each HashSLH-DSA parameter family with one pre-hash function: SHA-256 for the SHA2 128 sets, SHA-512 for the SHA2 192 and 256 sets, SHAKE128 with 256-bit output for the SHAKE 128 sets, and SHAKE256 with 512-bit output for the SHAKE 192 and 256 sets. The pre-hash is part of the algorithm name, such as id-hash-slh-dsa-sha2-128s-with-sha256. Your configuration must name the pre-hash that matches the parameter set, and a mismatch produces a different algorithm.

RFC 9909

Context string rule in X.509

RFC 9909 says X.509 uses only the empty context string, while FIPS 205 allows a context string of up to 255 bytes. A verifier that expects an X.509 signature will reject one built with a non-empty context. Check that your signing library sets the context to empty for certificate and CRL signing, and confirm the rule in your PKI profile before issuing.

RFC 9909

Different signatures for the same content

RFC 9814 notes that pre-hash and pure mode produce different signatures for the same content. Systems that compare, cache or deduplicate signatures will see two values for one document depending on the mode. RFC 9814 specifies only pure mode with an empty context for CMS signed-data, because signed attributes already let a small value be signed. Do not assume a signature from one mode verifies under the other, and record the mode in any evidence store.

RFC 9814

Matching sizes across modes

RFC 9909 says the HashSLH-DSA signature, public key and private key sizes match those of the pure variants, for example 7856-byte signatures for 128s. Storage and bandwidth planning therefore need no separate allowance for the mode choice. The size match does not mean the signatures interoperate, so plan capacity from the pure size tables and still confirm mode-specific behavior with each product.

RFC 9909

Where pure and HashSLH-DSA show up in protocols, certificates and libraries

The practical question for most teams is which of the two SLH-DSA modes a given protocol or library expects. RFC 9909 defines both, and the two are not interchangeable. A key bound to a pure SLH-DSA object identifier cannot produce a HashSLH-DSA signature, and a key bound to a HashSLH-DSA identifier cannot produce a pure signature. Before issuing or provisioning a key, confirm which identifier the consuming protocol or certificate profile requires, because the mode is fixed by the key's algorithm identifier rather than chosen per signature.

For X.509, RFC 9909 states that the certificate profile uses only the empty context string, while FIPS 205 allows a context string of up to 255 bytes. For CMS signed-data, RFC 9814 (July 2025) specifies only pure mode with an empty context string. Its reasoning is that signed attributes already allow a small value to be signed, so a pre-hash is not needed. RFC 9814 also notes that pre-hash and pure mode produce different signatures for the same content. Teams building signing workflows that mix tooling should confirm that every component is using the same mode.

In OpenSSL 3.5, the SLH-DSA key type documents a mandatory-digest value that is the empty string for the twelve pure algorithm names, meaning no digest may be specified when signing with a pure SLH-DSA key. Engineers configuring signing calls should check that the digest argument is left empty for pure names and is set only for the HashSLH-DSA names. The sources listed on this page do not describe support in other libraries, hardware modules or products, so confirm the mode each one implements against its own documentation for the version you run.

How the message reaches the signature in each mode

The diagram starts with the message and splits into two paths. In pure SLH-DSA, the entire content goes straight into the signing function. In HashSLH-DSA, the content first passes through a pre-hash function, with SHA-256 for the SHA2 128 sets, SHA-512 for the SHA2 192 and 256 sets, SHAKE128 with 256-bit output for the SHAKE 128 sets, or SHAKE256 with 512-bit output for the SHAKE 192 and 256 sets, and only the digest is signed. The OID tie at the key stage keeps each key to one mode, so a key issued for one cannot produce a signature for the other.

Pure mode signs the full content, while HashSLH-DSA signs a pre-hashed digest.

Whether pure and HashSLH-DSA are used together or interchanged

A key is bound to one mode, so a deployment chooses pure or HashSLH-DSA for each key it generates. RFC 9909 assigns pure SLH-DSA and HashSLH-DSA to different object identifiers, and it states that a key tied to a pure SLH-DSA OID cannot produce a HashSLH-DSA signature, and a key tied to a HashSLH-DSA OID cannot produce a pure signature. Because the OID travels with the public key in X.509 certificates and in CMS structures, a verifier can read the mode from the key it holds. Teams planning a rollout should decide the mode per key purpose before generating key material, and should check that every signing library, HSM and verifier in the path accepts the OID they intend to issue, since a key generated under one OID cannot be re-labeled to the other.

The two modes produce different signatures for the same content, so a verifier must match the mode the signer used. Pure SLH-DSA signs the entire message directly, while HashSLH-DSA signs a digest of the message produced by a named pre-hash function. RFC 9814 notes that pre-hash and pure mode produce different signatures for the same content, which means neither mode can be substituted for the other as a fallback. A verifier that is configured only for pure signatures will reject a HashSLH-DSA signature, and the reverse is also true. Before going live, confirm that each verifier in your path is built for the mode and pre-hash function that your signing side uses, and test a signature from each signer against each verifier.

Both modes share the same single-tree limit, so the mode choice does not change how many signatures one tree can make. RFC 9909 and RFC 9814 both state that a single SLH-DSA tree must not be used for more than 2^64 signing operations, whether the signatures are pure or pre-hashed. Plan key lifetimes and signing volumes around that limit rather than assuming HashSLH-DSA extends it. Ask your vendor or library to confirm how it enforces or reports the count for each key, since the standards set the ceiling but do not describe how an implementation tracks usage.

How to work out which mode applies to your system

This sequence establishes whether each SLH-DSA key and signature in your system uses pure signing or HashSLH-DSA pre-hashing, and records that answer in a form an auditor or verifier can check. Each step produces evidence you can compare against the contract, the configuration and the test results.

  1. Check the contract, tender or customer requirement

    Start by reading the contract, tender or customer requirement and find the algorithm name or OID it names for SLH-DSA. Some requirements name a pure variant and others a HashSLH-DSA variant, and the name tells you which mode is expected. Record the exact identifier in writing, including the parameter set and the pre-hash function if one is named. This step is complete when you have one written identifier that you can compare with the other steps. If the requirement names only a general family and not a specific OID, ask the customer to confirm the identifier before you go further.

  2. Inventory where SLH-DSA keys are generated

    List every place in your system where an SLH-DSA key pair is generated, stored or loaded, including HSMs, software libraries, certificate authorities and build pipelines. For each location, record the OID or algorithm name the key is bound to. RFC 9909 assigns separate OID arcs for pure SLH-DSA and for HashSLH-DSA, and a key tied to one family cannot produce signatures in the other, so the bound OID decides the mode. The step is complete when every key location has a recorded OID and an owner. Keys whose OID you cannot confirm should be marked as unresolved.

  3. Check vendor documentation for the signing API

    For each product in the inventory, read the vendor documentation for the signing interface and identify which mode it produces. Look for whether the API signs the full content directly or accepts a pre-computed digest, and whether a pre-hash function is specified or chosen by the caller. Note the product name, version and edition, because behaviour can differ between releases. For the OpenSSL SLH-DSA key type, the OpenSSL 3.5 documentation lists the mandatory-digest value as the empty string for the pure algorithm names, which means no digest may be specified for them. Confirm each name against the documentation for the version you run. The step is complete when each product has a recorded signing mode and a version reference.

  4. Check the CMS or X.509 profile in use

    Confirm which profile governs each signature your system produces or verifies. RFC 9814 specifies only pure mode with an empty context string for CMS signed-data, and RFC 9909 states that X.509 uses only the empty context string. If your system uses CMS, check that its signed content and its signed attributes match the pure mode profile. If it uses X.509 certificates, check which SLH-DSA OID the certificate carries and whether that OID matches the mode recorded in the previous steps. The step is complete when each profile is matched to a mode and any mismatch is written down as a finding.

  5. Test that a verifier accepts the signature

    Produce a test signature with each system in its recorded mode, then verify it with a separate verifier that is configured for the same profile. Use a test message and record whether the verifier accepts it. Also check that the verifier rejects a signature produced in the other mode, since RFC 9909 says keys tied to one family cannot be used for signatures in the other. Record the verifier name, version, input and result for each test. The step is complete when every pairing of signer and verifier has a recorded accept or reject result that matches the expected mode. Keep the test records with your inventory so that a reviewer can repeat them.

  6. Confirm the names against the standards

    Before you close the review, compare every OID, algorithm name and profile statement you recorded with its source. Check the OID arcs and names in RFC 9909, the CMS profile in RFC 9814 and the EVP key type documentation in the OpenSSL 3.5 release you run. Record the document version or date you used for each check. If a name in your system does not appear in these sources, treat that as an open question and raise it with the vendor or customer. The step is complete when each identifier has a cited source and every open question has an owner.

Common mix-ups between the two modes and their names

The names of the two SLH-DSA modes look similar and are easy to conflate, but they change what gets signed, which keys can be used, and which signatures verify. The cards below cover the mix-ups that the sources settle directly, so each one can be checked against the specification before a design or procurement decision depends on it.

Assuming HashSLH-DSA signatures are smaller

A common assumption is that signing a digest produces a shorter signature. RFC 9909 says the HashSLH-DSA signature, public key and private key sizes match those of the pure variants, so the pre-hash step does not shrink the output. The example given is 7856-byte signatures for the 128s set, and the pre-hash choice changes what is signed and how much memory is held, not the size on the wire. Confirm sizes against the RFC 9909 tables for the exact parameter set you deploy before you size storage, bandwidth or certificate chains.

128s signature size
7856 bytes
RFC 9909 text

Treating the pre-hash name as optional

The HashSLH-DSA algorithm names include their pre-hash function, such as id-hash-slh-dsa-sha2-128s-with-sha256, and the name is part of the identifier, not a decorative suffix. RFC 9909 assigns pure and HashSLH-DSA OIDs at separate arcs, so a verifier that reads the wrong identifier will reach a different algorithm. Check that every system in a signing and verification chain uses the full name, and do not drop the pre-hash suffix when configuring or documenting a deployment.

RFC 9909 text

Reusing a pure key for HashSLH-DSA

A key pair created for pure SLH-DSA cannot be reused to produce HashSLH-DSA signatures, and the reverse holds too. RFC 9909 says a key tied to a pure SLH-DSA OID cannot be used for a HashSLH-DSA signature, and a key tied to a HashSLH-DSA OID cannot be used for a pure signature. Inventory keys by algorithm identifier before switching modes, and plan to generate new keys when a system moves between the two modes rather than reassigning existing ones.

RFC 9909 text

Assuming the same content yields the same signature

Signing identical content in pure and pre-hash mode does not produce the same signature. RFC 9814 notes that pre-hash and pure mode produce different signatures for the same content, so a signature from one mode will not match one from the other even when the message is identical. Test vectors, cached signatures and reproducibility checks must be generated with the mode they will be compared against, and a mismatch should be read as a mode difference before it is read as a fault.

RFC 9814 text

Assuming the context string is always available

The context string, which FIPS 205 allows to be up to 255 bytes, is not uniformly available across profiles. RFC 9909 says X.509 uses only the empty context string, and RFC 9814 specifies only pure mode with an empty context string for CMS signed-data. Verify which profile a system follows before relying on a non-empty context value, since a verifier that expects the empty string will reject other values.

RFC 9909 text

Expecting a digest mode to lift the signing limit

Moving to HashSLH-DSA does not change how many signatures one tree can produce. RFC 9909 and RFC 9814 both say a single SLH-DSA tree must not be used for more than 2^64 signing operations, whether pure or pre-hashed. Count signing operations per key in operational planning and apply the limit to both modes, since a change of mode is not a change of key lifetime.

RFC 9814 text

Questions people ask about pure SLH-DSA and HashSLH-DSA

Are pure SLH-DSA and HashSLH-DSA the same thing?

No. RFC 9909 treats them as two distinct modes of the same signature family. Pure SLH-DSA signs the entire content directly, while HashSLH-DSA signs a digest of the content, so the two modes produce different signatures for the same input. Each HashSLH-DSA algorithm name includes the pre-hash function it uses, which is the clearest sign that the two are separate algorithms. The two modes also use different object identifiers, so a system must check which one a certificate or key declares before it verifies anything.

Which of the two modes is newer?

Both sit under the FIPS 205 family. NIST published FIPS 205 as a final standard on 13 August 2024, and it specifies the pure SLH-DSA scheme. HashSLH-DSA is defined in RFC 9909, an IETF document, and is not described in the FIPS 205 sources listed on this page. Confirm the exact standard and version your product references before you rely on either name in a design or procurement document.

Does a rule require pure SLH-DSA or HashSLH-DSA?

The sources listed on this page do not say that any rule requires one mode over the other for commercial use. The NSA's CNSA 2.0 guidance and other national security requirements apply to national security systems, and they are not described here as binding on commercial organizations. If a contract or federal customer names a specific mode, use that requirement as written. Otherwise, ask your compliance lead to confirm which mode, if any, your regulator or customer expects.

Do we need both pure and pre-hashed signatures?

Usually no single system needs both, because a key is tied to one mode. RFC 9909 says a key assigned a pure SLH-DSA object identifier cannot produce a HashSLH-DSA signature, and a key assigned a HashSLH-DSA identifier cannot produce a pure signature. If you deploy both, you will manage two separate key sets, and each must be tracked in your inventory. Plan the key and certificate lifecycle for each mode separately, and check that your verifiers accept the mode that the signer uses.

Why would an engineer choose HashSLH-DSA for hardware or verifiers?

RFC 9909 says HashSLH-DSA reduces the amount of data held in memory, which helps with hardware security modules and verifiers that have limited memory. The document also states that HashSLH-DSA signature, public key and private key sizes match those of the pure variants, so the saving is in working memory rather than in what is transmitted. Test the memory footprint on your target hardware before you commit, since the sources do not give figures for specific devices.

Can a verifier check both kinds of signature with one routine?

Not without checking the declared identifier first. The two modes produce different signatures, so a verifier must read the algorithm identifier on the certificate or signature and apply the matching rule. RFC 9909 says X.509 uses only the empty context string, while FIPS 205 allows a context string of up to 255 bytes. If your library exposes both modes, confirm that it rejects a signature whose identifier does not match the key's declared mode.

What should we ask a vendor about the OID and digest they produce?

Ask which object identifier the product writes into certificates and signatures, and which pre-hash function it applies in HashSLH-DSA mode. RFC 9909 lists the pairings: SHA-256 for the SHA2 128 sets, SHA-512 for the SHA2 192 and 256 sets, SHAKE128 with 256-bit output for the SHAKE 128 sets, and SHAKE256 with 512-bit output for the SHAKE 192 and 256 sets. Ask whether the vendor's library follows RFC 9909 and whether its OpenSSL or other dependency versions match what you tested. Request the vendor's documentation of the mode and digest in writing.

Does the 2^64 signing limit change between the two modes?

No. RFC 9909 and RFC 9814 both say a single SLH-DSA tree must not be used for more than 2^64 signing operations, whether the signature is pure or pre-hashed. Track signing counts per key regardless of mode, and build that count into your key rotation schedule. Confirm the limit against the version of each RFC that your implementation follows.

How DeployOpen works on this

DeployOpen works through Pure SLH-DSA vs HashSLH-DSA as part of a fixed-scope engagement, starting from the signing paths and the certificate or protocol profiles your systems use. The written scope sets which mode each system uses, how keys are bound to that choice, and what evidence is delivered at the end.

How we scope

  • Inventory which systems sign raw messages and which sign pre-hashed digests.
  • Record which SLH-DSA OIDs each key is bound to, since a key cannot switch modes.
  • Agree in writing whether X.509 or CMS profiles constrain the choice for your environment.

How we build

  • Configure the signing library or HSM so each key is generated for one mode only.
  • Confirm the empty context string handling matches the profile your verifiers expect.
  • Test pure and pre-hashed signatures against the verifiers you run, not assumed compatibility.

How we hand over

  • Deliver a document listing each key, its OID, its mode and the systems that depend on it.
  • Record the signature count limits that apply to each tree, so operators can track usage.
  • Hand over configuration files and test results so your team can repeat the checks.

How we support

  • Ongoing support and continuous testing are available as a retainer after handover.
  • Retesting is scoped in writing when library versions or verifier software changes.
  • Confirm with your library and HSM vendors which SLH-DSA versions and modes they support.

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.