Documentation ¶
Index ¶
- Constants
- Variables
- func CBCDecrypt(block cipher.Block, encrypted, iv []byte, padding int) (plain []byte, err error)
- func CBCEncrypt(block cipher.Block, plain, iv []byte, padding int) (encrypted []byte, err error)
- func ECBDecrypt(block cipher.Block, encrypted []byte, padding int) (plain []byte, err error)
- func ECBEncrypt(block cipher.Block, plain []byte, padding int) (encrypted []byte, err error)
- func Padding(padding int, src []byte, blockSize int) []byte
- func UnPadding(padding int, src []byte) ([]byte, error)
Constants ¶
View Source
const ( CBC = iota + 1 EBC )
View Source
const ( ZEROS = iota PKCS5 PKCS7 )
Variables ¶
View Source
var (
ErrUnPadding = errors.Warning("cbc: unPadding error")
)
Functions ¶
func CBCDecrypt ¶
func CBCEncrypt ¶
func ECBDecrypt ¶
func ECBEncrypt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.