a Secarta project ...

HTTPsec Authentication Protocol


Preamble

7.4. Continuation Response Validation

A continuation response message MUST meet all the following conditions to be considered valid by the requester that receives it:

  1. The header is well-formed according to the Continuation Response section.
  2. The count directive satisfies the sequence and uniqueness conditions.
  3. The mac directive's value equals the result of the re-computation over the message, using the response MAC key indexed by the token stated in the associated request.
  4. If the digest directive is present, its value equals the result of hashing the entity-body according to this specification's Hash Algorithm.

A response that fails validation SHOULD cause the requester to flush all state associated with the shared secret arrangement indexed by the token directive in the associated request, notably the MAC keys and Cipher keys.