Documentation ¶
Index ¶
- func CBCDecrypt(crypted, key, iv []byte) ([]byte, error)
- func CBCEncrypt(origData, key, iv []byte) ([]byte, error)
- func ECBDecrypt(crypted, key []byte) ([]byte, error)
- func ECBEncrypt(data, key []byte) ([]byte, error)
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func Pkcs5Padding(cipherText []byte, blockSize int) []byte
- func Pkcs7Padding(cipherText []byte, blockSize int) []byte
- func UnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CBCDecrypt ¶
func CBCEncrypt ¶
func ECBDecrypt ¶
func ECBEncrypt ¶
func NewECBDecrypter ¶
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block
func NewECBEncrypter ¶
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
func Pkcs5Padding ¶
func Pkcs7Padding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.