Skip to main content

verify_mac_field

Function verify_mac_field 

Source
pub fn verify_mac_field(
    key: &DataKey,
    mac_field: &str,
    lastmodified_verbatim: &str,
    computed: &Mac,
) -> Result<Mac, WireError>
Expand description

Decrypt a file’s mac field and compare it against a recomputed MAC.

Returns the file’s MAC on success so a caller can report both sides.