Documentation ¶ Index ¶ func CBCDecrypt(encryptData, key []byte, iv []byte) ([]byte, error) func CBCEncrypt(rawData, key []byte, iv []byte) ([]byte, error) func PKCS7Padding(ciphertext []byte, blockSize int) []byte func PKCS7UnPadding(origData []byte) []byte Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CBCDecrypt ¶ func CBCDecrypt(encryptData, key []byte, iv []byte) ([]byte, error) func CBCEncrypt ¶ func CBCEncrypt(rawData, key []byte, iv []byte) ([]byte, error) func PKCS7Padding ¶ func PKCS7Padding(ciphertext []byte, blockSize int) []byte 使用PKCS7进行填充,IOS也是7 func PKCS7UnPadding ¶ func PKCS7UnPadding(origData []byte) []byte Types ¶ This section is empty. Source Files ¶ View all Source files ase.go padding.go Click to show internal directories. Click to hide internal directories.