Versions in this module Expand all Collapse all v1 v1.5.0 Nov 30, 2021 v1.4.6 Oct 28, 2021 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) Encapsulate(pub *PublicKey) ([]byte, error) + func (k *PrivateKey) Equals(priv *PrivateKey) bool + func (k *PrivateKey) Hex() string + 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) Decapsulate(priv *PrivateKey) ([]byte, error) + func (k *PublicKey) Equals(pub *PublicKey) bool + func (k *PublicKey) Hex(compressed bool) string