We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a65e9f commit 645e9f2Copy full SHA for 645e9f2
core/src/hash/sip.rs
@@ -76,18 +76,19 @@ macro_rules! compress {
76
($state:expr) => {{ compress!($state.v0, $state.v1, $state.v2, $state.v3) }};
77
($v0:expr, $v1:expr, $v2:expr, $v3:expr) => {{
78
$v0 = $v0.wrapping_add($v1);
79
+ $v2 = $v2.wrapping_add($v3);
80
$v1 = $v1.rotate_left(13);
81
$v1 ^= $v0;
- $v0 = $v0.rotate_left(32);
82
- $v2 = $v2.wrapping_add($v3);
83
$v3 = $v3.rotate_left(16);
84
$v3 ^= $v2;
85
- $v0 = $v0.wrapping_add($v3);
86
- $v3 = $v3.rotate_left(21);
87
- $v3 ^= $v0;
+ $v0 = $v0.rotate_left(32);
+
88
$v2 = $v2.wrapping_add($v1);
+ $v0 = $v0.wrapping_add($v3);
89
$v1 = $v1.rotate_left(17);
90
$v1 ^= $v2;
+ $v3 = $v3.rotate_left(21);
91
+ $v3 ^= $v0;
92
$v2 = $v2.rotate_left(32);
93
}};
94
}
0 commit comments