Documentation ¶
Overview ¶
Package crypto provides ...
Package crypto provides ...
Index ¶
- func AESCBCDecrypt(crypted, key []byte) ([]byte, error)
- func AESCBCEncrypt(plaintext, key []byte) ([]byte, 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecrypt ¶
AESCBCDecrypt decrypt cipher
func AESCBCEncrypt ¶
AESCBCEncrypt AES-128。key长度:16, 24, 32 bytes 对应 AES-128, AES-192, AES-256
func PKCS5Padding ¶
PKCS5Padding pkcs5 padding
func ZeroPadding ¶
ZeroPadding padding with zero
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.