Trait quinn_proto::crypto::HeaderKey[][src]

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; }

Keys used to protect packet headers

Required methods

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

Decrypt the given packet’s header

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

Encrypt the given packet’s header

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...