Versions in this module Expand all Collapse all v2 v2.3.3 Oct 19, 2023 Changes in this version + type SM4Key struct + Key []byte + func (sm4Key *SM4Key) Bytes() ([]byte, error) + func (sm4Key *SM4Key) Decrypt(crypted []byte) ([]byte, error) + func (sm4Key *SM4Key) DecryptWithOpts(crypted []byte, opts *crypto.EncOpts) ([]byte, error) + func (sm4Key *SM4Key) Encrypt(plain []byte) ([]byte, error) + func (sm4Key *SM4Key) EncryptWithOpts(plain []byte, opts *crypto.EncOpts) ([]byte, error) + func (sm4Key *SM4Key) String() (string, error) + func (sm4Key *SM4Key) Type() crypto.KeyType