← Writeups

Writeup 1 min read

CRYSTALS-Dilithium: Lattice-Based Post-Quantum Signatures

Overview of CRYSTALS-Dilithium, the lattice-based digital signature scheme NIST standardized as ML-DSA in FIPS 204. Covers key generation, Fiat-Shamir with Aborts signing, and verification, and why the scheme avoids Gaussian sampling.

#Cryptography

Slide 1: CRYSTALS-DilithiumSlide 2: What Is Dilithium?Slide 3: How Does Dilithium Work?Slide 4: Dilithium - Key GenerationSlide 5: Dilithium - Signing ProcedureSlide 6: Dilithium - VerificationSlide 7: Dilithium - Additional OperationsSlide 8: Dilithium - High/Low Order Bits and HintsSlide 9: Dilithium - SignatureSlide 10: Dilithium - Standardization UpdateSlide 11: Thanks for listening!Slide 12: References
Slide text
  1. CRYSTALS-DilithiumBy: Hashir Asad & Oliver Reyes
  2. What Is Dilithium?●● One of four quantum resistantalgorithms chosen by NIST● Does not use Gaussian sampling● Can be implemented in constant time● Smallest public key + signature sizePost quantum digital signature schemeamong uniform-sampling lattice schemes
  3. How Does Dilithium Work?● Uses lattice cryptography● 256 dimensional rings● Based on the Fiat-Shamir with Abortsapproach● Has three steps:○ Key Generation○ Signing Procedure○ Verification
  4. Dilithium - Key Generation● Generates ak × l matrix A● Each entry is a polynomial in the ringRq = Zq [X ]/(Xn + 1)● Always true:○ q = 223 - 213 + 1○ n = 256● Samples random secret key vectors s1and s2● Each vector is an element of Rq andall coefficients are ≤● Second part of public key: t = As1 + s2η
  5. Dilithium - Signing Procedure● Generates vector y with coefficients ≤𝛄1● Computes Ay● Sets w1 to be the “high-order” bits ofthe coefficients● Then computes z = y + cs1● Uses rejection sampling● If any coefficient of z is larger than𝛄1-β it is rejected and the signingprocess restarts
  6. Dilithium - Verification● Computes w’1 = High-order bits ofAz-ct● Accepted if all coefficients of z are <𝛄1-β● Note that Az - ct = Ay-cs2● Valid signature will have:○ |LowBits(Ay − cs2, 2γ2)ǁ∞ < γ2 − β.
  7. Dilithium - Additional Operations● Ring Operations○ Modular Reductions○ Sizes of elements● NTT Domain Representation● Hashing
  8. Dilithium - High/Low Order Bits and Hints● Reduces size of public key● High bits are used in the signatureand verification steps● Low bits are used to ensure asignature is valid● Produce a 1 bit hint● Allows the computation of higherorder bits using just r and h
  9. Dilithium - Signature● Much more complex than the basicdescription● Signing procedure may need torepeat several times● Most restarts happen at step 19● if ǁzǁ∞ ≥ γ1 − β or ǁr0ǁ∞ ≥ γ2 − β or r1 6= w1, then (z, h) := ⊥● Less than 1% happen at setp 22
  10. Dilithium - Standardization UpdateStandardized as ML-DSA in FIPS 204, effective August 2024Dilithium covers signatures; FIPS 203 (ML-KEM, from Kyber) covers encryptionThe final standard differs from the version 3.1 spec described in this deckParameter sets: ML-DSA-44, ML-DSA-65, ML-DSA-87Source: NIST FIPS 204, Module-Lattice-Based Digital Signature Standard (2024)
  11. Thanks for listening!
  12. ReferencesDucas, L., Kiltz, E., Lepoint, T., Lyubashevsky, V., Schwabe, P., Seiler, G., & Stehlé, D.(2018). Crystals-dilithium: A lattice-based digital signature scheme.IACRTransactions on Cryptographic Hardware and Embedded Systems, 238–268.https://doi.org/10.46586/tches.v2018.i1.238-268

Summary:
A technical walkthrough of CRYSTALS-Dilithium, the lattice-based digital signature scheme selected by NIST and later standardized as ML-DSA in FIPS 204. Covers key generation, the Fiat-Shamir with Aborts signing procedure, and verification, including the rejection sampling that prevents the signature from leaking the secret key. Produced for a cryptography course at Sheridan College with Oliver Reyes, working from the Ducas et al. 2018 TCHES paper.

What it covers:

  • Key generation over the ring Rq = Zq[X]/(X^n + 1), with q = 2^23 - 2^13 + 1 and n = 256
  • Signing via masking vector, high-order bit extraction, and rejection sampling to enforce zero knowledge
  • Verification, and why HighBits(Az - ct) recovers the signer’s w1
  • Public key compression through Power2Round, Decompose, and the one-bit hint mechanism
  • Why the scheme avoids Gaussian sampling, and what that buys in constant-time implementation and side-channel resistance

Postscript: This was written against the version 3.1 Dilithium specification. NIST finalized the scheme as ML-DSA in FIPS 204, effective August 2024, with changes from the submission this deck describes. An updated comparative analysis is in progress.