Skip to content

Commit 01cdf07

Browse files
committed
crypto/keccak: fix lint
1 parent 43863ae commit 01cdf07

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

crypto/keccak/keccak.go

Lines changed: 0 additions & 3 deletions
This file was deleted.

crypto/keccak/sha3_test.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -208,22 +208,3 @@ func BenchmarkPermutationFunction(b *testing.B) {
208208
keccakF1600(&lanes)
209209
}
210210
}
211-
212-
// benchmarkHash tests the speed to hash num buffers of buflen each.
213-
func benchmarkHash(b *testing.B, h hash.Hash, size, num int) {
214-
b.StopTimer()
215-
h.Reset()
216-
data := sequentialBytes(size)
217-
b.SetBytes(int64(size * num))
218-
b.StartTimer()
219-
220-
var state []byte
221-
for i := 0; i < b.N; i++ {
222-
for j := 0; j < num; j++ {
223-
h.Write(data)
224-
}
225-
state = h.Sum(state[:0])
226-
}
227-
b.StopTimer()
228-
h.Reset()
229-
}

0 commit comments

Comments
 (0)