Documentation ¶
Index ¶
- func AesCBCDecrypt(cipherData, key, iv []byte) ([]byte, error)
- func AesCBCEncrypt(plainData, key, iv []byte) ([]byte, error)
- func AesCTRDecrypt(data, key, iv []byte) ([]byte, error)
- func AesCTREncrypt(data, key, iv []byte) ([]byte, error)
- func PKCS7Padding(data []byte, blockSize int) []byte
- func PKCS7UnPadding(data []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
func AesCBCEncrypt ¶
AesCBCEncrypt aes encryptor,len of key corresponding to algo, 16 is AES-128, 24 is AES-192, 32 is AES-256.
func AesCTRDecrypt ¶
func AesCTREncrypt ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.