Struct aws_lc_rs::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.
Errors
error::Unspecified when key_bytes length is not algorithm.key_len
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HeaderProtectionKey
impl Send for HeaderProtectionKey
impl Sync for HeaderProtectionKey
impl Unpin for HeaderProtectionKey
impl UnwindSafe for HeaderProtectionKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more