Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECDH ¶
type ECDH interface { GenerateKey(io.Reader) (crypto.PrivateKey, crypto.PublicKey, error) Marshal(crypto.PublicKey) []byte Unmarshal([]byte) (crypto.PublicKey, bool) }
The main interface for ECDH key exchange.
func NewCurve25519ECDH ¶
func NewCurve25519ECDH() ECDH
NewCurve25519ECDH creates a new ECDH instance that uses djb's curve25519 elliptical curve.
func NewEllipticECDH ¶
NewEllipticECDH creates a new instance of ECDH with the given elliptic.Curve curve to use as the elliptical curve for elliptical curve diffie-hellman.
Click to show internal directories.
Click to hide internal directories.