Trait quinn::crypto::HeaderKey[][src]

pub trait HeaderKey: 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...

Implementations on Foreign Types

impl HeaderKey for HeaderProtectionKey[src]

Loading content...

Implementors

Loading content...