Dilithium2aes
Round 3 Dilithium set at NIST level 2 with 1312-byte public keys and AES 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 Dilithium2aes
Dilithium2aes is a digital signature scheme from the Dilithium2-AES (round 3) family. It uses a 1,312-byte public key, a 2,544-byte secret key and a 1–2,420-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
Dilithium2-AES (round 3) is a module-lattice signature from the round 3 CRYSTALS-Dilithium parameter sets, aimed at NIST security level 2. Its record shows 1312-byte public keys and signatures of up to 2420 bytes.
Dilithium2-AES (round 3) is the round 3 CRYSTALS-Dilithium parameter set for NIST security level 2. 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 AES for the expansion of its public matrix and masks, and AES in counter mode replaces SHAKE in those steps, which can help where AES hardware is available.
NextSSL's record gives a 1312-byte public key, a 2544-byte private key and signatures of up to 2420 bytes for dilithium2aes. 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 standardisationDilithium2-AES 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 | 1,312 | Public key |
| sk | 2,544 | Secret key |
| sig | 1 – 2,420 | 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", "dilithium2aes", None, outs=2)
sig = root.call("sign_detached", "dilithium2aes", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "dilithium2aes", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("dilithium2aes", NULL, pk, sk);
nextssl_root_sign_detached("dilithium2aes", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("dilithium2aes", 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, "dilithium2aes", &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 Dilithium2aes?
Dilithium2aes is a signature in the Dilithium2-AES (round 3) family. Dilithium2-AES (round 3) is a module-lattice signature from the round 3 CRYSTALS-Dilithium parameter sets, aimed at NIST security level 2.
What are the Dilithium2aes sizes?
In NextSSL, Dilithium2aes uses: public key 1,312 bytes, signature 1 to 2,420 bytes.
Is Dilithium2aes post-quantum?
Yes. Dilithium2aes is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Dilithium2aes and when?
Dilithium2aes belongs to the Dilithium2-AES (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 Dilithium2aes safe to use?
Dilithium2aes 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