Documentation ¶
Index ¶
- func GetHMACHash(src []byte, hashType gocrypt.Hash, key []byte) (dst []byte, err error)
- func GetHMACHashEncodeToString(encodeType gocrypt.Encode, src []byte, hashType gocrypt.Hash, key []byte) (dst string, err error)
- func GetHash(src []byte, hashType gocrypt.Hash) (dst []byte, err error)
- func GetHashEncodeToString(encodeType gocrypt.Encode, src []byte, hashType gocrypt.Hash) (dst string, err error)
- func NewHMAC(hashType gocrypt.Hash, key []byte) *hmacHash
- func NewHash(hashType gocrypt.Hash) *hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHMACHash ¶
GetHMACHash gets hmac hashed bytes with defined hashType & key
func GetHMACHashEncodeToString ¶
func GetHMACHashEncodeToString(encodeType gocrypt.Encode, src []byte, hashType gocrypt.Hash, key []byte) (dst string, err error)
GetHMACHashEncodeToString gets hmac hashed bytes with defined hashType & key then encode to string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.