Versions in this module Expand all Collapse all v1 v1.0.1 Oct 23, 2017 Changes in this version + const BlockSize + func DecryptBlock(key SM4Key, dst, src []byte) + func EncryptBlock(key SM4Key, dst, src []byte) + func NewCipher(key []byte) (cipher.Block, error) + func WriteKeyToPem(FileName string, key SM4Key, pwd []byte) (bool, error) + func WriteKeytoMem(key SM4Key, pwd []byte) ([]byte, error) + type KeySizeError int + func (k KeySizeError) Error() string + type SM4Key []byte + func ReadKeyFromMem(data []byte, pwd []byte) (SM4Key, error) + func ReadKeyFromPem(FileName string, pwd []byte) (SM4Key, error) + type Sm4Cipher struct + func (c *Sm4Cipher) BlockSize() int + func (c *Sm4Cipher) Decrypt(dst, src []byte) + func (c *Sm4Cipher) Encrypt(dst, src []byte)