Documentation
¶
Overview ¶
Package ecdh defines an additional interface that will be added to the crypto/ecdh package in Go 1.26+.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyExchanger ¶
type KeyExchanger interface {
PublicKey() *ecdh.PublicKey
Curve() ecdh.Curve
ECDH(*ecdh.PublicKey) ([]byte, error)
}
KeyExchanger is an interface for an opaque private key that can be used for key exchange operations. For example, an ECDH key kept in a hardware module.
It is implemented by ecdh.PrivateKey.
type PrivateKey ¶ added in v0.4.0
type PrivateKey = ecdh.PrivateKey
Click to show internal directories.
Click to hide internal directories.