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
26 changes: 26 additions & 0 deletions src/sizes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,4 +1176,30 @@ mod extra_sizes {
8978 => U8978,
14421 => U14421,
}

// Classic McEliece sizes
pub type U6492 = uint!(0 0 1 1 1 0 1 0 1 0 0 1 1);
pub type U13608 = uint!(0 0 0 1 0 1 0 0 1 0 1 0 1 1);
pub type U13932 = uint!(0 0 1 1 0 1 1 0 0 1 1 0 1 1);
pub type U13948 = uint!(0 0 1 1 1 1 1 0 0 1 1 0 1 1);
pub type U14120 = uint!(0 0 0 1 0 1 0 0 1 1 1 0 1 1);
pub type U261120 = uint!(0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1);
pub type U524160 = uint!(0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1);
pub type U1044992 = uint!(0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1);
pub type U1047319 = uint!(1 1 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1);
pub type U1357824 = uint!(0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0 1 0 1);

impl_array_sizes! {
classic_mceliece,
6492 => U6492,
13608 => U13608,
13932 => U13932,
13948 => U13948,
14120 => U14120,
261120 => U261120,
524160 => U524160,
1044992 => U1044992,
1047319 => U1047319,
1357824 => U1357824,
}
}