tests/fuzzers/bls1381: add bls fuzzer (#21796)

* added bls fuzzer

* crypto/bls12381: revert bls-changes, fixup fuzzer tests

* fuzzers: split bls fuzzing into 8 different units

* fuzzers/bls: remove (now stale) corpus

* crypto/bls12381: added blsfuzz corpus

* fuzzers/bls12381: fix the bls corpus

* fuzzers: fix oss-fuzz script

* tests/fuzzers: fixups on bls corpus

* test/fuzzers: remove leftover corpus

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
This commit is contained in:
Martin Holst Swende
2020-11-23 15:49:16 +01:00
committed by GitHub
parent bddf5aaa2f
commit 6104ab6b6d
12 changed files with 128 additions and 1 deletions

View File

@ -1393,6 +1393,15 @@ func BenchmarkMultiplication(t *testing.B) {
}
}
func BenchmarkInverse(t *testing.B) {
a, _ := new(fe).rand(rand.Reader)
b, _ := new(fe).rand(rand.Reader)
t.ResetTimer()
for i := 0; i < t.N; i++ {
inverse(a, b)
}
}
func padBytes(in []byte, size int) []byte {
out := make([]byte, size)
if len(in) > size {