Documentation ¶
Index ¶
- func DecryptCBC(key string, cipherText []byte) ([]byte, error)
- func DecryptECB(key string, cipherText []byte) ([]byte, error)
- func EncryptCBC(key string, plainText []byte) ([]byte, error)
- func EncryptECB(key string, plainText []byte) ([]byte, error)
- func PKCS5Padding(plainText []byte, blockSize int) ([]byte, error)
- func PKCS5UnPadding(plainText []byte) ([]byte, error)
- func PKCS7Padding(plainText []byte, blockSize int) []byte
- func PKCS7UnPadding(plainText []byte) ([]byte, error)
- func ZeroPadding(plainText []byte, blockSize int) []byte
- func ZeroUnPadding(plainText []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptCBC ¶
DecryptCBC AES decrypt func, CBC mode.
func DecryptECB ¶
DecryptECB AES decrypt, ECB mode.
func EncryptCBC ¶
EncryptCBC AES encrypt func, CBC mode.
func EncryptECB ¶
EncryptECB AES encrypt, ECB mode.
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.