MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / _is_end_to_end_encrypted

Method _is_end_to_end_encrypted

chirpstack/src/uplink/data.rs:1403–1420  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1401 }
1402
1403 fn _is_end_to_end_encrypted(&self) -> bool {
1404 let ds = match self.device.as_ref().unwrap().get_device_session() {
1405 Ok(v) => v,
1406 Err(_) => return false,
1407 };
1408
1409 if !ds.js_session_key_id.is_empty() {
1410 return true;
1411 }
1412
1413 if let Some(app_s_key) = &ds.app_s_key
1414 && !app_s_key.kek_label.is_empty()
1415 {
1416 return true;
1417 }
1418
1419 false
1420 }
1421
1422 fn _is_applayer(&self) -> bool {
1423 let dp = self.device_profile.as_ref().unwrap();

Callers 2

decrypt_frm_payloadMethod · 0.80
send_uplink_eventMethod · 0.80

Calls 3

get_device_sessionMethod · 0.80
unwrapMethod · 0.80
as_refMethod · 0.80

Tested by

no test coverage detected