Skip to content

Commit dd53eb6

Browse files
committed
blake: 1.21-compatible syntax
1 parent d749e27 commit dd53eb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blake/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ macro_rules! define_compressor {
6565
&v[..8].copy_from_slice(&self.state.h);
6666
&v[8..].copy_from_slice(&U[..8]);
6767
for (vx, sx) in v[8..11].iter_mut().zip(&self.state.s) {
68-
*vx ^= sx;
68+
*vx ^= *sx;
6969
}
7070

7171
// don't xor t when the block is only padding
@@ -90,7 +90,7 @@ macro_rules! define_compressor {
9090
}
9191

9292
for (i, vx) in v.iter().enumerate() {
93-
self.state.h[i % 8] ^= vx;
93+
self.state.h[i % 8] ^= *vx;
9494
}
9595

9696
for (i, hx) in self.state.h.iter_mut().enumerate() {

0 commit comments

Comments
 (0)