Documentation ¶
Index ¶
- func CBCDecrypt(cipherText []byte, key []byte, iv []byte) ([]byte, error)
- func CBCEncrypt(plainText []byte, key []byte, iv []byte) ([]byte, error)
- func Decrypt(cipherText []byte, key []byte) ([]byte, error)
- func Encrypt(plainText []byte, key []byte) ([]byte, error)
- func Padding(plainText []byte, blockSize int) []byte
- func UnPadding(cipherText []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CBCDecrypt ¶
AES解密(CBC模式) 指定初始化向量IV,和加密的一致
func CBCEncrypt ¶
AES加密(CBC模式) 指定初始向量vi,长度和block的块尺寸一致
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.