Documentation ¶
Overview ¶
Package ecdh implements ECDH encryption, suitable for OpenPGP, as specified in RFC 6637, section 8.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(priv *PrivateKey, vsG, c, curveOID, fingerprint []byte) (msg []byte, err error)
func Validate ¶
func Validate(priv *PrivateKey) error
Types ¶
type PrivateKey ¶
func GenerateKey ¶
func NewPrivateKey ¶
func NewPrivateKey(key PublicKey) *PrivateKey
func (*PrivateKey) MarshalByteSecret ¶
func (sk *PrivateKey) MarshalByteSecret() []byte
func (*PrivateKey) UnmarshalByteSecret ¶
func (sk *PrivateKey) UnmarshalByteSecret(d []byte) error
type PublicKey ¶
func NewPublicKey ¶
func (*PublicKey) MarshalPoint ¶
func (*PublicKey) UnmarshalPoint ¶
Click to show internal directories.
Click to hide internal directories.