Documentation
¶
Index ¶
- func CBCDecrypt(ciphertext []byte, key []byte) ([]byte, error)
- func CBCEncrypt(plantText []byte, key []byte) ([]byte, error)
- func CBCIvDecrypt(ciphertext []byte, key []byte, iv []byte) ([]byte, error)
- func CBCIvEncrypt(plantText []byte, key []byte, iv []byte) ([]byte, error)
- func ECBDecrypt(crypted []byte, key []byte) ([]byte, error)
- func ECBEncrypt(content []byte, key []byte) ([]byte, error)
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(plantText []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewECBDecrypter ¶
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.
func NewECBEncrypter ¶
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.