From 492da96b7f0dc1cd1c77a7e2178323158d94f242 Mon Sep 17 00:00:00 2001 From: xvzcf Date: Wed, 13 Sep 2023 17:22:57 -0400 Subject: [PATCH] Ran go fmt. --- benches/circl/shake_test.go | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/benches/circl/shake_test.go b/benches/circl/shake_test.go index 1129ffc17..5b16d5b67 100644 --- a/benches/circl/shake_test.go +++ b/benches/circl/shake_test.go @@ -5,40 +5,40 @@ import ( "testing" ) -const bytesToOutput = 10000; +const bytesToOutput = 10000 func BenchmarkSHAKE128(b *testing.B) { - input := make([]byte, 0, 34); - output := make([]byte, bytesToOutput); + input := make([]byte, 0, 34) + output := make([]byte, bytesToOutput) - xof := xof.SHAKE128.New() - _, err := xof.Write([]byte(input)) - if err != nil { - b.Fatal(err) - } + xof := xof.SHAKE128.New() + _, err := xof.Write([]byte(input)) + if err != nil { + b.Fatal(err) + } for i := 0; i < b.N; i++ { - n, err := xof.Read(output) - if n != bytesToOutput || err != nil { - b.Fatal() - } + n, err := xof.Read(output) + if n != bytesToOutput || err != nil { + b.Fatal() + } } } func BenchmarkSHAKE256(b *testing.B) { - input := make([]byte, 0, 34); - output := make([]byte, bytesToOutput) + input := make([]byte, 0, 34) + output := make([]byte, bytesToOutput) - xof := xof.SHAKE256.New() - _, err := xof.Write([]byte(input)) - if err != nil { - b.Fatal(err) - } + xof := xof.SHAKE256.New() + _, err := xof.Write([]byte(input)) + if err != nil { + b.Fatal(err) + } for i := 0; i < b.N; i++ { - n, err := xof.Read(output) - if n != bytesToOutput || err != nil { - b.Fatal() - } + n, err := xof.Read(output) + if n != bytesToOutput || err != nil { + b.Fatal() + } } }