pub fn decrypt(key: &MasterKey, blob: &[u8]) -> Result<(u8, Vec<u8>)>Expand description
Decrypts a blob produced by encrypt, returning its flags and plaintext.
ยงErrors
Error::Format for anything the header rejects, Error::KeyMismatch
when the file belongs to a different key, and Error::Crypto when the
authentication tag does not verify. A failed tag is an error, never a
warning: passing the bytes through would hand the caller content nobody
vouched for.