Documentation
¶
Index ¶
- Variables
- func AesCBCDecrypt(padding padding.Padding, encryptData, key, iv []byte) ([]byte, error)
- func AesCBCEncrypt(padding padding.Padding, rawData, key, iv []byte) ([]byte, error)
- func AesCTRDecrypt(padding padding.Padding, encryptData, key, iv []byte) ([]byte, error)
- func AesCTREncrypt(padding padding.Padding, rawData, key, iv []byte) ([]byte, error)
- func AesECBDecrypt(padding padding.Padding, encryptData, key []byte) ([]byte, error)
- func AesECBEncrypt(padding padding.Padding, rawData, key []byte) ([]byte, error)
- func AesGCMDecrypt(padding padding.Padding, cipherText, key, iv, aad []byte) ([]byte, error)
- func AesGCMEncrypt(padding padding.Padding, rawData, key, iv, aad []byte) ([]byte, error)
- func HMACofInterfaceHash(algo hash.Hash, key []byte, args ...[]byte) []byte
- func HMACofMD5(key []byte, args ...[]byte) []byte
- func HMACofSHA1(key []byte, args ...[]byte) []byte
- func HMACofSHA256(key []byte, args ...[]byte) []byte
- func HMACofXXHash(key []byte, args ...[]byte) []byte
- func InterfaceHash(digester hash.Hash, args ...[]byte) []byte
- func MD5hash(args ...[]byte) []byte
- func SHA1hash(args ...[]byte) []byte
- func SHA256hash(args ...[]byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTextBlockSizeTooSmall = errors.New("cipherText is too small") ErrTextBlockSizeNotMultiple = errors.New("ciphertext is not a multiple of the block size") )
Functions ¶
func AesCBCDecrypt ¶
func AesCBCEncrypt ¶
func AesCTRDecrypt ¶
func AesCTREncrypt ¶
func AesECBDecrypt ¶
func AesECBEncrypt ¶
func AesGCMDecrypt ¶
func AesGCMEncrypt ¶
func HMACofInterfaceHash ¶
func HMACofSHA1 ¶
func HMACofSHA256 ¶
func HMACofXXHash ¶
func SHA256hash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.