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
18 changes: 18 additions & 0 deletions src/sizes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,4 +1143,22 @@ mod extra_sizes {
12240 => U12240,
16320 => U16320,
}

// HQC-KEM sizes (FIPS 207)
pub type U2241 = uint!(1 0 0 0 0 0 1 1 0 0 0 1);
pub type U4433 = uint!(1 0 0 0 1 0 1 0 1 0 0 0 1);
pub type U4514 = uint!(0 1 0 0 0 1 0 1 1 0 0 0 1);
pub type U7237 = uint!(1 0 1 0 0 0 1 0 0 0 1 1 1);
pub type U8978 = uint!(0 1 0 0 1 0 0 0 1 1 0 0 0 1);
pub type U14421 = uint!(1 0 1 0 1 0 1 0 0 0 0 1 1 1);

impl_array_sizes! {
hqc,
2241 => U2241,
4433 => U4433,
4514 => U4514,
7237 => U7237,
8978 => U8978,
14421 => U14421,
}
}