Skip to main content

content_digest_header_with

Function content_digest_header_with 

Source
pub fn content_digest_header_with(
    body: &[u8],
    algorithms: &[DigestAlgorithm],
) -> String
Expand description

Computes a multi-algorithm Content-Digest: value carrying one dictionary entry per requested algorithm, in the order they are supplied.

ยงPanics

Panics only if sfv fails to serialise a byte-sequence-only dictionary; this is unreachable for any well-formed input, since the algorithm tokens are hard-coded to valid sf-keys.