go/src/crypto/elliptic/elliptic_test.go

// genericParamsForCurve returns the dereferenced CurveParams for
// the specified curve. This is used to avoid the logic for
// upgrading a curve to its specific implementation, forcing
// usage of the generic implementation.
func genericParamsForCurve(c Curve) *CurveParams {}

func testAllCurves(t *testing.T, f func(*testing.T, Curve)) {}

func TestOnCurve(t *testing.T) {}

func TestOffCurve(t *testing.T) {}

func TestInfinity(t *testing.T) {}

func isInfinity(x, y *big.Int) bool {}

func testInfinity(t *testing.T, curve Curve) {}

func TestMarshal(t *testing.T) {}

func TestUnmarshalToLargeCoordinates(t *testing.T) {}

func testUnmarshalToLargeCoordinates(t *testing.T, curve Curve) {}

// TestInvalidCoordinates tests big.Int values that are not valid field elements
// (negative or bigger than P). They are expected to return false from
// IsOnCurve, all other behavior is undefined.
func TestInvalidCoordinates(t *testing.T) {}

func testInvalidCoordinates(t *testing.T, curve Curve) {}

func TestMarshalCompressed(t *testing.T) {}

func testMarshalCompressed(t *testing.T, curve Curve, x, y *big.Int, want []byte) {}

func TestLargeIsOnCurve(t *testing.T) {}

func benchmarkAllCurves(b *testing.B, f func(*testing.B, Curve)) {}

func BenchmarkScalarBaseMult(b *testing.B) {}

func BenchmarkScalarMult(b *testing.B) {}

func BenchmarkMarshalUnmarshal(b *testing.B) {}