sm2

package
v0.0.0-...-532f4bb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherText, priKey []byte) ([]byte, error)

func DecryptWithB64Key

func DecryptWithB64Key(cipherText []byte, priKey string) ([]byte, error)

func Encrypt

func Encrypt(origData, pubKey []byte) ([]byte, error)

func EncryptWithB64Key

func EncryptWithB64Key(origData []byte, pubKey string) ([]byte, error)

func GenerateSm2Key

func GenerateSm2Key() ([]byte, []byte, error)

func GenerateSm2KeyByB64

func GenerateSm2KeyByB64() (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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