pub fn decode_from_cart(
data: &[u8],
) -> Result<(Vec<u8>, Option<JsonMap>, Option<JsonMap>)>
Expand description
Convenience function for decoding a CaRT
file using the default key, returning the bytes plus the
optional header and footer metadata, if present.
See https://github.com/CybercentreCanada/cart for more information.
§Errors
Returns an error if the file cannot be parsed or if this CaRT
file didn’t use the default key.
https://github.com/CybercentreCanada/cart-rs/blob/7ad548143bb85b64f364804e90cfada6c31cf902/cart_container/src/cipher.rs#L14-L17