ecies

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(priv *PrivateKey, ciphertext []byte) ([]byte, error)

Decrypt decrypts a ciphertext using a private key

func Encrypt

func Encrypt(pub *PublicKey, plaintext []byte) ([]byte, error)

Encrypt encrypts a plaintext using a public key

func HashSeed

func HashSeed(seed []byte) []byte

HashSeed returns 512 sum hash of byte slice

Types

type PrivateKey

type PrivateKey = eciesgo.PrivateKey

func GenerateKey

func GenerateKey() (*PrivateKey, error)

GenerateKey generates secp256k1 key pair

func GenerateKeyFromSeed

func GenerateKeyFromSeed(seed []byte) (*PrivateKey, error)

GenerateKeyFromSeed generates secp256k1 key pair from []byte seed

type PublicKey

type PublicKey = eciesgo.PublicKey

Jump to

Keyboard shortcuts

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