Add hmac method