ecies

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(privateKey *ecdh.PrivateKey, curve ecdh.Curve, encData EncryptedData) ([]byte, error)

func GenerateKey

func GenerateKey(curve ecdh.Curve) (*ecdh.PrivateKey, error)

Types

type EncryptedData

type EncryptedData struct {
	// contains filtered or unexported fields
}

func Encrypt

func Encrypt(publicKey *ecdh.PublicKey, curve ecdh.Curve, plaintext []byte) (EncryptedData, error)

func (EncryptedData) Bytes

func (en EncryptedData) Bytes() []byte

func (*EncryptedData) LoadBytes

func (en *EncryptedData) LoadBytes(buf []byte)

func (*EncryptedData) LoadString

func (en *EncryptedData) LoadString(enc_data string) error

func (EncryptedData) String

func (en EncryptedData) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL