cloudflare / circl

CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
http://blog.cloudflare.com/introducing-circl
Other
1.27k stars 142 forks source link

internal: add TurboShake{128,256} #430

Closed bwesterb closed 1 year ago

bwesterb commented 1 year ago
goos: darwin
goarch: arm64
pkg: github.com/cloudflare/circl/internal/sha3
BenchmarkPermutationFunctionTurbo-12         7648284           145.6 ns/op  1374.07 MB/s
BenchmarkPermutationFunction-12              4152145           289.1 ns/op   691.77 MB/s
BenchmarkSha3_512_MTU-12                      200443          5956 ns/op     226.66 MB/s
BenchmarkSha3_384_MTU-12                      277851          4302 ns/op     313.79 MB/s
BenchmarkSha3_256_MTU-12                      347239          3416 ns/op     395.19 MB/s
BenchmarkSha3_224_MTU-12                      370054          3258 ns/op     414.40 MB/s
BenchmarkShake128_MTU-12                      420195          2842 ns/op     475.10 MB/s
BenchmarkShake256_MTU-12                      390090          3069 ns/op     439.88 MB/s
BenchmarkShake256_16x-12                       29004         41288 ns/op     396.82 MB/s
BenchmarkShake256_1MiB-12                        506       2360097 ns/op     444.29 MB/s
BenchmarkTurboShake128_1MiB-12                  1160       1026859 ns/op    1021.15 MB/s
BenchmarkTurboShake256_1MiB-12                   951       1253763 ns/op     836.34 MB/s
BenchmarkSha3_512_1MiB-12                        274       4353505 ns/op     240.86 MB/s
PASS
ok      github.com/cloudflare/circl/internal/sha3   17.678s
bwesterb commented 1 year ago

@armfazh I addressed the comments. Please have another look.

bwesterb commented 1 year ago

lgtm, just fix the nits.

Thanks. I addressed the comments.