This commit is contained in:
emmansun 2022-02-13 16:05:44 +08:00
parent 69aa220c2f
commit 39f36ddb60

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")
} }
} }