go/src/crypto/ecdh/x25519.go

var x25519PublicKeySize

var x25519PrivateKeySize

var x25519SharedSecretSize

// X25519 returns a [Curve] which implements the X25519 function over Curve25519
// (RFC 7748, Section 5).
//
// Multiple invocations of this function will return the same value, so it can
// be used for equality checks and switch statements.
func X25519() Curve {}

var x25519

type x25519Curve

func (c *x25519Curve) String() string {}

func (c *x25519Curve) GenerateKey(rand io.Reader) (*PrivateKey, error) {}

func (c *x25519Curve) NewPrivateKey(key []byte) (*PrivateKey, error) {}

func (c *x25519Curve) privateKeyToPublicKey(key *PrivateKey) *PublicKey {}

func (c *x25519Curve) NewPublicKey(key []byte) (*PublicKey, error) {}

func (c *x25519Curve) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) {}

func x25519ScalarMult(dst, scalar, point []byte) {}