Skip to content

Commit 0713b70

Browse files
authored
Add HKDF-Expand common max output sizes (#175)
These are `255*32`, `255*48`, and `255*64`.
1 parent e408f84 commit 0713b70

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/sizes.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,11 @@ mod extra_sizes {
874874
pub type U21632 = uint!(0 0 0 0 0 0 0 1 0 0 1 0 1 0 1);
875875
pub type U21696 = uint!(0 0 0 0 0 0 1 1 0 0 1 0 1 0 1);
876876

877+
// HKDF-Expand common max output sizes
878+
pub type U8160 = uint!(0 0 0 0 0 1 1 1 1 1 1 1 1);
879+
pub type U12240 = uint!(0 0 0 0 1 0 1 1 1 1 1 1 0 1);
880+
pub type U16320 = uint!(0 0 0 0 0 0 1 1 1 1 1 1 1 1);
881+
877882
impl_array_sizes! {
878883
base_extra,
879884
1040 => U1040,
@@ -1130,4 +1135,12 @@ mod extra_sizes {
11301135
21632 => U21632,
11311136
21696 => U21696,
11321137
}
1138+
1139+
// HKDF-Expand common max output sizes
1140+
impl_array_sizes! {
1141+
hkdf_expand_max_output,
1142+
8160 => U8160,
1143+
12240 => U12240,
1144+
16320 => U16320,
1145+
}
11331146
}

0 commit comments

Comments
 (0)