#[non_exhaustive]pub enum HeaderMaskAlgorithm {
Aes128,
Aes256,
ChaCha20,
}Expand description
The ciphers a record-number (header-protection) mask is made with: the block cipher or stream cipher underneath an AEAD, keyed separately (RFC 9147 section 4.2.3; the same construction as QUIC header protection, RFC 9001 section 5.4).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Aes128
AES-128 in ECB mode over the 16-byte sample.
Aes256
AES-256 in ECB mode over the 16-byte sample.
ChaCha20
The ChaCha20 block function, the sample giving the block counter and the nonce.
Implementations§
Trait Implementations§
Source§impl Clone for HeaderMaskAlgorithm
impl Clone for HeaderMaskAlgorithm
impl Copy for HeaderMaskAlgorithm
Source§impl Debug for HeaderMaskAlgorithm
impl Debug for HeaderMaskAlgorithm
impl Eq for HeaderMaskAlgorithm
Source§impl Hash for HeaderMaskAlgorithm
impl Hash for HeaderMaskAlgorithm
Source§impl PartialEq for HeaderMaskAlgorithm
impl PartialEq for HeaderMaskAlgorithm
impl StructuralPartialEq for HeaderMaskAlgorithm
Auto Trait Implementations§
impl Forget for HeaderMaskAlgorithm
impl Freeze for HeaderMaskAlgorithm
impl Move for HeaderMaskAlgorithm
impl RefUnwindSafe for HeaderMaskAlgorithm
impl Send for HeaderMaskAlgorithm
impl Sync for HeaderMaskAlgorithm
impl Unpin for HeaderMaskAlgorithm
impl UnsafeUnpin for HeaderMaskAlgorithm
impl UnwindSafe for HeaderMaskAlgorithm
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