Documentation ¶
Overview ¶
hmacutil provides HMAC utility functions.
Index ¶
- func HMACSHA256(key, msg []byte) []byte
- func HMACSHA256Base32(key, msg []byte) string
- func HMACSHA256Hex(key, msg []byte) string
- func Validate(key, msg, msgMAC []byte) bool
- func ValidateBase32(key, msg []byte, msgMAC string) (bool, error)
- func ValidateHex(key, msg []byte, msgMAC string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HMACSHA256 ¶
func HMACSHA256Base32 ¶
func HMACSHA256Hex ¶
func ValidateBase32 ¶
ValidateBase32 compares MACs for equality without leaking timing information.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.