pub trait HeaderKey: Send {
    fn decrypt(&self, pn_offset: usize, packet: &mut [u8]);
    fn encrypt(&self, pn_offset: usize, packet: &mut [u8]);
    fn sample_size(&self) -> usize;
}
Expand description

Keys used to protect packet headers

Required Methods

Decrypt the given packet’s header

Encrypt the given packet’s header

The sample size used for this key’s algorithm

Implementations on Foreign Types

Implementors