ML-DSA hedged signing vs deterministic signing: which signing mode to configure

Hedged ML-DSA signing mixes fresh randomness into each signature, while deterministic signing uses only precomputed key randomness. Here is how each is exposed in libraries and how to choose.

On this page

Hedged and deterministic ML-DSA signing differ in how per-signature randomness is produced, and which one to configure depends on side-channel and fault exposure

A library or vendor setting that asks for a signing mode is asking how each ML-DSA signature gets its per-signature randomness. In a hedged signature, fresh random data is combined with randomness precomputed from the private key. In a deterministic signature, only the key-derived randomness is used, so the same key and message always produce the same signature. The distinction that matters most is how each mode handles side-channel and fault concerns, not interoperability, because RFC 9882 states that verification is identical for both and the choice does not affect it. Security leads, platform engineers and vendor-risk reviewers are the people who meet this question, usually as a parameter or configuration key in a signing library, or as a profile option in PIV and card deployments.

RFC 9882 says that by default ML-DSA is hedged, and that the signer SHOULD NOT use the deterministic variant on platforms where side-channel or fault attacks are a concern. The mldsa-native README makes the same default choice and warns that deterministic signing, done by passing an all-zero random input, makes fault and side-channel attacks harder to mitigate. OpenSSL 3.5 takes the opposite default for its deterministic parameter, which is 0 and draws randomness from a DRBG, and sets it to 1 to use 32 zero bytes instead. Before you accept a default or change it, check which mode your library, card or profile uses, and confirm the setting in the version you run. The OpenSSL test-entropy parameter overrides deterministic and is documented for testing, and the fips-indicator parameter reports 0 when test-entropy is used.

NIST's piv-standards repository has an open issue, opened on 18 August 2026, proposing that on-card ML-DSA signing in SP 800-78 use the hedged variant. The issue was labelled Public Comment on 16 November 2026, and the page showed no NIST decision when read on 4 December 2026. For PIV and card procurement, ask the vendor which mode the card profile enforces, whether it can be changed, and whether it follows the outcome of that issue. Confirm the mode in writing, and record it in your inventory of signing configurations.

Hedged and deterministic ML-DSA signing side by side

This table compares the hedged and deterministic ML-DSA signing modes attribute by attribute, using only what the cited specifications, library documentation and NIST issue record state. Read each row to see how the modes differ, where each is the default or exposed, and what the sources say about side-channel and fault exposure. The main takeaway is that verification is identical for both modes, so the choice is a signing-side decision that depends on the attack concerns in your environment.

AttributeHedged signingDeterministic signing
Source of randomnessCombines fresh random data with precomputed random data from the private key, per RFC 9882 Section 4Uses only the precomputed randomness from the private key, as FIPS 204 permits, per RFC 9882
Default in OpenSSL 3.5Default: the deterministic parameter is 0, drawing per message randomness from a DRBGSet by passing the deterministic parameter as 1, which uses 32 zero bytes instead of DRBG output
Default in mldsa-nativeDefault: the randomized hedged variant described in FIPS 204 Section 3.4Available by calling signature_internal with an all zero rnd argument
RFC 9882 positionDescribed as the default variant of ML-DSA in RFC 9882RFC 9882 says the signer SHOULD NOT use it where side-channel or fault attacks are a concern
Side-channel and fault guidanceRecommended where side-channel or fault attacks are a concern, per FIPS 204 Section 3.4 as quoted by NISTmldsa-native warns it makes fault and side-channel attacks harder to mitigate
Interoperability of verificationVerification is identical for both modes, so the choice does not affect interoperabilityVerification is identical for both modes, so the choice does not affect interoperability
Exposure in OpenSSL 3.5Selected through the deterministic parameter set to 0 and the test-entropy parameter, which the documentation reserves for testingSelected through the deterministic parameter set to 1, and ignored when test-entropy is set
Status in NIST piv-standards issue 3Proposed in an issue labelled SP 800-78 and Public Comment, with no NIST decision shown as of 4 December 2026Not proposed in the issue, which quotes FIPS 204 on avoiding the deterministic variant where side-channel attacks are a concern

What hedged signing and deterministic signing are

Hedged signing is the default variant of ML-DSA. RFC 9882 Section 4 describes it as combining fresh random data generated at signing time with precomputed random data stored as part of the private key. Because each signature draws on new randomness, two signatures over the same message differ, and the signing operation does not depend solely on the stored key material. The mldsa-native project makes this variant its default and describes it as the randomized hedged variant in FIPS 204 Section 3.4.

  • Randomness sources: Fresh random data is combined with the precomputed random data from the private key, as RFC 9882 Section 4 describes.
  • Library default: mldsa-native's README states that its default signing is this hedged variant.
  • Where it is exposed: Practitioners meet it as the default signing call in the library they deploy, and in the FIPS 204 specification as the randomized variant.
  • Side-channel posture: FIPS 204 Section 3.4, as quoted in NIST's piv-standards issue 3, is the basis for the guidance that this variant is preferred where side-channel attacks are a concern.
  • Verification: Hedged signatures verify with the same procedure as any ML-DSA signature, so verifiers do not need to know which mode produced them.

Confirm which signing mode your library and any hardware or card in your chain uses by default, and whether that default can be changed in configuration.

Differences that change configuration and risk decisions

Hedged and deterministic ML-DSA verify the same way, so the choice is made on the signer side. The cards below cover the guidance, defaults, test settings and open proposals that determine which mode a system ends up running.

Side-channel and fault guidance

RFC 9882 states that the signer should not use the deterministic variant on platforms where side-channel or fault attacks are a concern. The mldsa-native project makes the same point, noting that deterministic signing makes fault and side-channel attacks harder to mitigate. Teams signing on shared hosts, hardware-constrained devices or any platform exposed to physical access should check their threat model against this guidance before choosing the mode. Confirm the position in the current text of both documents.

RFC 9882 text

Default signing mode in OpenSSL 3.5

In OpenSSL 3.5 the deterministic signing parameter defaults to 0, so per-message randomness is drawn from a DRBG. Setting it to 1 switches to a deterministic signature that uses 32 zero bytes in place of that randomness. Teams that rely on the library default get the hedged behavior without any change, but should confirm the default in the version they run and record it in their configuration baseline.

OpenSSL ML-DSA docs

Test-entropy overrides the deterministic setting

OpenSSL ignores the deterministic parameter whenever test-entropy is set, and that value must be exactly 32 bytes. The parameter is documented for testing. A test harness that sets it can therefore produce signatures in a mode that differs from what the production configuration says, so production settings should be checked for any leftover test-entropy value.

OpenSSL ML-DSA docs

FIPS indicator returns 0 under test settings

OpenSSL's read-only fips-indicator parameter returns 0 when test-entropy is used or when message-encoding is set to 0. Teams that use the indicator as evidence for an assessment need to know that these settings cause it to report 0 even where the signing itself is otherwise configured. Include a check of this indicator in the evidence collected for any compliance review.

OpenSSL ML-DSA docs

Interoperability between the two modes

RFC 9882 says that verification is identical for hedged and deterministic signatures, so the choice does not affect interoperability. A verifier will accept either. This means the signing mode is a decision for the signer alone, and a change of mode does not require coordinated updates on the verification side. Confirm this against the verifier versions in use.

RFC 9882 text

Open PIV proposal on on-card signing

An issue in NIST's piv-standards repository, opened on 18 August 2026, proposes that on-card ML-DSA signing under SP 800-78 use the hedged variant. The issue was labelled Public Comment on 16 November 2026, and the page showed no NIST decision or response when read on 4 December 2026. Teams that plan PIV or card-based signing should track the issue and not assume the proposal has been adopted.

PIV issue 3

Where hedged and deterministic signing show up in libraries and standards work

The two ML-DSA signing modes are chosen through different controls depending on the library, so the first check is which interface your stack actually calls. In OpenSSL 3.5, the signing parameter deterministic defaults to 0, which draws per-message randomness from a DRBG. Setting it to 1 uses 32 zero bytes instead. The test-entropy parameter overrides deterministic and must be exactly 32 bytes, and OpenSSL documents it for testing only. Two related settings matter for review: the read-only fips-indicator parameter returns 0 when test-entropy is used or message-encoding is set to 0, and the ML-DSA context string defaults to the empty string and must match between signing and verification. Confirm these defaults against the OpenSSL EVP_SIGNATURE-ML-DSA page for the exact release you run.

The mldsa-native project takes the opposite starting point. Its README states that the default is the randomized hedged variant described in FIPS 204 Section 3.4. Deterministic signing is reached by calling signature_internal with an all-zero rnd argument, and the README warns that this makes fault and side-channel attacks harder to mitigate. That means a team that wraps mldsa-native must check whether its code paths ever pass a zero rnd, not only whether a configuration flag is set. RFC 9882 adds that the signer SHOULD NOT use the deterministic variant where side-channel or fault attacks are a concern, and that verification is identical in both modes, so the choice does not affect interoperability. Read the mldsa-native README and RFC 9882 together before fixing a setting.

Standards work is where the default may change. A NIST piv-standards issue opened on 18 August 2026 proposes that on-card ML-DSA signing in SP 800-78 shall use the hedged variant, quoting FIPS 204 Section 3.4 on avoiding the deterministic variant where side-channel attacks are a concern. The issue was labelled "SP 800-78" and "Public Comment" on 16 November 2026. When the page was read on 4 December 2026, it showed no NIST decision or response, so no PIV requirement should be assumed yet. Teams with smart-card or PIV-based signing should track the issue and record the open status in their vendor-risk file. Ask each vendor which mode its ML-DSA signing uses by default, and whether that mode can be changed without a code change.

How the randomness input differs between the two modes

Both modes start from the same precomputed random data stored with the private key, so the input path up to that point is identical. The hedged variant, which RFC 9882 describes as the default, adds fresh random data at signing time and combines it with the precomputed value. The deterministic variant skips the fresh data and signs with only the precomputed randomness, a choice FIPS 204 permits. RFC 9882 advises signers not to use the deterministic variant where side-channel or fault attacks are a concern. Check which mode your library defaults to, because the mldsa-native README and OpenSSL handle the deterministic setting differently.

Hedged signing adds fresh random data, while deterministic signing uses only the precomputed randomness.

Whether a system can use both modes and what verification requires

Verification does not depend on which signing mode produced the signature. RFC 9882 states that verification is identical for the hedged and deterministic variants, so the choice does not affect whether a verifier can check the signature. A signer, however, configures one mode per configuration, and the signing side is where the decision sits. Security teams should therefore treat the mode as a property of the signer, not of the verifying system, and record which mode each signing service, library or card uses.

Whether a single system can switch between both modes depends on the library and on how it exposes the choice. In OpenSSL 3.5, the signing parameter deterministic defaults to 0, so the hedged behavior applies unless it is set to 1. Setting deterministic to 1 uses 32 zero bytes in place of the random input. This is a configuration setting, so an organization should confirm which mode its own build uses rather than assume the default. Do not treat the two modes as interchangeable on every platform, because some libraries expose only one of them and the RFC itself advises against deterministic signing where side-channel or fault attacks are a concern.

Verification also requires that the context string match between signing and verifying. In OpenSSL 3.5 the context string is an octet string of up to 255 bytes that defaults to the empty string, and the same context must be supplied on both sides. A mismatch causes verification to fail even when the signing mode is correct. Before rolling out either mode, teams should test a signed message end to end with the exact context value their verifiers expect, and confirm the library version against the OpenSSL documentation for their release.

How to work out which signing mode your system should configure

This sequence establishes which ML-DSA signing mode your system uses by default, whether your platform's threat conditions favor one mode, and whether any profile or peer constraint requires a specific choice before you change anything. The result is a documented mode decision that you can verify against your own environment.

  1. Identify your library version and signing parameters

    Start by recording which cryptographic library and version your system uses for ML-DSA signing, then check the configuration for the signing parameters that control randomness. In OpenSSL 3.5, the deterministic parameter defaults to 0, which draws per-message randomness from a DRBG. Setting it to 1 uses 32 zero bytes instead. Confirm the value your configuration actually applies, because a default in the documentation may be overridden by your own settings. The step is complete when you have a written record of the library, its version and the effective value of the deterministic parameter.

  2. Check for side-channel and fault exposure

    Review whether your platform faces side-channel or fault attack concerns, because RFC 9882 advises that the signer should not use the deterministic variant of ML-DSA where those attacks are a concern. Consider the environment where signing keys are used, including shared hardware, exposed endpoints and any physical access. Your security team should make this assessment, since the RFC states the condition without setting a threshold for when it applies. The step is complete when you have recorded whether such concerns exist for each signing context.

  3. Check for a PIV or card profile mode

    If your signing keys live on a PIV card or another hardware token, check whether the applicable profile specifies a signing mode. A NIST piv-standards issue from 18 August 2026 proposes that on-card ML-DSA signing in SP 800-78 shall use the hedged variant, and the issue was labelled Public Comment on 16 November 2026. As of 4 December 2026, the page showed no NIST decision or response on that proposal, so treat it as unresolved and confirm the current status before relying on it. The step is complete when you know whether a profile mandates a mode or leaves the choice open.

  4. Read how the vendor documents the default

    Review the vendor or project documentation for your signing component to find its stated default and whether that default can be changed. The mldsa-native README, for example, states that its default is the randomized hedged variant from FIPS 204 Section 3.4, and that deterministic signing is done by calling the signing function with an all-zero random argument. Record the default the documentation states, the setting that changes it, and any warning the vendor attaches. The step is complete when you have the vendor's own statement of the default for the exact version you run.

  5. Confirm verification works across your peers

    Before you change the signing mode, confirm that the systems that verify your signatures accept signatures produced in the mode you intend to use. RFC 9882 states that verification is identical for both variants, so the choice should not affect interoperability, but that is a statement about the standard and not a test of your deployment. Run a sample signature in the chosen mode through each verifying peer in your environment, and check each one for an error. The step is complete when every peer verifies the test signature and you have recorded the results.

  6. Record the chosen mode and its evidence

    Write down the signing mode your system will configure, the reasons for choosing it, the library version it applies to, and the test results from the peer check. Note the date and the owner who approved the decision, and link to the vendor and standard sources that support it. Set a review point for when the library version changes or when a profile or NIST decision is published. The step is complete when the decision and its evidence are stored where your security and compliance reviewers can retrieve them.

Common mix-ups between the two modes

Hedged and deterministic ML-DSA signing are easy to confuse because the same library exposes several controls that look alike. The cards below cover the mix-ups that most often lead to a signing mode being configured differently from what the team intended, and each card names the setting to check.

Deterministic is not the test-entropy parameter

The deterministic parameter selects the signing mode, while test-entropy supplies fixed randomness for testing. In OpenSSL 3.5, setting deterministic to 1 uses 32 zero bytes as the per message randomness, but OpenSSL ignores deterministic whenever test-entropy is set. A team that sets test-entropy in a build and assumes deterministic signing is in effect may find the signing mode is not what they expected. Check both parameters in the signing configuration and confirm which one takes effect.

OpenSSL ML-DSA signing docs

The OpenSSL default is not deterministic

In OpenSSL 3.5, the deterministic parameter defaults to 0, so signatures draw per message randomness from a DRBG and use the hedged variant. Teams that assume a library default is deterministic may document the wrong signing behavior in their configuration records. Confirm the value in the deployed configuration rather than relying on memory or on another library's behavior, and record the effective setting in the system's cryptographic inventory.

OpenSSL ML-DSA signing docs

A fips-indicator of 0 is not a compliance statement

OpenSSL's read-only fips-indicator parameter returns 0 when test-entropy is used or when message-encoding is set to 0. That value reports a condition of the signing call, not whether a system is compliant with FIPS 204 or any other requirement. Reviewers who read a 0 as a compliance finding may reach a wrong conclusion in either direction. Ask the team which parameters were set for each signing path and what the indicator returned in that configuration, then assess compliance through the module's validation and the organization's own assessment.

OpenSSL ML-DSA signing docs

Verification does not depend on the signing mode

RFC 9882 states that verification is identical for hedged and deterministic signatures, so the choice does not affect interoperability. Teams sometimes assume that a verifier must be configured for a specific mode, or that signatures produced in one mode will fail in another. The signing mode is a decision for the signer, and it does not change how a verifier checks a signature. Test verification against signatures produced in both modes if the system will receive either.

RFC 9882 text

Questions people ask about hedged and deterministic ML-DSA signing

Are hedged and deterministic ML-DSA signing the same thing?

No. They differ in the randomness used when a signature is created, and the sources treat them as separate variants. The default hedged variant combines fresh random data with precomputed random data derived from the private key. RFC 9882 Section 4 describes this as the default behaviour of ML-DSA. The deterministic variant uses only the precomputed randomness, so the same message and key always produce the same signature. FIPS 204 permits both. In OpenSSL 3.5, the signing parameter deterministic controls the choice: it defaults to 0, which draws per message randomness from a DRBG, and setting it to 1 uses 32 zero bytes instead. Verification is the same for both, so the difference shows up when a signature is produced, not when it is checked.

Which signing mode is the default in OpenSSL 3.5?

The hedged mode is the default. In OpenSSL 3.5 the deterministic signing parameter defaults to 0, which draws the per message randomness from a DRBG. Setting it to 1 switches to deterministic signing, which uses 32 zero bytes in place of that randomness. Two conditions change this behaviour. OpenSSL ignores the deterministic parameter when the test-entropy parameter is set, and test-entropy must be exactly 32 bytes and is documented for testing only. Separately, OpenSSL's read-only fips-indicator parameter returns 0 when test-entropy is used or when message-encoding is set to 0. Engineers should confirm these settings in their own build, because a test configuration can silently differ from production.

When does RFC 9882 recommend against deterministic ML-DSA signing?

RFC 9882 recommends against the deterministic variant where side-channel or fault attacks are a concern. Its wording is that the signer SHOULD NOT use the deterministic variant of ML-DSA on platforms where side-channel attacks or fault attacks are a concern. The mldsa-native README gives a related reason: deterministic signing is done by calling signature_internal with an all zero rnd argument, and it warns that this makes fault and side-channel attacks harder to mitigate. Deployments that run on shared hosts, hardware the operator does not control, or devices exposed to physical access are the cases where this guidance applies most directly. Teams should assess their own platform against this text rather than assume it applies or does not apply.

Does verification change between hedged and deterministic ML-DSA signatures?

No. RFC 9882 states that verification is identical for the hedged and deterministic variants, so the choice does not affect interoperability. A verifier does not need to know which mode produced a signature in order to check it. The practical consequence is that a system can switch the signing mode on the signer side without changing its verification code or its peers. The ML-DSA context string still matters: it is an octet string of up to 255 bytes that defaults to the empty string in OpenSSL 3.5, and the same context must be supplied when signing and verifying. A mismatch there will cause verification to fail regardless of mode, so teams should check it when they test a change.

Is one signing mode required by the standard?

No. FIPS 204 permits both the hedged and the deterministic variant, and RFC 9882 says the deterministic variant is also allowed. The choice is therefore a configuration decision, constrained by the platform guidance in RFC 9882 and by the requirements of the environment. Ongoing standards work shows the question is still being settled for some use cases. An issue opened on 18 August 2026 in NIST's piv-standards repository proposes that on-card ML-DSA signing in SP 800-78 shall use the hedged variant. It was labelled "SP 800-78" and "Public Comment" on 16 November 2026, and the page showed no NIST decision or response when read on 4 December 2026. Teams that operate under SP 800-78 should treat that proposal as unresolved and check for a published outcome before relying on it.

What should you ask a vendor about its ML-DSA signing mode?

Ask which variant the product uses by default and whether the setting can be changed. Ask whether the product exposes the deterministic option or an equivalent, and which version and build it applies to, because OpenSSL 3.5 and other libraries differ. Ask how the product's signing behaves when test-entropy or a similar test setting is present, and whether the product reports a FIPS indicator that reflects that state. Ask what platform the product is designed for and whether it has been assessed against the side-channel and fault attack guidance in RFC 9882. For products that sign on a card, token or embedded device, ask how the vendor handles the SP 800-78 question. Request the answers in writing, tied to the exact version under review, and confirm them with a test in your own environment.

How much does it cost to change the ML-DSA signing mode?

The sources do not give a cost or effort figure for changing the signing mode, so this page does not state one. The cost depends on what is being changed. A configuration change in a library that already exposes the parameter is usually small, but the testing that confirms it is not. Testing covers signature generation on the target platform, verification by every peer, the context string, and the FIPS indicator in the build. The cost components are the engineer time to change and test the setting, the review by security and compliance teams, and any recurring checks when a library is upgraded. Ask any implementation partner for a fixed scope that lists these items so the quote can be compared like for like. DeployOpen does not publish a price list, and a quote follows from the written scope.

How DeployOpen helps configure post-quantum signing in your environment

DeployOpen approaches the choice between ML-DSA hedged and deterministic signing as a configuration decision to be made and documented for each environment, not a default to accept. We scope which signing libraries and components your systems use, confirm which mode each one exposes, and record the setting and its reasoning for your security and compliance reviewers.

How we scope

  • We inventory the signing libraries and components in your environment that call ML-DSA, such as OpenSSL 3.5 or other implementations you run.
  • We record which parameter set each system uses, ML-DSA-44, ML-DSA-65 or ML-DSA-87, and which signing mode each library exposes by default.
  • Engagements are fixed-scope, with the written scope stating which systems, signing paths and deliverables are covered before work starts.

How we build

  • We configure the signing mode in each component, for example the deterministic parameter in OpenSSL, and verify the resulting setting in a test environment.
  • We check whether the side-channel and fault-attack exposure of each signing path matches the mode the sources describe as appropriate for it.
  • We test that signatures verify correctly across the systems that consume them, since the sources state verification is identical for both modes.

How we hand over

  • We document each signing mode choice, the library setting that enforces it, and the reasoning tied to the exposure in your environment.
  • We deliver the configuration records and test results in a form your security, compliance and vendor-risk reviewers can check against their own requirements.
  • We flag open standards questions, such as the pending NIST discussion on hedged signing for on-card use, so your team can track them.

How we support

  • Ongoing support and upgrades are available as a retainer, which covers changes to signing libraries and their default settings over time.
  • We re-check signing configuration when libraries or standards are updated, including future NIST errata corrections to FIPS 204.
  • We can retest signing paths on a schedule your team agrees, so the documented mode stays aligned with what each system actually runs.

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.