crypto/keccak: fix lint

This commit is contained in:
Felix Lange 2025-11-28 15:25:30 +01:00 committed by lightclient
parent 052eb75c06
commit 7e89310d9c
No known key found for this signature in database
GPG key ID: 657913021EF45A6A
2 changed files with 0 additions and 22 deletions

View file

@ -1,3 +0,0 @@
package keccak

View file

@ -208,22 +208,3 @@ func BenchmarkPermutationFunction(b *testing.B) {
keccakF1600(&lanes)
}
}
// benchmarkHash tests the speed to hash num buffers of buflen each.
func benchmarkHash(b *testing.B, h hash.Hash, size, num int) {
b.StopTimer()
h.Reset()
data := sequentialBytes(size)
b.SetBytes(int64(size * num))
b.StartTimer()
var state []byte
for i := 0; i < b.N; i++ {
for j := 0; j < num; j++ {
h.Write(data)
}
state = h.Sum(state[:0])
}
b.StopTimer()
h.Reset()
}