ML-DSA-65 vs ML-DSA-87: which parameter set to choose

ML-DSA-65 and ML-DSA-87 are two of the three parameter sets in NIST FIPS 204, differing in key size, signature size and NIST security category. This page sets out what the sources give for each and how to decide which one fits your system.

On this page

Which ML-DSA parameter set do you need when you pick ML-DSA-65 or ML-DSA-87?

The choice between ML-DSA-65 and ML-DSA-87 is a choice of parameter set within one signature algorithm. Both are parameter sets of ML-DSA, the Module-Lattice-Based Digital Signature Standard that NIST published as FIPS 204 on 13 August 2024. The distinction that matters most is the security category each set maps to: ML-DSA-65 maps to NIST category 3 and ML-DSA-87 to category 5. The higher set carries larger keys and signatures, so the decision is usually a trade between a stronger category and the size cost that comes with it.

Architects and reviewers meet this choice in vendor documents, tender responses and audit requests that name one set and not the other. It also arises in certificate profiles, where the algorithm identifier fixes the set, and in library configuration, where a flag or constant selects it. OpenSSL exposes the two as EVP_PKEY_ML_DSA_65 and EVP_PKEY_ML_DSA_87, and mldsa-native fixes the set at compile time through MLD_CONFIG_PARAMETER_SET. A reviewer should confirm which set a product actually uses, since a document may state one set while the deployed configuration uses another.

Before choosing, check what the relevant document or regulator requires. NIST's PQC FAQ describes categories 4 and 5 as likely excessive and categories 2 and 3 as probably secure for the foreseeable future, which is a general statement and not a rule for any particular system. Sizes differ materially: the public key is 1952 bytes for ML-DSA-65 and 2592 bytes for ML-DSA-87, and the signature is 3309 bytes and 4627 bytes respectively, according to RFC 9881. Confirm these figures against the version of the standard or library you run, and ask the vendor which set each certificate, signing service or library build uses.

Ask the vendor to state the set in writing for each component in scope, and to confirm whether any certificate chain, firmware or protocol message has a size limit that the larger signature would exceed. Record the chosen set in the inventory, so the audit trail shows which parameter set protects each signing function.

ML-DSA-65 and ML-DSA-87 side by side: sizes, category and identifiers

This table sets the two ML-DSA parameter sets against each other on the attributes the sources give: defining standard, NIST category, key and signature sizes, object identifiers and library names. Read each row as a single attribute, and check the byte values against the library or certificate profile you will actually run. The main takeaway is that ML-DSA-87 is the larger set in every size column and sits at NIST category 5, while ML-DSA-65 sits at category 3.

AttributeML-DSA-65ML-DSA-87
Defining standardNIST FIPS 204, final standard published 13 August 2024, with RFC 9881 for X.509 useNIST FIPS 204, final standard published 13 August 2024, with RFC 9881 for X.509 use
NIST security category and bit strengthCategory 3, 192 bits of security strength (OpenSSL)Category 5, 256 bits of security strength (OpenSSL)
Public key size1952 bytes2592 bytes
Expanded private key size4032 bytes (RFC 9881 and liboqs secret key size)4896 bytes (RFC 9881 and liboqs secret key size)
Signature size3309 bytes (RFC 9881 and Go crypto/mldsa); OpenSSL describes signatures of about 2.5K to 4.5K across variants4627 bytes (RFC 9881 and Go crypto/mldsa); OpenSSL describes signatures of about 2.5K to 4.5K across variants
Object identifierid-ml-dsa-65, 2.16.840.1.101.3.4.3.18, with the parameters field absent (RFC 9881); sigAlgs 18 in CMS (RFC 9882)id-ml-dsa-87, 2.16.840.1.101.3.4.3.19, with the parameters field absent (RFC 9881); sigAlgs 19 in CMS (RFC 9882)
Library identifiersEVP_PKEY_ML_DSA_65 and the name ML-DSA-65 in OpenSSL; mldsa-native with MLD_CONFIG_PARAMETER_SET set to 65EVP_PKEY_ML_DSA_87 and the name ML-DSA-87 in OpenSSL; mldsa-native with MLD_CONFIG_PARAMETER_SET set to 87
NIST guidance on the categoryNIST's PQC FAQ describes category 3 as probably secure for the foreseeable futureNIST's PQC FAQ describes category 5 as likely excessive

What ML-DSA-65 and ML-DSA-87 are and where practitioners meet them

ML-DSA-65 is a parameter set of ML-DSA, the signature scheme specified in NIST FIPS 204, which NIST published as a final standard on 13 August 2024. FIPS 204 defines three parameter sets: ML-DSA-44, ML-DSA-65 and ML-DSA-87. OpenSSL maps ML-DSA-65 to NIST security category 3 with a 192 bit security strength, and liboqs also lists it at NIST level 3.

  • Sizes: The public key is 1952 bytes, the signature is 3309 bytes, and the expanded private key is 4032 bytes. RFC 9881 recommends the 32 byte seed for storage and transmission in place of the expanded key.
  • Libraries: OpenSSL exposes the set as EVP_PKEY_ML_DSA_65 and fetches it by the name ML-DSA-65. liboqs and the Go crypto/mldsa package (available since Go v1.26.0) also provide it. In the Go package the public key size is MLDSA65PublicKeySize (1952) and the signature size is MLDSA65SignatureSize (3309).
  • mldsa-native: The implementation fixes the set at compile time, with MLD_CONFIG_PARAMETER_SET set to 65.
  • Certificate identifiers: RFC 9882 assigns id-ml-dsa-65 as sigAlgs 18 for ML-DSA in CMS, and RFC 9881 assigns the object identifier 2.16.840.1.101.3.4.3.18 for X.509 use, with the parameters field absent.
  • Category context: NIST's PQC FAQ describes categories 2 and 3 as probably secure for the foreseeable future.

Before you rely on these values, confirm the set name, key encoding and object identifier in the library version and certificate profile you run, since the sources name them per version.

Which differences between ML-DSA-65 and ML-DSA-87 affect systems and decisions

ML-DSA-65 and ML-DSA-87 share one algorithm and differ mainly in security category, key sizes and signature sizes. The cards below list the differences the sources report and what each one means for configuration, storage, bandwidth and procurement.

Security category and strength gap

ML-DSA-65 is mapped to NIST security category 3 with 192-bit strength, and ML-DSA-87 to category 5 with 256-bit strength. OpenSSL and liboqs report these mappings, so a reviewer comparing the two sets should check which category a policy or contract names. Confirm the category against the standard and the library version in use before recording it in a design document.

Strength bits
192 / 256
NIST PQC FAQ

Larger public key and signature

The public key is 1952 bytes for ML-DSA-65 and 2592 bytes for ML-DSA-87. Signatures are 3309 bytes for ML-DSA-65 and 4627 bytes for ML-DSA-87 according to RFC 9881. Certificate chains, TLS handshakes and signed messages carry these bytes, so bandwidth and record-size budgets should be checked against the chosen set before deployment.

Signature bytes
3309 / 4627
RFC 9881

Expanded private key storage

The expanded private key is 4032 bytes for ML-DSA-65 and 4896 bytes for ML-DSA-87, as RFC 9881 and the liboqs page state. Key stores, hardware modules and backup procedures that size records for the smaller key will need changes when moving to the larger one. Confirm the key format your library and HSM accept before selecting a set.

Private key bytes
4032 / 4896
RFC 9881 private key sizes

Seed storage option

RFC 9881 gives a 32-byte private key seed for all three parameter sets and recommends it for storage and transmission. A system that stores only the seed and regenerates the expanded key on load avoids the larger key sizes at rest. Check that the chosen library supports seed-based loading and that the regeneration step fits the key handling policy.

Seed length
32 bytes
RFC 9881 seed guidance

NIST view on higher categories

NIST's PQC FAQ describes categories 4 and 5 as likely excessive for most uses and categories 2 and 3 as probably secure for the foreseeable future. This statement bears directly on a procurement decision that defaults to the largest set. A reviewer should ask whether the threat model and any contract or mandate require category 5, and record that reason in the design file.

NIST PQC FAQ

Where ML-DSA-65 and ML-DSA-87 show up in libraries, certificates and vendor documents

Engineers meet the two sets under different names depending on where they work. In OpenSSL 3.5, the sets are selected through the constants EVP_PKEY_ML_DSA_65 and EVP_PKEY_ML_DSA_87, and signing operations are fetched by the names ML-DSA-65 and ML-DSA-87. Liboqs lists ML-DSA-65 at NIST level 3 and ML-DSA-87 at NIST level 5. The Go crypto/mldsa package, available since Go v1.26.0, defines public key and signature size constants for each set, such as MLDSA65SignatureSize at 3309 bytes and MLDSA87SignatureSize at 4627 bytes. Check the exact constant and fetch names against the library version you deploy, since they are the first thing a code review or integration test will hit.

The mldsa-native implementation takes a different approach: it fixes the parameter set at compile time through MLD_CONFIG_PARAMETER_SET, which is set to 44, 65 or 87. A build therefore supports one set chosen at build time, not a runtime switch. Where a product embeds such a library, confirm which value its build uses before assuming either set is available. For certificates and CMS structures, RFC 9881 assigns object identifiers id-ml-dsa-65 (2.16.840.1.101.3.4.3.18) and id-ml-dsa-87 (2.16.840.1.101.3.4.3.19) for X.509, and RFC 9882 assigns the corresponding sigAlgs values 18 and 19 for CMS. Both RFCs require the parameters field to be absent, so a certificate profile or parser that expects parameters will reject the structure.

The sources cited here do not say which commercial products or appliances ship with either set. A vendor may support one, both, or neither, and the answer can differ by version and edition. Before accepting a vendor statement, ask for the product version, the library it links against, and the parameter set value it is built with, and confirm each in that vendor's own documentation or in a test environment. Treat a vendor's claim of ML-DSA support as a starting point to verify, not a finding that closes the question.

How to work out whether ML-DSA-65 or ML-DSA-87 applies to your system

This sequence moves from the requirements that may name a category, through the keys, certificates and size limits in your environment, to the library settings that select a set. It ends with a documented choice and the reason for it, so a reviewer can trace the decision back to its source.

  1. Check contract and federal customer requirements

    Start by reading any contract, tender or federal customer requirement that names a security category or a specific ML-DSA parameter set. Compliance or contracts staff should lead this step, with the security architect reviewing the wording. The step is complete when you have written down each requirement that names ML-DSA-65, ML-DSA-87, a NIST category or a bit strength, along with the document and clause it comes from. If no requirement names a set, record that fact, since it narrows the decision to your own risk assessment and the technical limits in the steps that follow.

  2. Inventory signing keys and certificates in scope

    List every place ML-DSA signing keys or certificates would be used in the system under review, including code signing, document signing, certificate issuance and token signing. The platform or PKI team should own this list. For each entry, record the owning system, the protocol or format that carries the signature, and any size limit that applies, such as a field length, a message size or a storage column width. The step is done when every in-scope signing use has a row in the inventory with its size constraints noted.

  3. Read vendor and library support for parameter sets

    For each library, HSM, or product in your inventory, read its documentation to find which ML-DSA parameter sets it supports and how it chooses one. Check whether the set is selected at runtime through an algorithm name, or fixed at compile time through a configuration value. The OpenSSL documentation fetches the sets by the names ML-DSA-65 and ML-DSA-87, while mldsa-native fixes the set through a build setting. Record the version and edition you run, because support can differ between releases. The step is complete when each product in the inventory has a note stating which sets it offers and how they are selected.

  4. Test key and signature sizes in your environment

    Build a small test in your own environment that generates an ML-DSA-65 key and an ML-DSA-87 key, signs a sample message with each, and measures the public key, private key and signature sizes. Compare the measured sizes against the limits you recorded in the inventory, including protocol field sizes, certificate size constraints and storage columns. The engineer running the test should keep the output as evidence. The step is done when you have a table showing measured sizes for each set beside each limit, and you know which sets fit every in-scope use.

  5. Document the choice and the reason

    Write a short decision record that names the parameter set chosen for each in-scope use, the requirement or limit that drove the choice, and the library version that supports it. Where more than one set fits, record why the chosen set was preferred, citing the requirement wording or the security category guidance the reader can check. The security lead should sign off, and the record should be stored with the system documentation. The step is complete when each in-scope use has a recorded decision that an auditor or reviewer can trace back to its source.

Common mix-ups between ML-DSA-65 and ML-DSA-87 in vendor claims and tenders

Vendor documents and tender responses often refer to ML-DSA-65 and ML-DSA-87 in ways that blur what the names and numbers mean. The cards below cover the points where readers most often misread a claim, each tied to what the sources state about the two sets.

The suffix is not a version number

The 65 and 87 in the names identify distinct parameter sets within the ML-DSA family defined in FIPS 204, not successive releases of one algorithm. A claim that a product supports ML-DSA-87 does not imply it supports a newer or better version of ML-DSA-65. Check each claim against the exact set name the product lists, since OpenSSL exposes them as separate identifiers, EVP_PKEY_ML_DSA_65 and EVP_PKEY_ML_DSA_87.

OpenSSL ML-DSA docs

The higher set is not a default requirement

A tender or policy asking for the largest parameter set does not automatically mean ML-DSA-87 is mandated, and the sources do not present it as the default choice. NIST's PQC FAQ describes categories 4 and 5 as likely excessive and categories 2 and 3 as probably secure for the foreseeable future. Ask the buyer which category or set the requirement names, and confirm it in writing rather than inferring it from the suffix.

NIST PQC FAQ

Private key size is not the seed size

The expanded private key is 4032 bytes for ML-DSA-65 and 4896 bytes for ML-DSA-87, while the private key seed is 32 bytes for all three sets. RFC 9881 recommends the seed for storage and transmission. A vendor quoting a 32 byte key for ML-DSA-87 may be describing the seed, so confirm which form a claim refers to before comparing storage or transport figures.

RFC 9881 text

Signature sizes differ between sets

The two sets do not share a signature size, so a figure quoted for one cannot be applied to the other. RFC 9881 gives 3309 bytes for ML-DSA-65 and 4627 bytes for ML-DSA-87. Check which set a bandwidth, certificate or message size estimate was calculated for, especially when a vendor states a single signature size for the ML-DSA family.

Category numbers are not bit strength

OpenSSL lists ML-DSA-65 as NIST category 3 and ML-DSA-87 as category 5, with security strengths of 192 and 256 bits. The category number is a position in NIST's mapping, not a bit count, so a claim of category 5 should be read against that mapping. NIST associates categories 1, 3 and 5 with 128, 192 and 256 bits of classical security, while categories 2 and 4 are defined by maximum quantum security.

NIST PQC FAQ

Questions readers ask when choosing between ML-DSA-65 and ML-DSA-87

Are ML-DSA-65 and ML-DSA-87 the same algorithm?

No. They are two of the three parameter sets defined for the same algorithm, ML-DSA, in NIST's FIPS 204, which was published as a final standard on 13 August 2024. The third set is ML-DSA-44. Each set uses the same design but with different internal parameters, so the keys and signatures differ in size. OpenSSL exposes them as separate identifiers, EVP_PKEY_ML_DSA_65 and EVP_PKEY_ML_DSA_87, and mldsa-native fixes one set at compile time through MLD_CONFIG_PARAMETER_SET, set to 65 or 87. A system that signs with one set cannot verify with the other without reconfiguration, so confirm which set each side of an integration uses before deployment.

Which of the two sets is newer?

Neither is newer in the sources. Both were defined together in FIPS 204, so they share the same publication date. The IETF documents that carry them into certificates and CMS, RFC 9881 and RFC 9882, were published in or after October 2025, and both assign identifiers to ML-DSA-65 and ML-DSA-87 together. The sources do not indicate a version ordering between the two sets. Check the release notes of the specific library or vendor product you run, since support for each set may have arrived in different releases. For example, the Go crypto/mldsa package has been available since Go v1.26.0 and defines both sets.

Which set does a rule or customer ask for?

The sources reviewed here do not name a set that any regulation or customer contract requires. The question of which set a national security or federal customer expects belongs to the contract or security requirements that apply to you, and should be confirmed in writing. For context, NIST's PQC FAQ describes security categories 4 and 5 as likely excessive for most purposes and categories 2 and 3 as probably secure for the foreseeable future. ML-DSA-65 is category 3 and ML-DSA-87 is category 5 in OpenSSL and liboqs. Ask the customer or assessor which category they require, then map that to the set.

Do I need both ML-DSA-65 and ML-DSA-87?

Not on the basis of anything in the sources. Each set is a complete option on its own, and the sources do not say a system must support both. Supporting both adds a second key format, a second signature size and a second set of test cases. Many deployments choose one set per use case. If different systems have different category requirements, for example a higher-assurance signing service alongside a general-purpose one, supporting both may be justified. Decide that from your requirements, not from the algorithm.

Which set should I ask a vendor about?

Ask which ML-DSA set the product signs with by default, and whether it can be changed. Then ask for the exact version that implements it. Ask for the public key size, the private key format and the signature size the product produces, so you can check them against the figures in RFC 9881 and the OpenSSL documentation. Ask whether the product supports the same set on the verification side. If the vendor documentation is silent on the set, that is a finding in itself, and you should ask for it in writing.

How much larger are the ML-DSA-87 keys and signatures?

From the sources, ML-DSA-65 has a 1952-byte public key, a 4032-byte expanded private key and a 3309-byte signature. ML-DSA-87 has a 2592-byte public key, a 4896-byte expanded private key and a 4627-byte signature. These figures come from RFC 9881, Table 2 and the Go crypto/mldsa package, and match OpenSSL and liboqs. Expect larger certificates, larger messages and more bandwidth or storage when you choose ML-DSA-87. The size difference matters most where signatures are embedded in protocols with tight size limits, so measure your own message and handshake sizes before committing.

Do the sources say either set is safer?

No. The sources do not rank ML-DSA-65 and ML-DSA-87 by safety. They describe them by NIST security category: category 3 for ML-DSA-65 and category 5 for ML-DSA-87, which OpenSSL associates with 192 and 256 bits of strength respectively. A higher category is a higher assurance level, but whether that level is needed depends on your requirements and on what the relevant standard or customer demands. Treat the category as a requirements input, not as a verdict on which set is better. Confirm your category requirement with the owner of the standard or contract.

How DeployOpen works on this

DeployOpen helps teams decide between ML-DSA-65 and ML-DSA-87 by first mapping where signatures are produced and checked in their environment, then configuring the libraries and certificate workflows that use the chosen set. The work runs inside the client's own infrastructure, and each step is documented so the client's security and compliance teams can review it.

How we scope

  • We confirm which systems sign or verify with ML-DSA and which parameter set each one currently targets.
  • Scope is agreed in writing before work starts, including which libraries, certificate profiles and signing paths are covered.
  • Engagements are fixed-scope, and ongoing support is available as a retainer once the initial configuration is in place.

How we build

  • We set the parameter set in each library, such as the OpenSSL EVP names ML-DSA-65 or ML-DSA-87, according to the agreed design.
  • We check that key sizes, signature sizes and certificate encodings match the values in the cited specifications for the versions in use.
  • We test signing and verification end to end, including interoperability between the components that will exchange signatures.

How we hand over

  • We document the chosen parameter set, the reasons recorded in the scope, and the exact library versions tested.
  • We provide configuration files and build settings with the parameter set named explicitly, so reviewers can trace each setting.
  • We confirm with the client which compatibility points still need checking against the specific versions they run in production.

How we support

  • We can retest signing paths after library upgrades, since version changes can affect sizes and supported parameter names.
  • We can review future changes to the parameter set if the client's requirements or the published standards change.
  • Continuous testing and upgrade support are available as retainers, scoped in writing with the client.

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.