Trait ssh_packet::OpeningCipher 
source · pub trait OpeningCipher: CipherCore {
    // Required methods
    fn decrypt<B: AsMut<[u8]>>(&mut self, buf: B) -> Result<(), Self::Err>;
    fn open<B: AsRef<[u8]>>(
        &mut self,
        buf: B,
        mac: Vec<u8>,
        seq: u32
    ) -> Result<(), Self::Err>;
    fn decompress(&mut self, buf: Vec<u8>) -> Result<Vec<u8>, Self::Err>;
}Expand description
A cipher able to open a Packet and retrieve it’s payload.
Required Methods§
sourcefn decrypt<B: AsMut<[u8]>>(&mut self, buf: B) -> Result<(), Self::Err>
 
fn decrypt<B: AsMut<[u8]>>(&mut self, buf: B) -> Result<(), Self::Err>
Decrypt the received buf using the OpeningCipher.
sourcefn open<B: AsRef<[u8]>>(
    &mut self,
    buf: B,
    mac: Vec<u8>,
    seq: u32
) -> Result<(), Self::Err>
 
fn open<B: AsRef<[u8]>>( &mut self, buf: B, mac: Vec<u8>, seq: u32 ) -> Result<(), Self::Err>
Compare the received buf against the received Message Authentication Code.
sourcefn decompress(&mut self, buf: Vec<u8>) -> Result<Vec<u8>, Self::Err>
 
fn decompress(&mut self, buf: Vec<u8>) -> Result<Vec<u8>, Self::Err>
Decompress the received buf using the OpeningCipher.
Object Safety§
This trait is not object safe.