Dilithium5
Round 3 Dilithium set at NIST level 5 with 2592-byte public keys and SHAKE expansion
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Dilithium5
Dilithium5 is a digital signature scheme from the Dilithium5 (round 3) family. It uses a 2,592-byte public key, a 4,880-byte secret key and a 1–4,595-byte signature. It is designed to resist attacks by large quantum computers. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Dilithium5 (round 3) is a module-lattice signature from the round 3 CRYSTALS-Dilithium parameter sets, aimed at NIST security level 5. Its record shows 2592-byte public keys and signatures of up to 4595 bytes.
Dilithium5 (round 3) is the round 3 CRYSTALS-Dilithium parameter set for NIST security level 5. Dilithium signs by committing to a masked lattice vector, deriving a challenge from the commitment and the message, and rejecting responses that could leak the secret. This entry uses SHAKE for the expansion of its public matrix and masks, and SHAKE handles every expansion step, as in the default design.
NextSSL's record gives a 2592-byte public key, a 4880-byte private key and signatures of up to 4595 bytes for dilithium5. The public key sizes across the three round 3 levels are level 2 1312 bytes, level 3 1952 bytes, level 5 2592 bytes, so each step up trades bigger keys and signatures for a larger security margin.
Dilithium was the basis of ML-DSA in FIPS 204. Use the standardised ML-DSA parameter sets for new systems, because the round 3 values here differ slightly in key size from the final standard. Because all six Dilithium records in this file share the same lattice structure, comparing levels 2, 3 and 5 shows how the security margin, key sizes and signature sizes move together. The NextSSL record is unverified and is kept for research and comparison.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationDilithium5 published
69 complete round-1 submissions published
NIST Post-Quantum Cryptography standardisation26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationKyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens
NIST Post-Quantum Cryptography standardisationFIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published
NIST Post-Quantum Cryptography standardisationHQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- KeyGen samples a public matrix from a seed and short secret vectors, and publishes a rounded product as the public key.
- Sign commits to a masked vector, hashes the commitment with the message into a challenge, and returns a response that passes a rejection test.
- Verify rebuilds the commitment from the response and public key, applies the rounding hints and checks the challenge hash.
Security notes
The lattice assumptions match ML-DSA at this level, but this round 3 parameter set differs slightly from FIPS 204 and the NextSSL record is unverified.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 2,592 | Public key |
| sk | 4,880 | Secret key |
| sig | 1 – 4,595 | Signature |
| seed | 0 | Seed |
| ctx | 0 | Context string |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, sk = root.call("sign_keygen", "dilithium5", None, outs=2)
sig = root.call("sign_detached", "dilithium5", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "dilithium5", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("dilithium5", NULL, pk, sk);
nextssl_root_sign_detached("dilithium5", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("dilithium5", NULL, pk, msg, ctx, sig);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_sign_in(reg::all(), Policy::Any, "dilithium5", &Params::new())?;
let (pk, sk) = alg.keygen(&mut *rng)?;
let sig = alg.sign(&sk, b"message")?;
let ok = alg.verify(&pk, b"message", &sig)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is Dilithium5?
Dilithium5 is a signature in the Dilithium5 (round 3) family. Dilithium5 (round 3) is a module-lattice signature from the round 3 CRYSTALS-Dilithium parameter sets, aimed at NIST security level 5.
What are the Dilithium5 sizes?
In NextSSL, Dilithium5 uses: public key 2,592 bytes, signature 1 to 4,595 bytes.
Is Dilithium5 post-quantum?
Yes. Dilithium5 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Dilithium5 and when?
Dilithium5 belongs to the Dilithium5 (round 3) family, first published in 2017 by Leo Ducas, Eike Kiltz, Tancrede Lepoint, Vadim Lyubashevsky, Peter Schwabe, Gregor Seiler, Damien Stehle. Its origin: NIST PQC standardisation, round 3 parameter set.
Is Dilithium5 safe to use?
Dilithium5 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
Round 2 Dilithium submission offering SHAKE-based and AES-based expansion of the public matrix
CRYSTALS-Dilithium (Round 3)The Round 3 submission of Dilithium, predecessor of the ML-DSA standard
Falcon (round 2)Round 2 Falcon submission with the same NTRU-lattice design and three dimensions, 512 to 1024
ML-DSANIST's primary post-quantum signature scheme, standardised in FIPS 204
SLH-DSAStateless hash-based signatures standardised in FIPS 205, relying only on hash functions