Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testNegativeInputs (0.44 sec)

  1. src/crypto/ecdsa/ecdsa_s390x_test.go

    		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)
  2. src/crypto/ecdsa/ecdsa_test.go

    				t.Fatalf("incorrect result on line %d", lineNo)
    			}
    		default:
    			t.Fatalf("unknown variable on line %d: %s", lineNo, line)
    		}
    	}
    }
    
    func TestNegativeInputs(t *testing.T) {
    	testAllCurves(t, testNegativeInputs)
    }
    
    func testNegativeInputs(t *testing.T, curve elliptic.Curve) {
    	key, err := GenerateKey(curve, rand.Reader)
    	if err != nil {
    		t.Errorf("failed to generate key")
    	}
    
    	var hash [32]byte
    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