Documentation ¶
Index ¶
- Variables
- func NoPadding(src []byte, blockSize int) []byte
- func NoUnPadding(src []byte) ([]byte, error)
- func PKCS7Padding(src []byte, blockSize int) []byte
- func PKCS7UnPadding(src []byte) ([]byte, error)
- func RandBytes(length int) (data []byte, err error)
- func ZeroPadding(src []byte, blockSize int) []byte
- func ZeroUnPadding(src []byte) ([]byte, error)
- type Client
- func (client *Client) CBCDecrypt(encrypted string) string
- func (client *Client) CBCEncrypt(text string) string
- func (client *Client) CFBDecrypt(encrypted string) string
- func (client *Client) CFBEncrypt(text string) string
- func (client *Client) GCMDecrypt(encrypted string) string
- func (client *Client) GCMEncrypt(text string) string
- type Padding
- type UnPadding
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidPadding = errors.New("invalid padding")
)
Functions ¶
func NoUnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
type Client ¶
func (*Client) CBCDecrypt ¶
func (*Client) CBCEncrypt ¶
func (*Client) CFBDecrypt ¶
func (*Client) CFBEncrypt ¶
func (*Client) GCMDecrypt ¶
func (*Client) GCMEncrypt ¶
Click to show internal directories.
Click to hide internal directories.