Home
last modified time | relevance | path

Searched refs:psk (Results 1 – 10 of 10) sorted by relevance

/webrtc/dtls/src/
H A Dconfig.rs46 pub psk: Option<PskCallback>, field
114 psk: None, in default()
158 if is_client && config.psk.is_some() && config.psk_identity_hint.is_none() { in validate_config()
162 if !is_client && config.psk.is_none() && config.certificates.is_empty() { in validate_config()
166 if !config.certificates.is_empty() && config.psk.is_some() { in validate_config()
170 if config.psk_identity_hint.is_some() && config.psk.is_none() { in validate_config()
184 config.psk.is_none(), in validate_config()
185 config.psk.is_some(), in validate_config()
/webrtc/dtls/src/cipher_suite/
H A Dcipher_suite_aes_128_ccm.rs11 psk: bool, field
23 psk: bool, in new()
30 psk, in new()
54 self.psk in is_psk()
/webrtc/dtls/
H A DCargo.toml60 path = "examples/dial/psk/dial_psk.rs"
75 path = "examples/listen/psk/listen_psk.rs"
/webrtc/dtls/src/flight/
H A Dflight3.rs420 let psk = match local_psk_callback(&h.identity_hint) { in handle_server_key_exchange() localVariable
421 Ok(psk) => psk, in handle_server_key_exchange()
434 state.pre_master_secret = prf_psk_pre_master_secret(&psk); in handle_server_key_exchange()
H A Dflight4.rs292 let psk = match local_psk_callback(&client_key_exchange.identity_hint) { in parse() localVariable
293 Ok(psk) => psk, in parse()
306 pre_master_secret = prf_psk_pre_master_secret(&psk); in parse()
/webrtc/dtls/src/prf/
H A Dmod.rs59 pub(crate) fn prf_psk_pre_master_secret(psk: &[u8]) -> Vec<u8> { in prf_psk_pre_master_secret()
60 let psk_len = psk.len(); in prf_psk_pre_master_secret()
64 out.extend_from_slice(psk); in prf_psk_pre_master_secret()
/webrtc/dtls/examples/listen/psk/
H A Dlisten_psk.rs59 psk: Some(Arc::new(|hint: &[u8]| -> Result<Vec<u8>, Error> { in main()
/webrtc/dtls/examples/dial/psk/
H A Ddial_psk.rs63 psk: Some(Arc::new(|hint: &[u8]| -> Result<Vec<u8>, Error> { in main()
/webrtc/dtls/src/conn/
H A Dconn_test.rs535 psk: Some(Arc::new(psk_callback_client)), in test_psk()
546 psk: Some(Arc::new(psk_callback_server)), in test_psk()
596 psk: Some(Arc::new(psk_callback_hint_fail)), in test_psk_hint_fail()
607 psk: Some(Arc::new(psk_callback_hint_fail)), in test_psk_hint_fail()
1715 psk: if client_psk { in test_psk_configuration()
1729 psk: if server_psk { in test_psk_configuration()
H A Dmod.rs154 config.psk.is_none(), in new()
155 config.psk.is_some(), in new()
203 local_psk_callback: config.psk.take(), in new()