Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestOffCurve (0.08 sec)

  1. src/crypto/elliptic/elliptic_test.go

    	t.Parallel()
    	testAllCurves(t, func(t *testing.T, curve Curve) {
    		if !curve.IsOnCurve(curve.Params().Gx, curve.Params().Gy) {
    			t.Error("basepoint is not on the curve")
    		}
    	})
    }
    
    func TestOffCurve(t *testing.T) {
    	t.Parallel()
    	testAllCurves(t, func(t *testing.T, curve Curve) {
    		x, y := new(big.Int).SetInt64(1), new(big.Int).SetInt64(1)
    		if curve.IsOnCurve(x, y) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top