Documentation
¶
Index ¶
- func AESCBCDecrypt(c, key []byte) ([]byte, error)
- func AESCBCEncrypt(p, key []byte) ([]byte, error)
- func Base64AESCBCDecrypt(c string, key []byte) ([]byte, error)
- func Base64AESCBCEncrypt(p, key []byte) (string, error)
- func PKCS7Padding(p []byte, blockSize int) []byte
- func PKCS7UnPadding(p []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecrypt ¶
AESCBCDecrypt decrypts cipher text with AES algorithm in CBC mode. Note that key length must be 16, 24 or 32 bytes to select AES-128, AES-192, or AES-256. Note that AES block size is 16 bytes.
func AESCBCEncrypt ¶
AESCBCEncrypt encrypts data with AES algorithm in CBC mode Note that key length must be 16, 24 or 32 bytes to select AES-128, AES-192, or AES-256 Note that AES block size is 16 bytes.
func Base64AESCBCDecrypt ¶
Base64AESCBCDecrypt decrypts cipher text encoded by base64 with AES algorithm in CBC mode.
func Base64AESCBCEncrypt ¶
Base64AESCBCEncrypt encrypts data with AES algorithm in CBC mode and then encode using base64.
func PKCS7Padding ¶
PKCS7Padding fills plaintext as an integral multiple of the block length.
func PKCS7UnPadding ¶
PKCS7UnPadding removes padding data from the tail of plaintext.
Types ¶
This section is empty.