Skip to content

Commit

Permalink
Merge pull request #214 from GaloisInc/add-mldsa-versions
Browse files Browse the repository at this point in the history
ML-DSA: add missing parameter sets
  • Loading branch information
marsella authored Jan 8, 2025
2 parents 74784ab + f8e8b26 commit 0278cf9
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Primitive/Asymmetric/Signature/ML_DSA/Instantiations/ML_DSA_65.cry
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Instantiation of the ML-DSA-65 parameter set.
* [FIPS-204] Section 4, Table 1.
*
* This is in security strength category 3.
*
* @copyright Galois Inc
* @author Marcella Hastings <[email protected]>
*/
module Primitive::Asymmetric::Signature::ML_DSA::Instantiations::ML_DSA_65 =
Primitive::Asymmetric::Signature::ML_DSA::ML_DSA where

type q = 8380417
type τ = 49
type λ = 192
type γ1 = 2 ^^ 19
type γ2 = (q - 1) / 32
type k = 6
type ell = 5
type η = 4
type ω = 55


22 changes: 22 additions & 0 deletions Primitive/Asymmetric/Signature/ML_DSA/Instantiations/ML_DSA_87.cry
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Instantiation of the ML-DSA-87 parameter set.
* [FIPS-204] Section 4, Table 1.
*
* This is in security strength category 5.
*
* @copyright Galois Inc
* @author Marcella Hastings <[email protected]>
*/
module Primitive::Asymmetric::Signature::ML_DSA::Instantiations::ML_DSA_87 =
Primitive::Asymmetric::Signature::ML_DSA::ML_DSA where

type q = 8380417
type τ = 60
type λ = 256
type γ1 = 2 ^^ 19
type γ2 = (q - 1) / 32
type k = 8
type ell = 7
type η = 2
type ω = 75

Loading

0 comments on commit 0278cf9

Please sign in to comment.