Signature family

CRYSTALS-Dilithium (Round 3)

The Round 3 submission of Dilithium, predecessor of the ML-DSA standard

unverified 12 variants NIST PQC Round 3 selection, superseded by ML-DSA (FIPS 204)

Overview

CRYSTALS-Dilithium is the lattice-based signature scheme NIST selected in 2022 and later standardised, with changes, as ML-DSA in FIPS 204. This family preserves the third-round specification, including its AES-based and randomised variants.

Dilithium uses the Fiat-Shamir with aborts technique over module lattices: a commitment to a masked vector is hashed with the message into a sparse challenge, and the response is released only if it falls within bounds that make it statistically independent of the secret key. Public keys are compressed by publishing only the high bits of the key vector, with hints in the signature letting the verifier compensate.

ML-DSA is not byte-compatible with Round 3 Dilithium. FIPS 204 lengthened the public-key hash tr to 64 bytes, changed how the message representative and signing randomness are derived, added domain separation with context strings, and tightened hint encoding checks. Round 3 signatures do not verify under ML-DSA. Within each security level, the AES and SHAKE variants have identical key and signature sizes.

Twelve variants are present: Dilithium2, Dilithium3 and Dilithium5 (security categories 2, 3 and 5), each in deterministic and randomised (-r) signing modes, and each with an AES variant that expands the matrix and secrets with AES-256 in counter mode rather than SHAKE. The AES variants were not carried forward into ML-DSA. Signature and key sizes match those of the corresponding ML-DSA parameter sets, so size alone does not distinguish them.

History

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

    NIST Post-Quantum Cryptography standardisation
  2. CRYSTALS-Dilithium published

  3. 69 complete round-1 submissions published

    NIST Post-Quantum Cryptography standardisation
  4. 26 candidates advance to round 2

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

    NIST Post-Quantum Cryptography standardisation
  6. Kyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens

    NIST Post-Quantum Cryptography standardisation
  7. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published

    NIST Post-Quantum Cryptography standardisation
  8. HQC selected as a second KEM

    NIST Post-Quantum Cryptography standardisation

How it works

  1. A public matrix is expanded from a seed with SHAKE-128, or AES-256-CTR in the AES variants.
  2. Signing commits to a masked vector, hashes it with the message into a challenge, and computes a response.
  3. Responses that exceed norm bounds are rejected and the loop restarts.
  4. Randomised (-r) variants draw fresh randomness for the mask; the default variants derive it deterministically.

Security notes

Superseded by ML-DSA; new systems should implement FIPS 204. Round 3 Dilithium remains cryptographically sound but is not interoperable with ML-DSA, and the deterministic mode is more exposed to fault attacks than hedged signing.

Typical uses

Verifying signatures from deployments that predate FIPS 204Reproducing Round 3 known-answer testsComparing AES-based and SHAKE-based expansion

Variants in NextSSL

12
AlgorithmTierSizes (bytes)StandardsAPI
Dilithium2-AES-R-R3
dilithium2-aes-r-r3
unverified pk 1312 · sk 2544 · sig 1–2420 · seed 0 · ctx 0 — root
Dilithium2-AES-R3
dilithium2-aes-r3
unverified pk 1312 · sk 2544 · sig 1–2420 · seed 0 · ctx 0 — root
Dilithium2-R-R3
dilithium2-r-r3
unverified pk 1312 · sk 2544 · sig 1–2420 · seed 0 · ctx 0 — root
Dilithium2-R3
dilithium2-r3
unverified pk 1312 · sk 2544 · sig 1–2420 · seed 0 · ctx 0 — root
Dilithium3-AES-R-R3
dilithium3-aes-r-r3
unverified pk 1952 · sk 4016 · sig 1–3293 · seed 0 · ctx 0 — root
Dilithium3-AES-R3
dilithium3-aes-r3
unverified pk 1952 · sk 4016 · sig 1–3293 · seed 0 · ctx 0 — root
Dilithium3-R-R3
dilithium3-r-r3
unverified pk 1952 · sk 4016 · sig 1–3293 · seed 0 · ctx 0 — root
Dilithium3-R3
dilithium3-r3
unverified pk 1952 · sk 4016 · sig 1–3293 · seed 0 · ctx 0 — root
Dilithium5-AES-R-R3
dilithium5-aes-r-r3
unverified pk 2592 · sk 4880 · sig 1–4595 · seed 0 · ctx 0 — root
Dilithium5-AES-R3
dilithium5-aes-r3
unverified pk 2592 · sk 4880 · sig 1–4595 · seed 0 · ctx 0 — root
Dilithium5-R-R3
dilithium5-r-r3
unverified pk 2592 · sk 4880 · sig 1–4595 · seed 0 · ctx 0 — root
Dilithium5-R3
dilithium5-r3
unverified pk 2592 · sk 4880 · sig 1–4595 · seed 0 · ctx 0 — root

Frequently asked questions

Which CRYSTALS-Dilithium (Round 3) variants does NextSSL include?

NextSSL registers 12 CRYSTALS-Dilithium (Round 3) variants: dilithium2-aes-r-r3, dilithium2-aes-r3, dilithium2-r-r3, dilithium2-r3, dilithium3-aes-r-r3, dilithium3-aes-r3, dilithium3-r-r3, dilithium3-r3, dilithium5-aes-r-r3, dilithium5-aes-r3 and more.