cryptor

package
v0.0.0-...-d9fdf4f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 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(ct []byte, privk *ecies.PrivateKey) ([]byte, error)

Decrypt private key decrypt

func EnclaveDecrypt

func EnclaveDecrypt(ct []byte) ([]byte, error)

EnclaveDecrypt decrypt with sgx product key.

func EnclaveEncrypt

func EnclaveEncrypt(pt []byte) ([]byte, error)

EnclaveEncrypt encrypt with sgx product key.

func Encrypt

func Encrypt(pt []byte, pub *ecies.PublicKey) ([]byte, error)

Encrypt public key encrypt

func GenerateKey

func GenerateKey() *ecies.PrivateKey

GenerateKey generate private key and public key

func HexToPrivkey

func HexToPrivkey(str string) (*ecies.PrivateKey, error)

func PublicKeyToStr

func PublicKeyToStr(pubkey ecies.PublicKey) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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