Home
last modified time | relevance | path

Searched refs:cipher_suite (Results 1 – 23 of 23) sorted by relevance

/webrtc/dtls/src/
H A Dstate.rs1 use super::cipher_suite::*;
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()
294 let cipher_suite = self.cipher_suite.lock().await; in export_keying_material() localVariable
[all …]
H A Dlib.rs7 pub mod cipher_suite; module
29 use cipher_suite::*;
H A Dconfig.rs1 use crate::cipher_suite::*;
H A Dhandshaker.rs1 use crate::cipher_suite::*;
/webrtc/dtls/src/handshake/
H A Dhandshake_message_server_hello.rs6 use crate::cipher_suite::*;
27 pub(crate) cipher_suite: CipherSuiteId, field
38 && self.cipher_suite == other.cipher_suite in eq()
46 format!("cipher_suites: {:?}", self.cipher_suite), in fmt()
85 writer.write_u16::<BigEndian>(self.cipher_suite as u16)?; in marshal()
113 let cipher_suite: CipherSuiteId = reader.read_u16::<BigEndian>()?.into(); in unmarshal() localVariable
145 cipher_suite, in unmarshal()
H A Dhandshake_message_client_hello.rs6 use crate::cipher_suite::*;
58 for cipher_suite in &self.cipher_suites { in fmt()
59 cipher_suites_str += &cipher_suite.to_string(); in fmt()
119 for cipher_suite in &self.cipher_suites { in marshal()
120 writer.write_u16::<BigEndian>(*cipher_suite as u16)?; in marshal()
H A Dhandshake_cache.rs4 use crate::cipher_suite::*;
/webrtc/dtls/src/flight/
H A Dflight5.rs141 let cipher_suite = state.cipher_suite.lock().await; in parse() localVariable
142 if let Some(cipher_suite) = &*cipher_suite { in parse()
563 let cipher_suite = state.cipher_suite.lock().await; in generate() localVariable
564 if let Some(cipher_suite) = &*cipher_suite { in generate()
608 let mut cipher_suite = state.cipher_suite.lock().await; in initalize_cipher_suite() localVariable
610 if let Some(cipher_suite) = &*cipher_suite { in initalize_cipher_suite()
611 if cipher_suite.is_initialized() { in initalize_cipher_suite()
627 if let Some(cipher_suite) = &*cipher_suite { in initalize_cipher_suite()
652 cipher_suite.hash_func(), in initalize_cipher_suite()
670 cipher_suite.hash_func(), in initalize_cipher_suite()
[all …]
H A Dflight4.rs3 use crate::cipher_suite::*;
276 let mut cipher_suite = state.cipher_suite.lock().await; in parse() localVariable
277 if let Some(cipher_suite) = &mut *cipher_suite { in parse()
278 if !cipher_suite.is_initialized() { in parse()
345 cipher_suite.hash_func(), in parse()
363 cipher_suite.hash_func(), in parse()
378 if let Err(err) = cipher_suite.init( in parse()
540 cipher_suite: { in generate()
541 let cipher_suite = state.cipher_suite.lock().await; in generate() localVariable
542 if let Some(cipher_suite) = &*cipher_suite { in generate()
[all …]
H A Dflight3.rs21 use crate::cipher_suite::cipher_suite_for_id;
245 if find_matching_cipher_suite(&[h.cipher_suite], &cfg.local_cipher_suites).is_err() { in parse()
249 h.cipher_suite in parse()
261 let cipher_suite = match cipher_suite_for_id(h.cipher_suite) { in parse() localVariable
262 Ok(cipher_suite) => cipher_suite, in parse()
267 h.cipher_suite in parse()
283 cipher_suite.to_string() in parse()
286 let mut cs = state.cipher_suite.lock().await; in parse()
287 *cs = Some(cipher_suite); in parse()
H A Dflight6.rs152 let cipher_suite = state.cipher_suite.lock().await; in generate() localVariable
153 if let Some(cipher_suite) = &*cipher_suite { in generate()
157 cipher_suite.hash_func(), in generate()
H A Dflight0.rs82 if let Ok(cipher_suite) = cipher_suite_for_id(id) { in parse()
86 cipher_suite.to_string() in parse()
88 let mut cs = state.cipher_suite.lock().await; in parse()
89 *cs = Some(cipher_suite); in parse()
/webrtc/dtls/src/conn/
H A Dmod.rs6 use crate::cipher_suite::*;
623 let cipher_suite = cipher_suite.lock().await; in process_packet() localVariable
624 if let Some(cipher_suite) = &*cipher_suite { in process_packet()
680 let cipher_suite = cipher_suite.lock().await; in process_handshake_packet() localVariable
681 if let Some(cipher_suite) = &*cipher_suite { in process_handshake_packet()
945 let cipher_suite = ctx.cipher_suite.lock().await; in handle_incoming_packet() localVariable
948 } else if let Some(cipher_suite) = &*cipher_suite { in handle_incoming_packet()
965 let cipher_suite = ctx.cipher_suite.lock().await; in handle_incoming_packet() localVariable
966 if let Some(cipher_suite) = &*cipher_suite { in handle_incoming_packet()
1060 let cipher_suite = ctx.cipher_suite.lock().await; in handle_incoming_packet() localVariable
[all …]
H A Dconn_test.rs2 use crate::cipher_suite::cipher_suite_aes_128_gcm_sha256::*;
3 use crate::cipher_suite::*;
417 cipher_suite: Arc::new(Mutex::new(Some(Box::new(CipherSuiteAes128GcmSha256::new( in test_export_keying_material()
1614 let cipher_suite = client.state.cipher_suite.lock().await; in test_cipher_suite_configuration() localVariable
1615 assert!(cipher_suite.is_some(), "{name} expected some, but got none"); in test_cipher_suite_configuration()
1616 if let Some(cs) = &*cipher_suite { in test_cipher_suite_configuration()
2120 cipher_suite: CipherSuiteId::Tls_Ecdhe_Ecdsa_With_Aes_128_Gcm_Sha256, in test_protocol_version_validation()
/webrtc/dtls/src/cipher_suite/
H A Dcipher_suite_tls_ecdhe_ecdsa_with_aes_128_ccm8.rs2 use crate::cipher_suite::cipher_suite_aes_128_ccm::CipherSuiteAes128Ccm;
H A Dcipher_suite_tls_psk_with_aes_128_ccm.rs2 use crate::cipher_suite::cipher_suite_aes_128_ccm::CipherSuiteAes128Ccm;
H A Dcipher_suite_tls_psk_with_aes_128_ccm8.rs2 use crate::cipher_suite::cipher_suite_aes_128_ccm::CipherSuiteAes128Ccm;
H A Dcipher_suite_tls_ecdhe_ecdsa_with_aes_128_ccm.rs2 use crate::cipher_suite::cipher_suite_aes_128_ccm::CipherSuiteAes128Ccm;
/webrtc/dtls/src/handshake/handshake_message_server_hello/
H A Dhandshake_message_server_hello_test.rs33 cipher_suite: CipherSuiteId::Tls_Ecdhe_Ecdsa_With_Aes_128_Gcm_Sha256, in test_handshake_message_server_hello()
/webrtc/dtls/src/prf/
H A Dprf_test.rs2 use crate::cipher_suite::CipherSuiteHash;
H A Dmod.rs15 use crate::cipher_suite::CipherSuiteHash;
/webrtc/dtls/examples/listen/psk/
H A Dlisten_psk.rs5 use webrtc_dtls::cipher_suite::CipherSuiteId;
/webrtc/dtls/examples/dial/psk/
H A Ddial_psk.rs6 use webrtc_dtls::cipher_suite::CipherSuiteId;