Versions in this module Expand all Collapse all v1 v1.105.64 Jan 17, 2022 Changes in this version + func CBCDecryptData(secretData, key []byte) ([]byte, error) + func CBCDecryptIvData(secretData, key, iv []byte) ([]byte, error) + func CBCEncryptData(originData, key []byte) ([]byte, error) + func CBCEncryptIvData(originData, key, iv []byte) ([]byte, error) + func GCMDecrypt(cipherText, nonce, additional, key []byte) ([]byte, error) + func GCMEncrypt(originText, additional, key []byte) (nonce []byte, cipherText []byte, err error) + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) (bs []byte)