[][src]Function crypt4gh::body_decrypt

pub fn body_decrypt<W: Write>(
    read_buffer: impl Read,
    session_keys: Vec<Vec<u8>>,
    output: &mut WriteInfo<'_, W>,
    range_start: usize
) -> Result<()>

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.