Documentation ¶
Index ¶
- func AesDecode(cipherText []byte, encryptionKey []byte, iv []byte) (plaintext []byte, err error)
- func AesEncode(plaintext []byte, encryptionKey []byte, iv []byte) ([]byte, error)
- func PKCS5Padding(cipherText []byte) []byte
- func PKCS7Padding(cipherText []byte, blockSize int) []byte
- func PKCS7UnPadding(plantText []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS5Padding ¶
PKCS5Padding pkcs5作为pkcs7的子集算法,概念上没有什么区别,只是在blockSize上固定为 8 bytes
func PKCS7Padding ¶
PKCS7Padding [PKCS7 / PKCS5 填充算法](https://segmentfault.com/a/1190000019793040) PKCS7Padding [三种填充模式的区别(PKCS7Padding/PKCS5Padding/ZeroPadding)](https://blog.csdn.net/xiongya8888/article/details/84947232)
func PKCS7UnPadding ¶
PKCS7UnPadding PKCS7 和 PKCS5 去重填充是一个规则
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.