Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestZeroHashSignature (0.29 sec)

  1. src/crypto/ecdsa/ecdsa_test.go

    	r.Neg(r)
    
    	if Verify(&key.PublicKey, hash[:], r, r) {
    		t.Errorf("bogus signature accepted")
    	}
    }
    
    func TestZeroHashSignature(t *testing.T) {
    	testAllCurves(t, testZeroHashSignature)
    }
    
    func testZeroHashSignature(t *testing.T, curve elliptic.Curve) {
    	zeroHash := make([]byte, 64)
    
    	privKey, err := GenerateKey(curve, rand.Reader)
    	if err != nil {
    		panic(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top