Versions in this module Expand all Collapse all v1 v1.0.1 Aug 13, 2019 Changes in this version + func Decrypt(privkey *PrivateKey, msg []byte) ([]byte, error) + func Encrypt(pubkey *PublicKey, msg []byte) ([]byte, error) + type PrivateKey struct + D *big.Int + func GenerateKey() (*PrivateKey, error) + func NewPrivateKeyFromBytes(priv []byte) *PrivateKey + func NewPrivateKeyFromHex(s string) (*PrivateKey, error) + func (k *PrivateKey) Bytes() []byte + func (k *PrivateKey) ECDH(pub *PublicKey) ([]byte, error) + func (k *PrivateKey) Equals(priv *PrivateKey) bool + func (k *PrivateKey) Hex() string + func (k *PrivateKey) UnsafeECDH(pub *PublicKey) ([]byte, error) + type PublicKey struct + X *big.Int + Y *big.Int + func NewPublicKeyFromBytes(b []byte) (*PublicKey, error) + func NewPublicKeyFromHex(s string) (*PublicKey, error) + func (k *PublicKey) Bytes(compressed bool) []byte + func (k *PublicKey) Equals(pub *PublicKey) bool + func (k *PublicKey) Hex(compressed bool) string Other modules containing this package github.com/ecies/go/v2