From 7e89310d9c43b374442783acb22dd73ae7485527 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 28 Nov 2025 15:25:30 +0100 Subject: [PATCH] crypto/keccak: fix lint --- crypto/keccak/keccak.go | 3 --- crypto/keccak/sha3_test.go | 19 ------------------- 2 files changed, 22 deletions(-) delete mode 100644 crypto/keccak/keccak.go diff --git a/crypto/keccak/keccak.go b/crypto/keccak/keccak.go deleted file mode 100644 index f4b07a325a..0000000000 --- a/crypto/keccak/keccak.go +++ /dev/null @@ -1,3 +0,0 @@ - - -package keccak diff --git a/crypto/keccak/sha3_test.go b/crypto/keccak/sha3_test.go index 832b6e5742..28a20ec72d 100644 --- a/crypto/keccak/sha3_test.go +++ b/crypto/keccak/sha3_test.go @@ -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() -}