Documentation
¶
Overview ¶
Package aescrypt Simple but handy wrappers around AES crypto methods
Index ¶
- Variables
- func DecryptAESCBC(src, key, iv []byte) (dst []byte, err error)
- func DecryptAESCBCPadded(src, key, iv []byte) ([]byte, error)
- func EncryptAESCBC(src, key, iv []byte) ([]byte, error)
- func EncryptAESCBCPadded(src, key, iv []byte) ([]byte, error)
- func Pkcs7Pad(data []byte, blocklen int) ([]byte, error)
- func Pkcs7Unpad(data []byte, blocklen int) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Panic was recovered. Will be wrapped with actual panic message. ErrRecovered = errors.New("recovered") // Data provided are invalid. Will be wrapped with actual error message. ErrInvalidInput = errors.New("invalid input") )
Errors might be returned. They will be wrapped with stacktrace at least, of course.
Functions ¶
func DecryptAESCBC ¶
DecryptAESCBC will decrypt your data.
func DecryptAESCBCPadded ¶
DecryptAESCBCPadded will decrypt your data and trim the padding.
func EncryptAESCBC ¶
EncryptAESCBC will encrypt your data.
func EncryptAESCBCPadded ¶
EncryptAESCBCPadded will pad your data and encrypt them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.