File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl Hc128 {
52
52
}
53
53
54
54
for i in 16 ..1280 {
55
- w[ i] = ( f2 ( w[ i - 2 ] ) . wrapping_add ( w[ i - 7 ] ) . wrapping_add ( f1 ( w[ i - 15 ] ) ) . wrapping_add ( w[ i - 16 ] ) . wrapping_add ( i as u32 ) ) ;
55
+ w[ i] = f2 ( w[ i - 2 ] ) . wrapping_add ( w[ i - 7 ] ) . wrapping_add ( f1 ( w[ i - 15 ] ) ) . wrapping_add ( w[ i - 16 ] ) . wrapping_add ( i as u32 ) ;
56
56
}
57
57
58
58
// Copy contents of w into p and q
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ impl Poly1305 {
83
83
d2 += c as u64 ; c = ( d2 >> 26 ) as u32 ; h2 = d2 as u32 & 0x3ffffff ;
84
84
d3 += c as u64 ; c = ( d3 >> 26 ) as u32 ; h3 = d3 as u32 & 0x3ffffff ;
85
85
d4 += c as u64 ; c = ( d4 >> 26 ) as u32 ; h4 = d4 as u32 & 0x3ffffff ;
86
- h0 += c * 5 ; c = ( h0 >> 26 ) ; h0 = h0 & 0x3ffffff ;
86
+ h0 += c * 5 ; c = h0 >> 26 ; h0 = h0 & 0x3ffffff ;
87
87
h1 += c;
88
88
89
89
self . h [ 0 ] = h0;
You can’t perform that action at this time.
0 commit comments