- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testNonceSafety (0.13 sec)
-
src/crypto/ecdsa/ecdsa_test.go
} hashed[0] ^= 0xff if VerifyASN1(&priv.PublicKey, hashed, sig) { t.Errorf("VerifyASN1 always works!") } } func TestNonceSafety(t *testing.T) { testAllCurves(t, testNonceSafety) } func testNonceSafety(t *testing.T, c elliptic.Curve) { priv, _ := GenerateKey(c, rand.Reader) hashed := []byte("testing") r0, s0, err := Sign(zeroReader, priv, hashed) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:58 UTC 2024 - 13.5K bytes - Viewed (0)