Documentation ¶
Index ¶
Constants ¶
View Source
const (
AES_BLOCK_SIZE = 16
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AesCBCCrypter ¶
type AesCBCCrypter struct {
// contains filtered or unexported fields
}
func NewAesCBCCrypter ¶
func NewAesCBCCrypter(key []byte, iv []byte) (*AesCBCCrypter, error)
func (*AesCBCCrypter) BlockSize ¶
func (this *AesCBCCrypter) BlockSize() int
func (*AesCBCCrypter) Decrypt ¶
func (this *AesCBCCrypter) Decrypt(crypted []byte) []byte
func (*AesCBCCrypter) Encrypt ¶
func (this *AesCBCCrypter) Encrypt(data []byte) []byte
func (*AesCBCCrypter) SetPadding ¶
func (this *AesCBCCrypter) SetPadding(padding PaddingInterface)
type PKCS5Padding ¶
type PKCS5Padding struct {
BlockSize int
}
func (*PKCS5Padding) Padding ¶
func (this *PKCS5Padding) Padding(data []byte) []byte
func (*PKCS5Padding) UnPadding ¶
func (this *PKCS5Padding) UnPadding(data []byte) []byte
Click to show internal directories.
Click to hide internal directories.