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§
- Dilithium2
Params - Structure containing ML-DSA-44 parameters FIPS 204, Table 1: ML-DSA-44 (NIST security category 2)
- Dilithium3
Params - Structure containing ML-DSA-65 parameters FIPS 204, Table 1: ML-DSA-65 (NIST security category 3)
- Dilithium5
Params - Structure containing ML-DSA-87 parameters FIPS 204, Table 1: ML-DSA-87 (NIST security category 5)
Constants§
- DILITHIU
M2 - ML-DSA-44 parameter set (FIPS 204, Table 1) Targets NIST security category 2 (collision resistance of SHA-256)
- DILITHIU
M3 - ML-DSA-65 parameter set (FIPS 204, Table 1) Targets NIST security category 3 (collision resistance of SHA-384)
- DILITHIU
M5 - 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§
- Dilithium
Scheme Params - Common trait for ML-DSA parameter sets as defined in FIPS 204