Documentation ¶
Index ¶
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func SM4ECBBase64Decrypt(cipherText string, key []byte) (string, error)
- func SM4ECBBase64Encrypt(originalText string, key []byte) (string, error)
- func SM4ECBDecrypt(originalBytes, key []byte) ([]byte, error)
- func SM4ECBEncrypt(originalBytes, key []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS7UnPadding ¶
func SM4ECBBase64Encrypt ¶
func SM4ECBDecrypt ¶
金融sm4解密ECB模式不填充,注意被加密数据必须为16个字节
func SM4ECBEncrypt ¶
金融sm4加密ECB模式不填充,注意被加密数据必须为16个字节
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.