Digital signatures

Dilithium2aes

Round 3 Dilithium set at NIST level 2 with 1312-byte public keys and AES expansion

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 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–2025
  1. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  2. Dilithium2-AES 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 samples a public matrix from a seed and short secret vectors, and publishes a rounded product as the public key.
  2. Sign commits to a masked vector, hashes the commitment with the message into a challenge, and returns a response that passes a rejection test.
  3. 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

Research and comparison with the FIPS 204 ML-DSA parameter setsTesting against round 3 known-answer vectors

Sizes

FieldBytesMeaning
pk1,312Public key
sk2,544Secret key
sig1 – 2,420Signature
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", "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)

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

Frequently 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).