go/src/crypto/ecdh/ecdh_test.go

var _

var _

func TestECDH(t *testing.T) {}

type countingReader

func (r *countingReader) Read(p []byte) (int, error) {}

func TestGenerateKey(t *testing.T) {}

var vectors

func TestVectors(t *testing.T) {}

func hexDecode(t *testing.T, s string) []byte {}

func TestString(t *testing.T) {}

func TestX25519Failure(t *testing.T) {}

func testX25519Failure(t *testing.T, private, public []byte) {}

var invalidPrivateKeys

func TestNewPrivateKey(t *testing.T) {}

var invalidPublicKeys

func TestNewPublicKey(t *testing.T) {}

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

func BenchmarkECDH(b *testing.B) {}

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

type zr

// Read replaces the contents of dst with zeros. It is safe for concurrent use.
func (zr) Read(dst []byte) (n int, err error) {}

var zeroReader

const linkerTestProgram

// TestLinker ensures that using one curve does not bring all other
// implementations into the binary. This also guarantees that govulncheck can
// avoid warning about a curve-specific vulnerability if that curve is not used.
func TestLinker(t *testing.T) {}

func TestMismatchedCurves(t *testing.T) {}