Documentation ¶
Index ¶
- func Decrypt(ctx context.Context, encryptedBytes []byte, aesKeyStr string) (decryptedBytes []byte, err error)
- func DecryptCBC(ctx context.Context, cipherText []byte, bKey []byte, bIV []byte) (decryptedString []byte, err error)
- func DecryptECB(ctx context.Context, encryptedBytes []byte, aesKey []byte) (plainBytes []byte, err error)
- func Encrypt(ctx context.Context, plainBytes []byte, aesKeyStr string) (encryptedBytes []byte, err error)
- func EncryptCBC(ctx context.Context, plainText []byte, bKey []byte, bIV []byte) (encryptedString []byte, err error)
- func EncryptECB(ctx context.Context, plainBytes []byte, aesKey []byte) (encryptedBytes []byte, err error)
- func NewECBDecrypter(block cipher.Block) cipher.BlockMode
- func NewECBEncrypter(block cipher.Block) cipher.BlockMode
- func Pad(buf []byte, size int) []byte
- func Unpad(buf []byte) ([]byte, error)
- type AesKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptCBC ¶
func DecryptECB ¶
func EncryptCBC ¶
func EncryptECB ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.