Dilithium1-R2
Round 2 Dilithium submission offering SHAKE-based and AES-based expansion of the public matrix
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 Dilithium1-R2
Dilithium1-R2 is one of 6 CRYSTALS-Dilithium (round 2) variants in the NextSSL registry, a digital signature scheme. It uses a 1,472-byte public key, a 3,504-byte secret key and a 1–2,701-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
The round 2 CRYSTALS-Dilithium submission refines the lattice signature from round 1 and adds AES-based variants next to the SHAKE-based default. It is the direct predecessor of the round 3 parameter sets and ML-DSA.
The round 2 CRYSTALS-Dilithium submission keeps the module-lattice structure and the Fiat-Shamir with aborts signing method of round 1 while refining the parameter choices. It offers two ways to expand the public matrix and masking values: a SHAKE-based default, and an AES-based variant that uses AES in counter mode for the same job.
NextSSL's record lists dilithium1-r2, dilithium1-aes-r2, dilithium2-r2 and dilithium2-aes-r2 directly, with dilithium3-r2 and dilithium3-aes-r2 among the other variants. The four expanded records all show 1472-byte public keys, 3504-byte private keys and signatures of up to 2701 bytes. The record does not show a size difference between the SHAKE and AES forms, so any difference is in speed and implementation footprint.
The round 2 specification was later replaced by the round 3 Dilithium parameter sets and then by FIPS 204 ML-DSA. The round 2 forms are not for new deployments, but they remain useful for checking older test vectors and for seeing how the parameter choices developed. Comparing these records with the round 3 Dilithium sets shows how the parameter choices developed across the rounds.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationCRYSTALS-Dilithium 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 expands a public matrix from a seed, samples short secret vectors and publishes a rounded product of the two.
- Sign masks a random vector, hashes a rounded commitment with the message into a sparse challenge, and returns a response that is checked for leakage.
- Verify reconstructs the commitment from the response, applies the hint bits and checks the challenge hash.
Security notes
The security argument is the same lattice reduction as the other Dilithium rounds, and the record is unverified. Round 2 parameters were later revised, so treat these sets as historical and do not deploy them.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,472 | Public key |
| sk | 3,504 | Secret key |
| sig | 1 – 2,701 | 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", "dilithium1-r2", None, outs=2)
sig = root.call("sign_detached", "dilithium1-r2", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "dilithium1-r2", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("dilithium1-r2", NULL, pk, sk);
nextssl_root_sign_detached("dilithium1-r2", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("dilithium1-r2", 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, "dilithium1-r2", &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.
Other CRYSTALS-Dilithium (round 2) variants
5Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is Dilithium1-R2?
Dilithium1-R2 is a signature in the CRYSTALS-Dilithium (round 2) family. The round 2 CRYSTALS-Dilithium submission refines the lattice signature from round 1 and adds AES-based variants next to the SHAKE-based default.
What are the Dilithium1-R2 sizes?
In NextSSL, Dilithium1-R2 uses: public key 1,472 bytes, signature 1 to 2,701 bytes.
Is Dilithium1-R2 post-quantum?
Yes. Dilithium1-R2 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Dilithium1-R2 and when?
Dilithium1-R2 belongs to the CRYSTALS-Dilithium (round 2) family, first published in 2017. Its origin: NIST PQC standardisation, round 2 submission.
Is Dilithium1-R2 safe to use?
Dilithium1-R2 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).
What other CRYSTALS-Dilithium (round 2) variants are there?
NextSSL also registers dilithium1-aes-r2, dilithium2-aes-r2, dilithium2-r2, dilithium3-aes-r2, dilithium3-r2 in the CRYSTALS-Dilithium (round 2) family.
Related families
Round 1 module-lattice signature with four named parameter sets, later refined into ML-DSA
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