[][src]Trait ffsend_api::pipe::prelude::PipeLen

pub trait PipeLen {
    fn len_in(&self) -> usize;
fn len_out(&self) -> usize; }

Defines number of bytes transformed into/out of pipe if fixed.

For example, the AES-GCM cryptography pipe adds 16 bytes to the encrypted payload for the verification tag. When transforming a file the length is known. Then, the len_out for an AES-GCM encrypter is 16 bytes larger than len_in. For a decrypter this is the other way around.

Required methods

fn len_in(&self) -> usize

The number of bytes that are transfered into the pipe if fixed.

fn len_out(&self) -> usize

The number of bytes that are transfered out of the pipe if fixed.

Loading content...

Implementors

impl PipeLen for EceCrypt[src]

impl PipeLen for EceReader[src]

impl PipeLen for EceWriter[src]

impl PipeLen for GcmCrypt[src]

impl PipeLen for GcmReader[src]

impl PipeLen for GcmWriter[src]

impl PipeLen for ProgressReader[src]

impl PipeLen for ProgressWriter[src]

Loading content...