const ( MD5 = "MD5" SHA1 = "SHA1" SHA224 = "SHA224" SHA256 = "SHA256" SHA384 = "SHA384" SHA512 = "SHA512" SHA512_224 = "SHA512_224" SHA512_256 = "SHA512_256" )
func Sign(hashName string, key []byte, data []byte) ([]byte, error)
Sign returns the HMAC signature of the data, using the provided key and hash function.
Supported hash functions: "MD5", "SHA1", "SHA224", "SHA256", "SHA384", "SHA512", "SHA512_224", and "SHA512_256".