Skip to content

Commit

Permalink
Update ML-DSA sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Nov 29, 2024
1 parent 3247510 commit e87ee39
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/sizes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,16 @@ mod extra_sizes {
pub type U4080 = uint!(0 0 0 0 1 1 1 1 1 1 1 1);

// ML-DSA sizes
//
// Includes the public key, private key, and signature sizes not covered elsewhere, as well as
// some intermediate value sizes.
pub type U2420 = uint!(0 0 1 0 1 1 1 0 1 0 0 1);
pub type U3293 = uint!(1 0 1 1 1 0 1 1 0 0 1 1);
pub type U3309 = uint!(1 0 1 1 0 1 1 1 0 0 1 1);
pub type U4480 = uint!(0 0 0 0 0 0 0 1 1 0 0 0 1);
pub type U4544 = uint!(0 0 0 0 0 0 1 1 1 0 0 0 1);
pub type U4595 = uint!(1 1 0 0 1 1 1 1 1 0 0 0 1);
pub type U4627 = uint!(1 1 0 0 1 0 0 0 0 1 0 0 1);
pub type U4896 = uint!(0 0 0 0 0 1 0 0 1 1 0 0 1);

// SLH-DSA sizes
pub type U7856 = uint!(0 0 0 0 1 1 0 1 0 1 1 1 1);
Expand Down Expand Up @@ -1050,8 +1057,12 @@ mod extra_sizes {
// ML-DSA sizes
impl_array_sizes! {
2420 => U2420,
3293 => U3293,
3309 => U3309,
4480 => U4480,
4544 => U4544,
4595 => U4595,
4627 => U4627,
4896 => U4896,
}

// SLH-DSA sizes
Expand Down

0 comments on commit e87ee39

Please sign in to comment.