Documentation ¶
Index ¶
- Constants
- func GetSecretMode(name string) (mode, padding string, err error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PKCS7Padding(data []byte) []byte
- func PKCS7UnPadding(data []byte) []byte
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
View Source
const ( //PaddingNull 不填充 PaddingNull = "NULL" //PaddingPkcs7 . PaddingPkcs7 = "PKCS7" //PaddingPkcs5 . PaddingPkcs5 = "PKCS5" //PaddingZero 0填充 PaddingZero = "ZERO" )
Variables ¶
This section is empty.
Functions ¶
func GetSecretMode ¶
GetModePadding 解析加密模式和填充模式
func PKCS5Padding ¶
PKCS5Padding PKCS5填充模式
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.