Documentation ¶
Index ¶
- func Decrypt(ct []byte, privk *ecies.PrivateKey) ([]byte, error)
- func EnclaveDecrypt(ct []byte) ([]byte, error)
- func EnclaveEncrypt(pt []byte) ([]byte, error)
- func Encrypt(pt []byte, pub *ecies.PublicKey) ([]byte, error)
- func GenerateKey() *ecies.PrivateKey
- func HexToPrivkey(str string) (*ecies.PrivateKey, error)
- func PublicKeyToStr(pubkey ecies.PublicKey) string
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 ¶
EnclaveDecrypt decrypt with sgx product key.
func EnclaveEncrypt ¶
EnclaveEncrypt encrypt with sgx product key.
func GenerateKey ¶
func GenerateKey() *ecies.PrivateKey
GenerateKey generate private key and public key
func HexToPrivkey ¶
func HexToPrivkey(str string) (*ecies.PrivateKey, error)
func PublicKeyToStr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.