Function crypt4gh::body_decrypt [−][src]
pub fn body_decrypt<W: Write>(
read_buffer: impl Read,
session_keys: &[Vec<u8>],
output: &mut WriteInfo<'_, W>,
range_start: usize
) -> Result<(), Crypt4GHError>
Expand description
Decrypts the content read using the keys provided.
Reads the bytes of the buffer and decrypts it using the session_keys.
Writes the decrypted bytes using the write buffer provided. It skips
the first range_start bytes.