gm_java

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadPrivateKeyFormBase64

func ReadPrivateKeyFormBase64(base64Key string) (privKey *sm2.PrivateKey, err error)

样例 base64Key:FXlrn8jX61JDcBtOOh59yy/sM2r1hBT5XODayZKRDVE=

func ReadPublicKeyFormBase64

func ReadPublicKeyFormBase64(base64Key string) (pubKey *sm2.PublicKey, err error)

样例 base64Key:BHa3F+W4YhmWoqa7glAURrU7vijUSNtg+9ZnQREuq/8+6MsGAc7

func SM2_Decrypt

func SM2_Decrypt(privKey *sm2.PrivateKey, in []byte) ([]byte, error)

/SM2 解密

func SM2_Encrypt

func SM2_Encrypt(pubKey *sm2.PublicKey, in []byte) ([]byte, error)

/SM2 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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