Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNegativeSignature (0.27 sec)

  1. src/crypto/ecdsa/ecdsa_test.go

    	}
    
    	if Verify(&privKey.PublicKey, make([]byte, 64), big.NewInt(0), big.NewInt(0)) {
    		t.Errorf("Verify with r,s=0 succeeded: %T", curve)
    	}
    }
    
    func TestNegativeSignature(t *testing.T) {
    	testAllCurves(t, testNegativeSignature)
    }
    
    func testNegativeSignature(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