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.
§Errors
error::Unspecified when key_bytes length is not algorithm.key_len