Documentation ¶
Index ¶
- func ReadPrivateKeyFormBase64(base64Key string) (privKey *sm2.PrivateKey, err error)
- func ReadPublicKeyFormBase64(base64Key string) (pubKey *sm2.PublicKey, err error)
- func SM2_Decrypt(privKey *sm2.PrivateKey, in []byte) ([]byte, error)
- func SM2_Encrypt(pubKey *sm2.PublicKey, in []byte) ([]byte, error)
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 ¶
样例 base64Key:BHa3F+W4YhmWoqa7glAURrU7vijUSNtg+9ZnQREuq/8+6MsGAc7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.