Digital signatures

ML-DSA-87

NIST's primary post-quantum signature scheme, standardised in FIPS 204

safe Safe API Specified in a FIPS standard Post-quantum

About ML-DSA-87

ML-DSA-87 is one of 3 ML-DSA variants in the NextSSL registry, a digital signature scheme. It uses a 2,592-byte public key, a 32-byte secret key, a 4,627-byte signature, a 32-byte seed and a 0–255-byte context string. It takes the parameter deterministic (default 0). Its registry entry cites FIPS 204. It is also known as mldsa87. It is designed to resist attacks by large quantum computers. NextSSL lists it in the safe tier and exposes it through the safe API.

Overview

ML-DSA is the Module-Lattice-Based Digital Signature Algorithm standardised by NIST in FIPS 204. It is the general-purpose default for post-quantum signatures, with fast signing and verification and signatures of a few kilobytes.

ML-DSA is derived from CRYSTALS-Dilithium, selected by NIST at the end of the third round of its post-quantum process. It follows the Fiat-Shamir with aborts paradigm: the signer commits to a masked random vector, derives a challenge by hashing the commitment with the message, and responds with a combination of the secret and the mask. If the response would leak information about the secret, it is discarded and the process restarts.

Security rests on Module-LWE, which protects the secret key, and Module-SIS, which prevents forgeries. All sampling is uniform or from small bounded ranges, so unlike Falcon the scheme needs no Gaussian sampling or floating-point arithmetic, which makes constant-time implementation comparatively straightforward. FIPS 204 supports hedged signing (fresh randomness mixed with a secret seed) by default, a deterministic option, context strings, and a pre-hash mode (HashML-DSA).

Three parameter sets are defined: ML-DSA-44 (category 2), ML-DSA-65 (category 3) and ML-DSA-87 (category 5). Public keys are 1312 to 2592 bytes and signatures 2420 to 4627 bytes. Private keys are 2560 to 4896 bytes. ML-DSA-65 is the most commonly recommended parameter set, and composite and hybrid certificates combining ML-DSA with ECDSA or EdDSA are being standardised at the IETF.

History

2016–2025
  1. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  2. CRYSTALS-Dilithium submitted to NIST PQC

  3. 26 candidates advance to round 2

    NIST Post-Quantum Cryptography standardisation
  4. Round 3 finalists and alternates announced

    NIST Post-Quantum Cryptography standardisation
  5. Dilithium selected by NIST

  6. Draft FIPS 204 released

  7. ML-DSA published as FIPS 204

  8. HQC selected as a second KEM

    NIST Post-Quantum Cryptography standardisation

How it works

  1. KeyGen expands a public matrix A from a seed and samples short secrets s1, s2; the public key is the high bits of t = A*s1 + s2.
  2. Sign samples a masking vector y, commits to the high bits of A*y and hashes them with the message to get a sparse challenge c.
  3. The response z = y + c*s1 is checked against norm bounds and rejected and resampled if it could leak the secret.
  4. Verify recomputes the commitment from z, c and the public key, using hints, and checks the challenge hash.

Security notes

ML-DSA is considered sound and is NIST's recommended general-purpose post-quantum signature. Implementations should protect against side channels and fault attacks on the rejection loop and secret-dependent operations; hedged signing reduces exposure to fault attacks compared with purely deterministic signing.

Typical uses

Post-quantum certificates and PKICode, firmware and software update signingAuthentication in TLS, SSH and hybrid signature schemes

Sizes

FieldBytesMeaning
pk2,592Public key
sk32Secret key
sig4,627Signature
seed32Seed
ctx0 – 255Context string

Parameters

NameTypeRangeDefaultRequired
deterministic u32 0 – 1 0 no

Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
pk, sk = ns.call("sign_keygen", "ml-dsa-87", None, outs=2)
sig = ns.call("sign_detached", "ml-dsa-87", None, sk, b"message", b"")[0]
ok  = ns.check("verify_detached", "ml-dsa-87", None, pk, b"message", b"", sig)

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other ML-DSA variants

2

Frequently asked questions

What is ML-DSA-87?

ML-DSA-87 is a signature in the ML-DSA family. ML-DSA is the Module-Lattice-Based Digital Signature Algorithm standardised by NIST in FIPS 204. It is also known as mldsa87.

What are the ML-DSA-87 sizes?

In NextSSL, ML-DSA-87 uses: public key 2,592 bytes, signature 4,627 bytes.

Is ML-DSA-87 post-quantum?

Yes. ML-DSA-87 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is safe.

Who designed ML-DSA-87 and when?

ML-DSA-87 belongs to the ML-DSA family, first published in 2024 by Léo Ducas, Eike Kiltz, Tancrède Lepoint, Vadim Lyubashevsky, Peter Schwabe, Gregor Seiler, Damien Stehlé (CRYSTALS-Dilithium team). Its origin: NIST PQC standard (FIPS 204).

Which standards define ML-DSA-87?

ML-DSA-87 is referenced by FIPS 204. It is specified in a FIPS standard.

Is ML-DSA-87 safe to use?

ML-DSA-87 is in the safe tier. Modern and recommended. The default choice for new designs. It can be called from the safe API.

What other ML-DSA variants are there?

NextSSL also registers ml-dsa-44, ml-dsa-65 in the ML-DSA family.