pub trait SealingCipher {
    type Err: From<Error>;

    // Required method
    fn seal(&mut self, payload: Vec<u8>) -> Result<Packet, Self::Err>;
}
Expand description

A cipher able to seal a payload to create a Packet.

Required Associated Types§

source

type Err: From<Error>

The associated error type returned by the seal method.

Required Methods§

source

fn seal(&mut self, payload: Vec<u8>) -> Result<Packet, Self::Err>

Transform the payload into it’s encrypted Packet using the SealingCipher.

Implementors§