pub fn decrypt_log_record(
key: &SecretKey,
lineage: &[u8],
log_version: u64,
payload: &[u8],
) -> Result<Vec<u8>, CryptError>Expand description
Authenticates and decrypts one transaction-log record payload.
log_version is the lease version of the file or object the payload was
read from; supplying another one fails authentication rather than
returning a record from the wrong version file.
ยงErrors
Returns a CryptError for a malformed payload, the wrong key, a
mismatched lineage or log version, or tampering.