Versions in this module Expand all Collapse all v1 v1.0.0 Nov 16, 2020 Changes in this version + func Decrypt(priv *PrivateKey, vsG, m, curveOID, fingerprint []byte) (msg []byte, err error) + func Encrypt(random io.Reader, pub *PublicKey, msg, curveOID, fingerprint []byte) (vsG, c []byte, err error) + func X25519Decrypt(priv *PrivateKey, vsG, m, curveOID, fingerprint []byte) (msg []byte, err error) + func X25519Encrypt(random io.Reader, pub *PublicKey, msg, curveOID, fingerprint []byte) (vsG, c []byte, err error) + type KDF struct + Cipher algorithm.Cipher + Hash algorithm.Hash + type PrivateKey struct + D []byte + func GenerateKey(c elliptic.Curve, kdf KDF, rand io.Reader) (priv *PrivateKey, err error) + func X25519GenerateKey(rand io.Reader, kdf KDF) (priv *PrivateKey, err error) + type PublicKey struct + X *big.Int + Y *big.Int