pub fn decrypt_file_with_cache(
path: &Path,
key_cache: &DashMap<[u8; 16], Arc<OnceLock<Result<Zeroizing<[u8; 32]>, String>>>>,
cache: Option<CacheRef<'_>>,
master_key: &[u8],
) -> Result<()>Expand description
Decrypt a single file using streaming chunked decryption, with a thread-safe cache for derived keys and an optional cache reference for deterministic re-encryption.
Pass cache = None to skip recording (salt, file_id) for the file.