[−][src]Function crypt4gh::encrypt
pub fn encrypt<R: Read, W: Write>(
recipient_keys: &HashSet<Keys>,
read_buffer: &mut R,
write_buffer: &mut W,
range_start: usize,
range_span: Option<usize>
) -> Result<()>
Reads from the read_buffer
and writes the encrypted data to write_buffer
.
Reads from the read_buffer
and writes the encrypted data (for every recipient_key
) to write_buffer
.
If the range is specified, it will only encrypt the bytes from range_start
to range_start
+ range_span
.
In case that range_span
is none, it will encrypt from range_start
to the end of the input.