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

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

Keys used to protect packet headers

Required methods

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

Decrypt the given packet's header

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

Encrypt the given packet's header

fn sample_size(&self) -> usize

The sample size used for this key's algorithm

Loading content...

Implementors

Loading content...