Digital signatures

Dilithium3-AES-R2

Round 2 Dilithium submission offering SHAKE-based and AES-based expansion of the public matrix

unverified Root API only Post-quantum
Unverified tier.

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 Dilithium3-AES-R2

Dilithium3-AES-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–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. KeyGen expands a public matrix from a seed, samples short secret vectors and publishes a rounded product of the two.
  2. 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.
  3. 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

Testing against round 2 known-answer vectorsComparing SHAKE and AES expansion choices in a lattice signature

Sizes

FieldBytesMeaning
pk1,472Public key
sk3,504Secret key
sig1 – 2,701Signature
seed0Seed
ctx0Context 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", "dilithium3-aes-r2", None, outs=2)
sig = root.call("sign_detached", "dilithium3-aes-r2", None, sk, b"message", b"")[0]
ok  = root.check("verify_detached", "dilithium3-aes-r2", None, pk, b"message", b"", sig)

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Dilithium3-AES-R2?

Dilithium3-AES-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 Dilithium3-AES-R2 sizes?

In NextSSL, Dilithium3-AES-R2 uses: public key 1,472 bytes, signature 1 to 2,701 bytes.

Is Dilithium3-AES-R2 post-quantum?

Yes. Dilithium3-AES-R2 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.

Who designed Dilithium3-AES-R2 and when?

Dilithium3-AES-R2 belongs to the CRYSTALS-Dilithium (round 2) family, first published in 2017. Its origin: NIST PQC standardisation, round 2 submission.

Is Dilithium3-AES-R2 safe to use?

Dilithium3-AES-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, dilithium1-r2, dilithium2-aes-r2, dilithium2-r2, dilithium3-r2 in the CRYSTALS-Dilithium (round 2) family.