Versions in this module Expand all Collapse all v1 v1.5.93 Mar 14, 2023 v1.5.92 Mar 13, 2023 Changes in this version + func CBCDecrypt(secretData, key, iv []byte) ([]byte, error) + func CBCEncrypt(originData, key, iv []byte) ([]byte, error) + func ECBDecrypt(secretData, key []byte) ([]byte, error) + func ECBEncrypt(originData, key []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)