Trait PipeLen

Source
pub trait PipeLen {
    // Required methods
    fn len_in(&self) -> usize;
    fn len_out(&self) -> usize;
}
Expand description

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§

Source

fn len_in(&self) -> usize

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

Source

fn len_out(&self) -> usize

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

Implementors§