Skip to content

Commit d287521

Browse files
authored
Add HQC KEM sizes (#195)
Signed-off-by: Mike Lodder <redmike7@gmail.com>
1 parent e0b937d commit d287521

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/sizes.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,4 +1143,22 @@ mod extra_sizes {
11431143
12240 => U12240,
11441144
16320 => U16320,
11451145
}
1146+
1147+
// HQC-KEM sizes (FIPS 207)
1148+
pub type U2241 = uint!(1 0 0 0 0 0 1 1 0 0 0 1);
1149+
pub type U4433 = uint!(1 0 0 0 1 0 1 0 1 0 0 0 1);
1150+
pub type U4514 = uint!(0 1 0 0 0 1 0 1 1 0 0 0 1);
1151+
pub type U7237 = uint!(1 0 1 0 0 0 1 0 0 0 1 1 1);
1152+
pub type U8978 = uint!(0 1 0 0 1 0 0 0 1 1 0 0 0 1);
1153+
pub type U14421 = uint!(1 0 1 0 1 0 1 0 0 0 0 1 1 1);
1154+
1155+
impl_array_sizes! {
1156+
hqc,
1157+
2241 => U2241,
1158+
4433 => U4433,
1159+
4514 => U4514,
1160+
7237 => U7237,
1161+
8978 => U8978,
1162+
14421 => U14421,
1163+
}
11461164
}

0 commit comments

Comments
 (0)