Skip to main content

stream_encrypt_directory

Function stream_encrypt_directory 

Source
pub fn stream_encrypt_directory(
    entries: &[WalkedEntry],
    header: &FileHeader,
    sealer: StreamSealer,
    output_dir: &Path,
) -> Result<EncryptionOutputFile, WorkflowError>
Expand description

Streams a walked directory tree as an encrypted archive into a fresh output file. Memory stays bounded by the chunk size regardless of tree size. A partially written output is removed on failure.