check digest/hmac