pub fn decrypt_chunk(
file_key: &[u8; 32],
nonce_prefix: &[u8; 7],
index: u32,
is_last: bool,
ct_chunk: &[u8],
) -> Result<Vec<u8>, CryptoError>Expand description
Decrypt a single ciphertext chunk in isolation (ranged read). index is the 0-based
chunk number; is_last must be true only for the final chunk of the file (it carries
the STREAM last-block flag). Returns crate::crypto::CryptoError::Auth on tamper.