ecc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(priv *ecdsa.PrivateKey, in []byte) (out []byte, err error)

Decrypt authenticates and recovers the original message from its input using the private key and the ephemeral key included in the message.

func Encrypt

func Encrypt(pub *ecdsa.PublicKey, in []byte) (out []byte, err error)

Encrypt secures and authenticates its input using the public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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