# ML-DSA explained: ML-DSA-44, 65 and 87 sizes, security levels and where it works today

> ML-DSA (FIPS 204) signatures are 2,420 to 4,627 bytes. Parameter sets, pure vs HashML-DSA, library and KMS support, and why web certificates come last.

Source: https://pqshift.dev/learn/ml-dsa-explained · Published 2026-12-04 · Updated 2026-12-04 · pqshift

ML-DSA is NIST's main post-quantum signature algorithm, standardized as FIPS 204 in August 2024 and previously known as CRYSTALS-Dilithium. It comes in three sizes. ML-DSA-44 (NIST category 2), ML-DSA-65 (category 3) and ML-DSA-87 (category 5) have signatures of 2,420, 3,309 and 4,627 bytes, against 64 bytes for Ed25519. You can use it today in OpenSSL 3.5, Go 1.27, Java 24+, .NET 10, pyca/cryptography 48, AWS and Google Cloud KMS, Android 17 and Apple's iOS 26 CryptoKit. You can't yet get a publicly trusted ML-DSA certificate for a website.

## Sizes, next to what you use now

From FIPS 204, in bytes:

| Algorithm | Security | Public key | Private key | Signature |
|---|---|---|---|---|
| ML-DSA-44 | NIST category 2 | 1,312 | 2,560 | 2,420 |
| ML-DSA-65 | NIST category 3 | 1,952 | 4,032 | 3,309 |
| ML-DSA-87 | NIST category 5 | 2,592 | 4,896 | 4,627 |
| Ed25519 | classical, ~128-bit | 32 | 32 | 64 |
| RSA-2048 | classical, ~112-bit | ~256 | — | 256 |

The size is the real cost. A TLS handshake carries a signature and a public key for every certificate in the chain, plus the CertificateVerify signature, so a chain of ML-DSA-44 certificates adds kilobytes compared with ECDSA. That's the main reason browsers are pursuing Merkle Tree Certificates instead of dropping ML-DSA into today's X.509 chains (more below).

Speed isn't the problem. In Cloudflare's 2026 comparison, with ML-DSA-44 set to 1, Ed25519 signs about 7 times faster but verifies slightly slower (1.3), and RSA-2048 signs 80 times slower. AWS reports ML-DSA-44 on Graviton4 "comes close to ECDSA".

## Which parameter set to pick

- **ML-DSA-65** is the common default: Java's `KeyPairGenerator` uses it when you don't specify, and it's the smallest set Android 17's Keystore and Apple CryptoKit offer.
- **ML-DSA-87** is required if you sell to US national security systems: CNSA 2.0 says "Use Category 5 parameter, ML-DSA-87, for all classification levels."
- **ML-DSA-44** is the smallest and fastest, and the one used by OpenSSH's hybrid signature (below). It isn't available on Android 17 Keystore or Apple CryptoKit.

## Pure ML-DSA, HashML-DSA and "external mu"

FIPS 204 defines two modes. **Pure ML-DSA** signs the message itself, and FIPS 204 says it "is preferred". **HashML-DSA** signs a hash of the message with domain separation, and its signatures are not interchangeable with pure ones. A third pattern catches people out: **external μ** computes the 64-byte message representative outside the signer, so an HSM or KMS never sees a large message. It produces ordinary pure ML-DSA signatures. AWS KMS requires external μ for messages over 4 KB and documents it as different from HashML-DSA.

If a verifier rejects signatures that a library produced, check the mode first.

## Where it works today

| Platform | ML-DSA support | Notes |
|---|---|---|
| OpenSSL | 3.5+ (April 2025) | All three sets; LTS until April 2030 |
| BoringSSL / AWS-LC | Yes | BoringSSL added ML-DSA in TLS (libssl) in April 2026 |
| Go | 1.27 (August 2026) | `crypto/mldsa`; `crypto/x509` and `crypto/tls` support ML-DSA keys and schemes. Not in 1.26 |
| Java | JDK 24+ (JEP 497) | `KeyPairGenerator`/`Signature`, default ML-DSA-65; not used by JSSE for TLS |
| .NET | 10 | `MLDsa` class; needs OpenSSL 3.5+ on Linux or current Windows 11 |
| Python | pyca/cryptography 48.0+ | 47.0 worked only on AWS-LC/BoringSSL builds |
| Rust | RustCrypto `ml-dsa` | Unaudited, per its own docs |
| Bouncy Castle | Java 1.79+, C# 2.6.1 | Including ML-DSA in CMS SignedData |
| AWS KMS | ML_DSA_44/65/87 key specs | External μ for messages over 4 KB |
| Google Cloud KMS | GA July 2026 | All three sets, pure and external μ |
| Azure Key Vault | No | RSA, EC and oct only; Windows Server 2025 AD CS can issue ML-DSA certificates |
| Android 17 | Keystore | ML-DSA-65 and -87 only |
| Apple | CryptoKit, iOS/macOS 26 | MLDSA65 and MLDSA87, including Secure Enclave keys |
| OpenSSH | 10.6 enables `ssh-mldsa44-ed25519` | Hybrid ML-DSA-44 + Ed25519; keys from the 10.4 experiment must be regenerated |

The OpenSSH entry answers a common question. You can now generate a post-quantum SSH key (`ssh-keygen -t mldsa44-ed25519` on 10.6+), but it protects authentication, not confidentiality. What stops harvest-now-decrypt-later on SSH is the key exchange, `mlkem768x25519-sha256`, which OpenSSH has used by default since 10.0. See [post-quantum SSH](https://pqshift.dev/learn/post-quantum-ssh-openssh).

## Standards for using it

- **X.509 certificates:** RFC 9881 (October 2025) defines the ML-DSA algorithm identifiers.
- **TLS 1.3:** signature schemes `mldsa44` (0x0904), `mldsa65` (0x0905) and `mldsa87` (0x0906) come from draft-ietf-tls-mldsa, which is in the RFC Editor queue but not yet published.
- **Composite (hybrid) certificates:** draft-ietf-lamps-pq-composite-sigs pairs ML-DSA with a classical algorithm. It's approved by the IESG and waiting for publication.
- **JOSE and COSE:** RFC 9964 (May 2026) registers `ML-DSA-44`, `ML-DSA-65` and `ML-DSA-87` for JWS, and COSE algorithm values -48, -49 and -50. That's the basis for post-quantum JWTs and WebAuthn-style credentials, though no shipping passkey uses it yet that we could find.

## Can I get an ML-DSA certificate for my website?

Not a publicly trusted one, as of December 2026. Chrome said in February 2026 that it "has no immediate plan" to accept post-quantum X.509 certificates in its root store. It plans to support Merkle Tree Certificates, with a quantum-resistant root store for them targeted for Q3 2027. Let's Encrypt has also chosen MTCs, with production planned for 2027, and Cloudflare says it will issue post-quantum MTCs from Q1 2027. CA/Browser Forum proposals to allow ML-DSA in TLS certificates haven't passed. S/MIME is ahead: ML-DSA has been allowed there since August 2025.

Private PKI is different. If you control both ends (service mesh, internal APIs, device fleets), OpenSSL 3.5 and Go 1.27 can already use ML-DSA certificates.

## What to do about signatures now

Signatures are less urgent than key exchange. A recorded handshake protected by classical key exchange can be decrypted years later, but a signature only has to hold at the moment it's checked. The exceptions are signatures that must stay valid for a long time: firmware and secure-boot keys, code signing, and long-lived roots of trust. That's why the NSA's December 2026 statement singles out "quantum-resistant firmware signatures and hardware roots of trust", and why CNSA 2.0 wants software and firmware signing exclusively post-quantum (ML-DSA-87, or LMS/XMSS) by 2030.

A sensible order: switch TLS and SSH key exchange to hybrid ML-KEM now ([checklist](https://pqshift.dev/learn/post-quantum-checklist-after-nsa-advisory)), then inventory your long-lived signing keys and plan their move to ML-DSA or LMS. Web certificates come last, through MTCs, once browsers ship them.

pqshift handles the first step for GitHub repositories: it opens pull requests that add hybrid ML-KEM key exchange and proves each one in CI. It also flags RSA and ECDSA signing code in its scan, so the signing inventory starts from real call sites.

## FAQ

### What is ML-DSA?

ML-DSA (Module-Lattice-Based Digital Signature Algorithm) is NIST's primary post-quantum signature standard, FIPS 204 (August 2024), formerly CRYSTALS-Dilithium.

### How big are ML-DSA signatures?

ML-DSA-44: 2,420 bytes with a 1,312-byte public key. ML-DSA-65: 3,309 and 1,952. ML-DSA-87: 4,627 and 2,592. Ed25519 signatures are 64 bytes.

### Which ML-DSA parameter set should I use?

ML-DSA-65 is the common default; ML-DSA-87 is required for US national security systems under CNSA 2.0; ML-DSA-44 is smallest and is used by OpenSSH's hybrid mldsa44-ed25519 key type.

### Can I get a publicly trusted ML-DSA TLS certificate?

Not as of December 2026. Chrome and Let's Encrypt are pursuing Merkle Tree Certificates for 2027 instead of ML-DSA in today's X.509 chains. Private PKI can use ML-DSA certificates now.

### Is ML-DSA the same as Dilithium?

ML-DSA is the standardized version of CRYSTALS-Dilithium. They are not wire-compatible: FIPS 204 changed details, so use ML-DSA implementations.

## Sources

- [NIST FIPS 204: Module-Lattice-Based Digital Signature Standard](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf)
- [Cloudflare: ML-DSA will have to do (July 2026)](https://blog.cloudflare.com/ml-dsa-will-have-to-do/)
- [RFC 9881: X.509 algorithm identifiers for ML-DSA](https://datatracker.ietf.org/doc/rfc9881/)
- [draft-ietf-tls-mldsa: ML-DSA in TLS 1.3](https://datatracker.ietf.org/doc/draft-ietf-tls-mldsa/06/)
- [RFC 9964: ML-DSA for JOSE and COSE](https://www.rfc-editor.org/rfc/rfc9964.html)
- [Google: Cultivating a robust and efficient quantum-safe HTTPS (Feb 2026)](https://blog.google/security/cultivating-a-robust-and-efficient-quantum-safe-https/)
- [Let's Encrypt: post-quantum certificates (June 2026)](https://letsencrypt.org/2026/06/03/pq-certs)
- [Go 1.27 release notes (crypto/mldsa)](https://go.dev/doc/go1.27)
- [JEP 497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm](https://openjdk.org/jeps/497)
- [Microsoft: post-quantum cryptography in .NET](https://devblogs.microsoft.com/dotnet/post-quantum-cryptography-in-dotnet/)
- [pyca/cryptography changelog](https://raw.githubusercontent.com/pyca/cryptography/main/CHANGELOG.rst)
- [AWS KMS: ML-DSA keys](https://docs.aws.amazon.com/kms/latest/developerguide/mldsa.html)
- [Google Cloud: quantum-safe digital signatures in Cloud KMS (July 2026)](https://cloud.google.com/blog/products/identity-security/future-proofing-data-integrity-quantum-safe-digital-signatures-in-cloud-kms)
- [Google: post-quantum cryptography in Android](https://blog.google/security/security-for-the-quantum-era-implementing-post-quantum-cryptography-in-android/)
- [OpenSSH 10.6 release notes](https://www.openssh.org/txt/release-10.6)
- [NSA CNSA 2.0 FAQ](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF)
