Corrected hmac computation