Struct ring::aead::quic::HeaderProtectionKey
source · pub struct HeaderProtectionKey { /* private fields */ }
Expand description
A key for generating QUIC Header Protection masks.
Implementations§
source§impl HeaderProtectionKey
impl HeaderProtectionKey
sourcepub fn new(
algorithm: &'static Algorithm,
key_bytes: &[u8]
) -> Result<Self, Unspecified>
pub fn new( algorithm: &'static Algorithm, key_bytes: &[u8] ) -> Result<Self, Unspecified>
Create a new header protection key.
key_bytes
must be exactly algorithm.key_len
bytes long.