go/src/crypto/internal/edwards25519/field/fe_test.go

func (v Element) String() string {}

// quickCheckConfig returns a quick.Config that scales the max count by the
// given factor if the -short flag is not set.
func quickCheckConfig(slowScale int) *quick.Config {}

func generateFieldElement(rand *mathrand.Rand) Element {}

var weirdLimbs51

var weirdLimbs52

func generateWeirdFieldElement(rand *mathrand.Rand) Element {}

func (Element) Generate(rand *mathrand.Rand, size int) reflect.Value {}

// isInBounds returns whether the element is within the expected bit size bounds
// after a light reduction.
func isInBounds(x *Element) bool {}

func TestMultiplyDistributesOverAdd(t *testing.T) {}

func TestMul64to128(t *testing.T) {}

func TestSetBytesRoundTrip(t *testing.T) {}

func swapEndianness(buf []byte) []byte {}

func TestBytesBigEquivalence(t *testing.T) {}

// fromBig sets v = n, and returns v. The bit length of n must not exceed 256.
func (v *Element) fromBig(n *big.Int) *Element {}

func (v *Element) fromDecimal(s string) *Element {}

// toBig returns v as a big.Int.
func (v *Element) toBig() *big.Int {}

func TestDecimalConstants(t *testing.T) {}

func TestSetBytesRoundTripEdgeCases(t *testing.T) {}

// Tests self-consistency between Multiply and Square.
func TestConsistency(t *testing.T) {}

func TestEqual(t *testing.T) {}

func TestInvert(t *testing.T) {}

func TestSelectSwap(t *testing.T) {}

func TestMult32(t *testing.T) {}

func TestSqrtRatio(t *testing.T) {}

func TestCarryPropagate(t *testing.T) {}

func TestFeSquare(t *testing.T) {}

func TestFeMul(t *testing.T) {}

func decodeHex(s string) []byte {}