Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/sizes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,19 @@ pub mod extra_sizes {
pub type U4064 = uint!(0 0 0 0 0 1 1 1 1 1 1 1);
pub type U4080 = uint!(0 0 0 0 1 1 1 1 1 1 1 1);

// ML-DSA 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 U4595 = uint!(1 1 0 0 1 1 1 1 1 0 0 0 1);

// SLH-DSA sizes
pub type U7856 = uint!(0 0 0 0 1 1 0 1 0 1 1 1 1);
pub type U16224 = uint!(0 0 0 0 0 1 1 0 1 1 1 1 1 1);
pub type U17088 = uint!(0 0 0 0 0 0 1 1 0 1 0 0 0 0 1);
pub type U29792 = uint!(0 0 0 0 0 1 1 0 0 0 1 0 1 1 1);
pub type U35664 = uint!(0 0 0 0 1 0 1 0 1 1 0 1 0 0 0 1);
pub type U49856 = uint!(0 0 0 0 0 0 1 1 0 1 0 0 0 0 1 1);

impl_array_sizes! {
1040 => U1040,
1056 => U1056,
Expand Down Expand Up @@ -738,4 +751,21 @@ pub mod extra_sizes {
4064 => U4064,
4080 => U4080,
}

// ML-DSA sizes
impl_array_sizes! {
2420 => U2420,
3293 => U3293,
4595 => U4595,
}

// SLH-DSA sizes
impl_array_sizes! {
7856 => U7856,
16224 => U16224,
17088 => U17088,
29792 => U29792,
35664 => U35664,
49856 => U49856,
}
}