Versions in this module Expand all Collapse all v1 v1.3.0 Apr 17, 2024 Changes in this version + func GM_SM2_Decry(ciphertext []byte, priv *sm2.PrivateKey) (origData []byte, err error) + func GM_SM2_Encry(origData []byte, pub *sm2.PublicKey) (ciphertext []byte, err error) + func GM_SM2_Sign(origData, key string) (sign string, err error) + func GM_SM2_Verify(origData, sign, key string) (isok bool, err error) + func GM_SM3_Hash(origData string) (hash string) + func GM_SM4_Dec(ciphertext string, key string) (origData string, err error) + func GM_SM4_Ecb(origData string, key string) (ciphertext string, err error) + func GenerateKey(key string) (*sm2.PrivateKey, error) + func ReadPrivateKeyFromPem(privateKeyPem []byte, pwd []byte) (*sm2.PrivateKey, error) + func ReadPublicKeyFromPem(privateKeyPem []byte) (*sm2.PublicKey, error)