Trait ssh_packet::CipherCore 
source · pub trait CipherCore {
    type Err: From<Error> + From<Error>;
    type Mac: Mac;
    // Required methods
    fn mac(&self) -> &Self::Mac;
    fn block_size(&self) -> usize;
    // Provided method
    fn padding(&self, payload: usize) -> u8 { ... }
}Expand description
A trait with common methods and associated types involved
in the manipulation of OpeningCipher and SealingCipher.
Required Associated Types§
Required Methods§
sourcefn mac(&self) -> &Self::Mac
 
fn mac(&self) -> &Self::Mac
Gets a reference to the Message Authentication Code for this CipherCore.
sourcefn block_size(&self) -> usize
 
fn block_size(&self) -> usize
The size of a CipherCore’s block.