Skip to main content

digest_matches

Function digest_matches 

Source
pub fn digest_matches(header: &str, body: &[u8]) -> bool
Expand description

Whether a Digest header holds the body’s digest: SHA-256=…, possibly beside SHA-512=… or algorithms not known here, each base64.