Updated for correct HMAC signature generation