Lines Matching refs:cipher_suite
1 use super::cipher_suite::*;
27 …pub(crate) cipher_suite: Arc<Mutex<Option<Box<dyn CipherSuite + Send + Sync>>>>, // nil if a ciphe… field
76 cipher_suite: Arc::new(Mutex::new(None)), // nil if a cipher_suite hasn't been chosen in default()
139 let cipher_suite = self.cipher_suite.lock().await; in serialize() localVariable
140 match &*cipher_suite { in serialize()
141 Some(cipher_suite) => cipher_suite.id() as u16, in serialize()
188 self.cipher_suite = Arc::new(Mutex::new(Some(cipher_suite_for_id( in deserialize()
202 let mut cipher_suite = self.cipher_suite.lock().await; in init_cipher_suite() localVariable
203 if let Some(cipher_suite) = &mut *cipher_suite { in init_cipher_suite()
204 if cipher_suite.is_initialized() { in init_cipher_suite()
220 cipher_suite.init(&self.master_secret, &local_random, &remote_random, true) in init_cipher_suite()
222 cipher_suite.init(&self.master_secret, &remote_random, &local_random, false) in init_cipher_suite()
294 let cipher_suite = self.cipher_suite.lock().await; in export_keying_material() localVariable
295 if let Some(cipher_suite) = &*cipher_suite { in export_keying_material()
296 match prf_p_hash(&self.master_secret, &seed, length, cipher_suite.hash_func()) { in export_keying_material()