We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80ea76e commit 36b1725Copy full SHA for 36b1725
sha3/sha3.go
@@ -143,14 +143,14 @@ func (d *state) Read(out []byte) (n int, err error) {
143
144
// Now, do the squeezing.
145
for len(out) > 0 {
146
- x := copy(out, d.a[d.n:d.rate])
147
- d.n += x
148
- out = out[x:]
149
-
150
// Apply the permutation if we've squeezed the sponge dry.
151
if d.n == d.rate {
152
d.permute()
153
}
+
+ x := copy(out, d.a[d.n:d.rate])
+ d.n += x
+ out = out[x:]
154
155
156
return
0 commit comments