Trait quinn::crypto::HeaderKeys[][src]

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

Keys used to protect packet headers

Required methods

pub fn decrypt(&self, pn_offset: usize, packet: &mut [u8])[src]

Decrypt the given packet’s header

pub fn encrypt(&self, pn_offset: usize, packet: &mut [u8])[src]

Encrypt the given packet’s header

pub fn sample_size(&self) -> usize[src]

The sample size used for this key’s algorithm

Loading content...

Implementors

Loading content...