This commit is contained in:
Emman 2022-02-15 13:34:57 +08:00
commit cfe9842cc0

View File

@ -401,7 +401,7 @@ func BenchmarkVerify_P256(b *testing.B) {
b.ReportAllocs() b.ReportAllocs()
b.ResetTimer() b.ResetTimer()
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
if !Verify(&priv.PublicKey, hashed, r, s) { if !ecdsa.Verify(&priv.PublicKey, hashed, r, s) {
b.Fatal("verify failed") b.Fatal("verify failed")
} }
} }