Skip to main content

decrypt_file_with_cache

Function decrypt_file_with_cache 

Source
pub fn decrypt_file_with_cache<S: BuildHasher + Clone>(
    path: &Path,
    key_cache: &DashMap<[u8; 16], Zeroizing<[u8; 32]>, S>,
    master_key: &[u8],
) -> Result<()>
Expand description

Decrypt a single file using streaming chunked decryption, with a thread-safe cache for derived keys.

ยงPanics

Panics if the cache is poisoned.