Update HMAC calculation