- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testNonceSafety (0.28 sec)
-
src/crypto/ecdsa/ecdsa_s390x_test.go
name := curve.Params().Name t.Run(name, func(t *testing.T) { testKeyGeneration(t, curve) }) t.Run(name, func(t *testing.T) { testSignAndVerify(t, curve) }) t.Run(name, func(t *testing.T) { testNonceSafety(t, curve) }) t.Run(name, func(t *testing.T) { testINDCCA(t, curve) }) t.Run(name, func(t *testing.T) { testNegativeInputs(t, curve) }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 834 bytes - Viewed (0) -
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)