pub fn stream_encrypt_file(
file: &EncryptionInputFile,
header: &FileHeader,
sealer: StreamSealer,
output_dir: &Path,
) -> Result<EncryptionOutputFile, WorkflowError>Expand description
Streams the input file through the sealer into a fresh output file: header first, then one encrypted chunk at a time, with memory bounded by the chunk size. A partially written output is removed on failure.