diff options
Diffstat (limited to 'libgo/go/crypto/ecdsa/ecdsa_test.go')
-rw-r--r-- | libgo/go/crypto/ecdsa/ecdsa_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/go/crypto/ecdsa/ecdsa_test.go b/libgo/go/crypto/ecdsa/ecdsa_test.go index fc25fd74a78..9546f67c68b 100644 --- a/libgo/go/crypto/ecdsa/ecdsa_test.go +++ b/libgo/go/crypto/ecdsa/ecdsa_test.go @@ -54,6 +54,18 @@ func BenchmarkSignP256(b *testing.B) { } } +func BenchmarkSignP384(b *testing.B) { + b.ResetTimer() + p384 := elliptic.P384() + hashed := []byte("testing") + priv, _ := GenerateKey(p384, rand.Reader) + + b.ResetTimer() + for i := 0; i < b.N; i++ { + _, _, _ = Sign(rand.Reader, priv, hashed) + } +} + func BenchmarkVerifyP256(b *testing.B) { b.ResetTimer() p256 := elliptic.P256() |