Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2020 Changes in this version + const BlockSize + func NewCipher(key []byte) (cipher.Block, error) + func WriteKeyToPem(FileName string, key SM4Key, pwd []byte) error + type SM4Key []byte + 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)