We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 536d926 commit 7ed5b7cCopy full SHA for 7ed5b7c
lms/src/ots/modes.rs
@@ -54,7 +54,7 @@ pub trait LmsOtsMode: Typecode {
54
let cksum = (&arr)
55
.into_iter()
56
.take(Self::U)
57
- .map(|&x| ((1u16 << Self::W) - 1 - (x as u16)))
+ .map(|&x| (1u16 << Self::W) - 1 - (x as u16))
58
.sum::<u16>()
59
<< Self::LS;
60
0 commit comments