Documentation ¶
Index ¶
- Variables
- func DecryptAESWithCBC(in []byte, key []byte, iv []byte) ([]byte, error)
- func DecryptPKCS5(in []byte) ([]byte, error)
- func DecryptPKCS7(in []byte) ([]byte, error)
- func EncryptAESWithCBC(in []byte, key []byte, iv []byte) ([]byte, error)
- func EncryptPKCS5(in []byte) []byte
- func EncryptPKCS7(in []byte, blockSize int) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonIV = []byte{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}
View Source
var ErrPKCS = errors.New("naza.crypto: fxxk")
Functions ¶
func DecryptPKCS5 ¶
func DecryptPKCS7 ¶
func EncryptPKCS5 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.