package ecdh

Import Path
	crypto/internal/fips140/ecdh (on go.dev)

Dependency Relation
	imports 10 packages, and imported by one package

Involved Source Files cast.go ecdh.go
Package-Level Type Names (total 4)
/* sort by: | */
Type Parameters: P: Point[P] N []byte func P224() *Curve[*nistec.P224Point] func P256() *Curve[*nistec.P256Point] func P384() *Curve[*nistec.P384Point] func P521() *Curve[*nistec.P521Point] func ECDH[P](c *Curve[P], k *PrivateKey, peer *PublicKey) ([]byte, error) func GenerateKey[P](c *Curve[P], rand io.Reader) (*PrivateKey, error) func NewPrivateKey[P](c *Curve[P], key []byte) (*PrivateKey, error) func NewPublicKey[P](c *Curve[P], key []byte) (*PublicKey, error)
Type Parameters: P: any Point is a generic constraint for the [nistec] Point types. ( Point[P]) Bytes() []byte ( Point[P]) BytesX() ([]byte, error) ( Point[P]) ScalarBaseMult([]byte) (P, error) ( Point[P]) ScalarMult(P, []byte) (P, error) ( Point[P]) SetBytes([]byte) (P, error)
(*PrivateKey) Bytes() []byte (*PrivateKey) PublicKey() *PublicKey func GenerateKey[P](c *Curve[P], rand io.Reader) (*PrivateKey, error) func NewPrivateKey[P](c *Curve[P], key []byte) (*PrivateKey, error) func ECDH[P](c *Curve[P], k *PrivateKey, peer *PublicKey) ([]byte, error)
(*PublicKey) Bytes() []byte func NewPublicKey[P](c *Curve[P], key []byte) (*PublicKey, error) func (*PrivateKey).PublicKey() *PublicKey func ECDH[P](c *Curve[P], k *PrivateKey, peer *PublicKey) ([]byte, error)
Package-Level Functions (total 8)
Type Parameters: P: Point[P]
Type Parameters: P: Point[P] GenerateKey generates a new ECDSA private key pair for the specified curve.
Type Parameters: P: Point[P]
Type Parameters: P: Point[P]