Documentation ¶
Index ¶
- Constants
- Variables
- func DecryptBytesFunc(algo Algorithm, mode Mode, key, iv []byte) (enc func(src []byte) (dst []byte, err error), err error)
- func DecryptStreamFunc(algo Algorithm, mode Mode, key, iv []byte) (dec func(dst io.Writer, src io.Reader) (err error), err error)
- func EncryptBytesFunc(algo Algorithm, mode Mode, key, iv []byte) (enc func(src []byte) (dst []byte, err error), err error)
- func EncryptStreamFunc(algo Algorithm, mode Mode, key, iv []byte) (enc func(dst io.Writer, src io.Reader) (err error), err error)
- func NewDecFunc(algo Algorithm, mode Mode, key, iv []byte) func(r io.Reader) io.ReadCloser
- func NewEncFunc(algo Algorithm, mode Mode, key, iv []byte) func(w io.Writer) io.WriteCloser
- func PKCS7Pad(data []byte, blockSize int) []byte
- func PKCS7Unpad(data []byte) ([]byte, error)
- type Algorithm
- type Mode
Constants ¶
View Source
const (
RndSeed int64 = -3250455768463625913
)
Variables ¶
View Source
var ( // ErrNotSupportStream for stream encryption ErrNotSupportStream = errors.New("not support stream encryption mode") )
Functions ¶
func DecryptBytesFunc ¶
func DecryptStreamFunc ¶
func EncryptBytesFunc ¶
func EncryptStreamFunc ¶
func NewDecFunc ¶
func NewEncFunc ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.