Implement hmac check