Skip to main content

decrypt_stream

Function decrypt_stream 

Source
pub fn decrypt_stream<R: Read, W: Write>(
    reader: &mut R,
    writer: &mut W,
    password: &[u8],
    total_size: Option<u64>,
    reporter: &dyn ProgressReporter,
) -> CryptoResult<()>
Expand description

Stream-decrypt from any reader to any writer. Used by the CLI for stdin/stdout piping. Does not create temp files or handle renaming.