← Cryptography guide

K065 / Advanced and next-generation cryptography

ML-DSA Dilithium

ML-DSA CRYSTALS-Dilithium FIPS 204 · Survey date 2026-12-05

Not confirmed in the survey

CRYPTOGRAPHY LAB / K065

Cryptography Lab · ML-DSA Dilithium

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Limited implementation

ML-DSA FIPS 204 NTT and inverse (256 coefficients; no signatures)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
Not confirmed in the survey
Classification and reversibility
Signature scheme using signing/verification, not decryption. Source document ↗
Key or secret requirements
Requires public/private keys with parameter-specific lengths. Source document ↗
Operating principle and structure
Lattice signature using Fiat-Shamir with aborts and modules over NTT-friendly rings. Source document ↗
Key size, block size and parameters
ML-DSA-44/65/87 have different private/public key and signature sizes. Source document ↗
Security strength and recommendation
ML-DSA-44/65/87 correspond to NIST categories 2/3/5. Source document ↗
Known attacks and vulnerabilities
Theoretical weaknesses have been claimed; NIST stated continued confidence in standard security. Source document ↗
Standards and certification
NIST FIPS 204 standard; IETF RFC 9881 defines X.509 usage. Source document ↗
Typical uses
X.509 certificates/CRLs and message signatures. Source document ↗
Implementations, libraries and tools
Rust ml-dsa/dilithium-rs implementations. Source document ↗
Decryption or decoding
Verify with public key, message and signature; no decryption. Source document ↗
Advantages
Expected to become a main NIST-approved signature scheme, with relatively small signatures/keys. Source document ↗
Limitations and cautions
Not confirmed in the survey
Distinguishing encryption, encoding and hashing
Not confirmed in the survey

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Generate pair and sign message with secret key; verify using public key. This checks integrity and signer authenticity, not decryption.

Procedure

Generate ML-DSA pair; sign message or prehash with secret key; Verify using public key/message/signature. Encryption is keyed confidentiality, encoding is keyless reversible representation, ML-DSA is signing/verification.

Scenario

Use for X.509/CRLs, documents, firmware and software updates; migrate TLS/PKI and signature validation paths together against quantum threats.

Pitfalls and alternatives

Do not attempt decryption or confuse with encoding/hash. Avoid unaudited/custom implementations, secret-key exposure, parameter/context mismatch and invalid key/signature encoding. Use FIPS 204-vetted libraries and test vectors.

References