Module dilithium

Module dilithium 

Source
Expand description

Constants for Module-Lattice-Based Digital Signature Algorithm (ML-DSA)

This module implements the parameter sets defined in FIPS 204 (August 2024) “Module-Lattice-Based Digital Signature Standard” https://doi.org/10.6028/NIST.FIPS.204

All constants in this file are taken directly from the final FIPS 204 standard, NOT from earlier CRYSTALS-Dilithium submissions or draft specifications.

Structs§

Dilithium2Params
Structure containing ML-DSA-44 parameters FIPS 204, Table 1: ML-DSA-44 (NIST security category 2)
Dilithium3Params
Structure containing ML-DSA-65 parameters FIPS 204, Table 1: ML-DSA-65 (NIST security category 3)
Dilithium5Params
Structure containing ML-DSA-87 parameters FIPS 204, Table 1: ML-DSA-87 (NIST security category 5)

Constants§

DILITHIUM2
ML-DSA-44 parameter set (FIPS 204, Table 1) Targets NIST security category 2 (collision resistance of SHA-256)
DILITHIUM3
ML-DSA-65 parameter set (FIPS 204, Table 1) Targets NIST security category 3 (collision resistance of SHA-384)
DILITHIUM5
ML-DSA-87 parameter set (FIPS 204, Table 1) Targets NIST security category 5 (collision resistance of SHA-512)
DILITHIUM_N
Dilithium polynomial degree (n = 256) FIPS 204, Table 1: Common to all ML-DSA parameter sets
DILITHIUM_Q
Dilithium modulus (q = 8380417 = 2²³ - 2¹³ + 1) FIPS 204, Table 1: Common to all ML-DSA parameter sets

Traits§

DilithiumSchemeParams
Common trait for ML-DSA parameter sets as defined in FIPS 204