Skip to content

Commit dcde115

Browse files
authored
adds support for LMS sizes (#92)
see RustCrypto/signatures#865
1 parent 56c7fec commit dcde115

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/sizes.rs

+14
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,12 @@ mod extra_sizes {
829829
pub type U1530 = uint!(0 1 0 1 1 1 1 1 1 0 1);
830830
pub type U1658 = uint!(0 1 0 1 1 1 1 0 0 1 1);
831831

832+
// LMS sizes
833+
pub type U2047 = uint!(1 1 1 1 1 1 1 1 1 1 1);
834+
pub type U2180 = uint!(0 0 1 0 0 0 0 1 0 0 0 1);
835+
pub type U4292 = uint!(0 0 1 0 0 0 1 1 0 0 0 0 1);
836+
pub type U8516 = uint!(0 0 1 0 0 0 1 0 1 0 0 0 0 1);
837+
832838
impl_array_sizes! {
833839
1040 => U1040,
834840
1056 => U1056,
@@ -1051,4 +1057,12 @@ mod extra_sizes {
10511057
1530 => U1530,
10521058
1658 => U1658,
10531059
}
1060+
1061+
// LMS sizes
1062+
impl_array_sizes! {
1063+
2047 => U2047,
1064+
2180 => U2180,
1065+
4292 => U4292,
1066+
8516 => U8516,
1067+
}
10541068
}

0 commit comments

Comments
 (0)