Trait ssh_packet::OpeningCipher
source · pub trait OpeningCipher {
type Err;
// Required methods
fn size(&self) -> usize;
fn open(&mut self, packet: Packet) -> Result<Vec<u8>, Self::Err>;
}Expand description
A cipher able to open a Packet and retrieve it’s payload.
Required Associated Types§
Required Methods§
sourcefn size(&self) -> usize
fn size(&self) -> usize
The size of the Message Authentication Code for this OpeningCipher, in bytes.