Documentation
¶
Index ¶
- func DecryptCBC(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func DecryptCFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func DecryptCTR(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func DecryptECB(data []byte, key []byte, opts ...Option) ([]byte, error)
- func DecryptOFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func DecryptTripleCBC(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func DecryptTripleCFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func DecryptTripleCTR(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func DecryptTripleECB(data []byte, key []byte, opts ...Option) ([]byte, error)
- func DecryptTripleOFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptCBC(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptCFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptCTR(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptECB(data []byte, key []byte, opts ...Option) ([]byte, error)
- func EncryptOFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptTripleCBC(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptTripleCFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptTripleCTR(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- func EncryptTripleECB(data []byte, key []byte, opts ...Option) ([]byte, error)
- func EncryptTripleOFB(data []byte, key []byte, iv []byte, opts ...Option) ([]byte, error)
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptCBC ¶ added in v0.4.3
DecryptCBC uses cbc mode to decrypt data. It must specify a padding.
func DecryptCFB ¶ added in v0.4.3
DecryptCFB uses cfb mode to decrypt data. There is no need to specify a padding.
func DecryptCTR ¶ added in v0.4.3
DecryptCTR uses ctr mode to decrypt data. There is no need to specify a padding.
func DecryptECB ¶ added in v0.4.3
DecryptECB uses ecb mode to decrypt data. It must specify a padding.
func DecryptOFB ¶ added in v0.4.3
DecryptOFB uses ofb mode to decrypt data. There is no need to specify a padding.
func DecryptTripleCBC ¶ added in v0.5.2
DecryptTripleCBC uses cbc mode to decrypt data. It must specify a padding.
func DecryptTripleCFB ¶ added in v0.5.2
DecryptTripleCFB uses cfb mode to decrypt data. There is no need to specify a padding.
func DecryptTripleCTR ¶ added in v0.5.2
DecryptTripleCTR uses ctr mode to decrypt data. There is no need to specify a padding.
func DecryptTripleECB ¶ added in v0.5.2
DecryptTripleECB uses ecb mode to decrypt data. It must specify a padding.
func DecryptTripleOFB ¶ added in v0.5.2
DecryptTripleOFB uses ofb mode to decrypt data. There is no need to specify a padding.
func EncryptCBC ¶ added in v0.4.3
EncryptCBC uses cbc mode to encrypt data. It must specify a padding.
func EncryptCFB ¶ added in v0.4.3
EncryptCFB uses cfb mode to encrypt data. There is no need to specify a padding.
func EncryptCTR ¶ added in v0.4.3
EncryptCTR uses ctr mode to encrypt data. There is no need to specify a padding.
func EncryptECB ¶ added in v0.4.3
EncryptECB uses ecb mode to encrypt data. It must specify a padding.
func EncryptOFB ¶ added in v0.4.3
EncryptOFB uses ofb mode to encrypt data. There is no need to specify a padding.
func EncryptTripleCBC ¶ added in v0.5.2
EncryptTripleCBC uses cbc mode to encrypt data. It must specify a padding.
func EncryptTripleCFB ¶ added in v0.5.2
EncryptTripleCFB uses cfb mode to encrypt data. There is no need to specify a padding.
func EncryptTripleCTR ¶ added in v0.5.2
EncryptTripleCTR uses ctr mode to encrypt data. There is no need to specify a padding.
func EncryptTripleECB ¶ added in v0.5.2
EncryptTripleECB uses ecb mode to encrypt data. It must specify a padding.