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.