Documentation
¶
Index ¶
- Constants
- func PKCS5Pad(data []byte, blockSize int) []byte
- func PKCS5Unpad(data []byte) []byte
- type AES
- func (a *AES) CbcDecrypt(crypted []byte) (plain []byte, err error)
- func (a *AES) CbcEncrypt(plain []byte) ([]byte, error)
- func (a *AES) Decrypt(data []byte) ([]byte, error)
- func (a *AES) EcbDecrypt(cipher []byte) ([]byte, error)
- func (a *AES) EcbEncrypt(plain []byte) ([]byte, error)
- func (a *AES) Encrypt(data []byte) ([]byte, error)
- func (a *AES) Name() string
- type Encrypter
- type SM4
Constants ¶
View Source
const ( PKCS5 = "PKCS5" PKCS7 = "PKCS7" )
View Source
const SM4Key = "toolkit length16"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AES ¶
type AES struct {
// contains filtered or unexported fields
}
func (*AES) CbcDecrypt ¶
AESCBCDecrypt AES CBC解密
func (*AES) CbcEncrypt ¶
AESCBCEncrypt AES CBC加密
func (*AES) EcbDecrypt ¶
AESEcbDecrypt ECB解密
Click to show internal directories.
Click to hide internal directories.