Fixed compatibility for hmac