Documentation ¶
Index ¶
- Constants
- func DecryptCBC(cipherText []byte, key []byte, iv []byte, padding int) ([]byte, error)
- func DecryptCBCTriple(cipherText []byte, key []byte, iv []byte, padding int) ([]byte, error)
- func DecryptECB(cipherText []byte, key []byte, padding int) ([]byte, error)
- func DecryptECBTriple(cipherText []byte, key []byte, padding int) ([]byte, error)
- func EncryptCBC(plainText []byte, key []byte, iv []byte, padding int) ([]byte, error)
- func EncryptCBCTriple(plainText []byte, key []byte, iv []byte, padding int) ([]byte, error)
- func EncryptECB(plainText []byte, key []byte, padding int) ([]byte, error)
- func EncryptECBTriple(plainText []byte, key []byte, padding int) ([]byte, error)
- func Padding(text []byte, padding int) ([]byte, error)
- func PaddingPKCS5(text []byte, blockSize int) []byte
- func UnPadding(text []byte, padding int) ([]byte, error)
- func UnPaddingPKCS5(text []byte) []byte
Constants ¶
View Source
const ( NOPADDING = iota PKCS5PADDING )
Variables ¶
This section is empty.
Functions ¶
func DecryptCBC ¶
func DecryptCBCTriple ¶
func DecryptECBTriple ¶
The length of the <key> should be either 16 or 24 bytes.
func EncryptCBC ¶
func EncryptCBCTriple ¶
func EncryptECBTriple ¶
The length of the <key> should be either 16 or 24 bytes.
func PaddingPKCS5 ¶
func UnPaddingPKCS5 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.