Searched refs:sec_rec (Results 1 – 14 of 14) sorted by relevance
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_sec.cc | 203 return p_dev_rec->sec_rec.sec_flags & BTM_SEC_AUTHENTICATED; in btm_dev_authenticated() 216 return p_dev_rec->sec_rec.sec_flags & BTM_SEC_ENCRYPTED; in btm_dev_encrypted() 230 return p_dev_rec->sec_rec.sec_flags & BTM_SEC_16_DIGIT_PIN_AUTHED; in btm_dev_16_digit_authenticated() 237 if (p_dev_rec->sec_rec.sec_state == *state) return false; in is_sec_state_equal() 379 p_dev_rec->sec_rec.is_bond_type_temporary(); in access_secure_service_from_temp_bond() 642 p_dev_rec->sec_rec.security_required = BTM_SEC_NONE; in BTM_PINCodeReply() 647 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LINK_KEY_AUTHED; in BTM_PINCodeReply() 648 p_dev_rec->sec_rec.pin_code_length = pin_len; in BTM_PINCodeReply() 650 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED; in BTM_PINCodeReply() 685 p_dev_rec->sec_rec.sec_flags &= ~BTM_SEC_LINK_KEY_AUTHED; in BTM_PINCodeReply() [all …]
|
D | btm_ble_sec.cc | 289 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BlePasskeyReply() 321 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BleConfirmReply() 354 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BleOobDataReply() 384 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BleSecureConnectionOobDataReply() 833 *p_key_types = p_dev_rec->sec_rec.ble_keys.key_type; in btm_ble_get_enc_key_type() 854 if (p_dev_rec && p_dev_rec->sec_rec.ble_keys.div) { in btm_get_local_div() 856 *p_div = p_dev_rec->sec_rec.ble_keys.div; in btm_get_local_div() 891 p_rec->sec_rec.ble_keys.pltk = p_keys->penc_key.ltk; in btm_sec_save_le_key() 892 memcpy(p_rec->sec_rec.ble_keys.rand, p_keys->penc_key.rand, in btm_sec_save_le_key() 894 p_rec->sec_rec.ble_keys.sec_level = p_keys->penc_key.sec_level; in btm_sec_save_le_key() [all …]
|
D | btm_dev.cc | 65 p_dev_rec->sec_rec.link_key.fill(0); in wipe_secrets_and_remove() 66 memset(&p_dev_rec->sec_rec.ble_keys, 0, sizeof(tBTM_SEC_BLE_KEYS)); in wipe_secrets_and_remove() 116 p_dev_rec->sec_rec.bond_type = BOND_TYPE_UNKNOWN; in BTM_SecAddDevice() 123 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LINK_KEY_KNOWN; in BTM_SecAddDevice() 124 p_dev_rec->sec_rec.link_key = link_key; in BTM_SecAddDevice() 125 p_dev_rec->sec_rec.link_key_type = key_type; in BTM_SecAddDevice() 126 p_dev_rec->sec_rec.pin_code_length = pin_length; in BTM_SecAddDevice() 129 p_dev_rec->sec_rec.bond_type = BOND_TYPE_PERSISTENT; in BTM_SecAddDevice() 136 p_dev_rec->sec_rec.sec_flags |= in BTM_SecAddDevice() 140 p_dev_rec->sec_rec.rmt_io_caps = BTM_IO_CAP_OUT; in BTM_SecAddDevice() [all …]
|
D | btm_sec_cb.cc | 124 return &p_dev_rec->sec_rec; in getSecRec() 131 tBTM_SEC_REC* sec_rec = getSecRec(bd_addr); in IsDeviceEncrypted() local 132 if (sec_rec) { in IsDeviceEncrypted() 134 return sec_rec->is_device_encrypted(); in IsDeviceEncrypted() 136 return sec_rec->is_le_device_encrypted(); in IsDeviceEncrypted() 148 tBTM_SEC_REC* sec_rec = getSecRec(bd_addr); in IsLinkKeyAuthenticated() local 149 if (sec_rec) { in IsLinkKeyAuthenticated() 151 return sec_rec->is_link_key_authenticated(); in IsLinkKeyAuthenticated() 153 return sec_rec->is_le_link_key_authenticated(); in IsLinkKeyAuthenticated() 165 tBTM_SEC_REC* sec_rec = getSecRec(bd_addr); in IsDeviceAuthenticated() local [all …]
|
D | btm_ble_addr.cc | 107 (p_dev_rec->sec_rec.ble_keys.key_type & BTM_LE_KEY_PID)) { in btm_ble_addr_resolvable() 108 if (rpa_matches_irk(rpa, p_dev_rec->sec_rec.ble_keys.irk)) { in btm_ble_addr_resolvable() 124 !(p_dev_rec->sec_rec.ble_keys.key_type & BTM_LE_KEY_PID)) in btm_ble_match_random_bda() 128 if (rpa_matches_irk(*random_bda, p_dev_rec->sec_rec.ble_keys.irk)) { in btm_ble_match_random_bda()
|
D | btm_ble_privacy.cc | 539 ARRAY_TO_STREAM(p, p_dev_rec->sec_rec.ble_keys.irk, OCTET16_LEN); in btm_ble_ble_unsupported_resolving_list_load_dev() 552 return dev_rec.sec_rec.ble_keys.key_type & BTM_LE_KEY_PID; in is_peer_identity_key_valid() 584 const Octet16& peer_irk = dev_rec.sec_rec.ble_keys.irk; in btm_ble_resolving_list_load_dev()
|
D | security_device_record.h | 416 PRIVATE_NAME(sec_bd_name), sec_rec.ToString().c_str()); in ToString() 458 tBTM_SEC_REC sec_rec; variable
|
D | btm_devctl.cc | 164 p_dev_rec->sec_rec.sec_state = BTM_SEC_STATE_IDLE; in set_sec_state_idle()
|
/packages/modules/Bluetooth/system/stack/test/btm/ |
D | stack_btm_sec_test.cc | 145 ASSERT_EQ(BTM_SEC_IN_USE, device_record->sec_rec.sec_flags); in TEST_F() 153 device_record->sec_rec.sec_flags); in TEST_F() 158 device_record->sec_rec.sec_flags); in TEST_F() 159 device_record->sec_rec.sec_flags = BTM_SEC_IN_USE; in TEST_F() 164 device_record->sec_rec.sec_flags); in TEST_F() 168 ASSERT_EQ(BTM_SEC_IN_USE, device_record->sec_rec.sec_flags); in TEST_F() 169 device_record->sec_rec.sec_flags = BTM_SEC_IN_USE; in TEST_F() 277 ASSERT_EQ(BTM_SEC_IN_USE, device_record->sec_rec.sec_flags); in TEST_F()
|
/packages/modules/Bluetooth/system/stack/test/gatt/ |
D | gatt_api_test.cc | 33 dev->sec_rec.sec_flags |= BTM_SEC_LE_LINK_KEY_KNOWN; in make_bonded_ble_device() 36 dev->sec_rec.ble_keys.key_type = in make_bonded_ble_device() 44 dev->sec_rec.sec_flags |= BTM_SEC_LINK_KEY_KNOWN; in make_bonded_dual_device()
|
/packages/modules/Bluetooth/system/stack/smp/ |
D | smp_l2c.cc | 293 (p_dev_rec && p_dev_rec->sec_rec.is_link_key_known()) && in smp_br_connect_callback()
|
D | smp_act.cc | 838 if (!p_dev_rec->sec_rec.new_encryption_key_is_p256 && in smp_br_process_pairing_command() 880 p_dev_rec->sec_rec.new_encryption_key_is_p256 = false; in smp_br_process_pairing_command() 1360 if (!(p_dev_rec->sec_rec.sec_flags & BTM_SEC_LE_LINK_KEY_AUTHED) && in smp_key_distribution() 1361 (p_dev_rec->sec_rec.sec_flags & BTM_SEC_LINK_KEY_AUTHED)) { in smp_key_distribution()
|
D | smp_keys.cc | 1046 std::reverse_copy(p_dev_rec->sec_rec.link_key.begin(), in smp_calculate_long_term_key_from_link_key() 1047 p_dev_rec->sec_rec.link_key.end(), rev_link_key.begin()); in smp_calculate_long_term_key_from_link_key()
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_api.cc | 1701 if (p_dev_rec->sec_rec.is_link_key_known()) { in gatt_load_bonded() 1705 if (p_dev_rec->sec_rec.is_le_link_key_known()) { in gatt_load_bonded()
|