Documentation ¶
Index ¶
- Constants
- 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
- type SM4Key
- type Sm4Cipher
Constants ¶
View Source
const BlockSize = 16
Variables ¶
This section is empty.
Functions ¶
func DecryptBlock ¶
func EncryptBlock ¶
Types ¶
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.