Lines Matching refs:Algorithm
59 pub enum Algorithm { enum
70 impl Algorithm { implementation
71 fn get_ring_aead(self) -> &'static aead::Algorithm { in get_ring_aead() argument
73 Algorithm::AES128_GCM => &aead::AES_128_GCM, in get_ring_aead()
74 Algorithm::AES256_GCM => &aead::AES_256_GCM, in get_ring_aead()
75 Algorithm::ChaCha20_Poly1305 => &aead::CHACHA20_POLY1305, in get_ring_aead()
79 fn get_ring_hp(self) -> &'static aead::quic::Algorithm { in get_ring_hp() argument
81 Algorithm::AES128_GCM => &aead::quic::AES_128, in get_ring_hp()
82 Algorithm::AES256_GCM => &aead::quic::AES_256, in get_ring_hp()
83 Algorithm::ChaCha20_Poly1305 => &aead::quic::CHACHA20, in get_ring_hp()
87 fn get_ring_digest(self) -> hkdf::Algorithm { in get_ring_digest() argument
89 Algorithm::AES128_GCM => hkdf::HKDF_SHA256, in get_ring_digest()
90 Algorithm::AES256_GCM => hkdf::HKDF_SHA384, in get_ring_digest()
91 Algorithm::ChaCha20_Poly1305 => hkdf::HKDF_SHA256, in get_ring_digest()
113 alg: Algorithm,
124 alg: Algorithm, key: &[u8], iv: &[u8], hp_key: &[u8], in new() argument
144 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Open> { in from_secret() argument
191 pub fn alg(&self) -> Algorithm { in alg() argument
197 alg: Algorithm,
208 alg: Algorithm, key: &[u8], iv: &[u8], hp_key: &[u8], in new() argument
228 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Seal> { in from_secret() argument
285 pub fn alg(&self) -> Algorithm { in alg() argument
295 let aead = Algorithm::AES128_GCM; in derive_initial_key_material()
370 aead: Algorithm, secret: &[u8], out: &mut [u8], in derive_hdr_key() argument
385 aead: Algorithm, secret: &[u8], out: &mut [u8], in derive_pkt_key() argument
400 aead: Algorithm, secret: &[u8], out: &mut [u8], in derive_pkt_iv() argument
469 let aead = Algorithm::AES128_GCM; in derive_initial_secrets()
548 let aead = Algorithm::AES128_GCM; in derive_initial_secrets_old()
627 let aead = Algorithm::ChaCha20_Poly1305; in derive_chacha20_secrets()