Fix to hash_hmac function