Trait quinn_proto::crypto::HeaderKey
source · pub trait HeaderKey: Send {
// Required methods
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§
sourcefn sample_size(&self) -> usize
fn sample_size(&self) -> usize
The sample size used for this key’s algorithm