Expand description
Digests of a request’s body: the Digest header (RFC 3230) draft-cavage
signatures cover, and the Content-Digest field (RFC 9530) RFC 9421 ones
do.
Either may list several algorithms. Every one listed that is known here, SHA-256 or SHA-512, has to match the body, and at least one has to be there; the rest are ignored, as neither RFC lets a recipient check what it does not know.
Functions§
- content_
digest_ matches - Whether a
Content-Digestfield holds the body’s digest: a structured-field dictionary of algorithms to byte sequences. - digest_
matches - Whether a
Digestheader holds the body’s digest:SHA-256=…, possibly besideSHA-512=…or algorithms not known here, each base64.