3.1.5.4 Compute Message Digest

The message digest MUST be computed using the SHA1 algorithm, defined in [RFC3174].

The message digest MUST include the following in the specified order: serialized header element (as defined in section 3.1.5.2), and the serialized payload element (as defined in section 3.1.5.3).