Lines Matching full:algorithm
28 algorithm: &'static Algorithm, field
37 impl From<hkdf::Okm<'_, &'static Algorithm>> for HeaderProtectionKey {
38 fn from(okm: hkdf::Okm<&'static Algorithm>) -> Self { in from()
40 let algorithm = *okm.len(); in from() localVariable
41 let key_bytes = &mut key_bytes[..algorithm.key_len()]; in from()
43 Self::new(algorithm, key_bytes).unwrap() in from()
50 /// `key_bytes` must be exactly `algorithm.key_len` bytes long.
52 algorithm: &'static Algorithm, in new() argument
56 inner: (algorithm.init)(key_bytes, cpu::features())?, in new()
57 algorithm, in new()
63 /// `sample` must be exactly `self.algorithm().sample_len()` bytes long.
67 let out = (self.algorithm.new_mask)(&self.inner, *sample);
71 /// The key's algorithm.
73 pub fn algorithm(&self) -> &'static Algorithm { in algorithm() argument
74 self.algorithm in algorithm()
83 /// A QUIC Header Protection Algorithm.
84 pub struct Algorithm { struct
93 impl hkdf::KeyType for &'static Algorithm { argument
100 impl Algorithm { implementation
114 derive_debug_via_id!(Algorithm);
123 impl PartialEq for Algorithm { implementation
129 impl Eq for Algorithm {} implementation
132 pub static AES_128: Algorithm = Algorithm {
140 pub static AES_256: Algorithm = Algorithm {
167 pub static CHACHA20: Algorithm = Algorithm {