• Home
  • Raw
  • Download

Lines Matching refs:ble

120     p_dev_rec->ble.ble_addr_type = addr_type;  in BTM_SecAddBleDevice()
128 p_info->results.ble_addr_type = p_dev_rec->ble.ble_addr_type ; in BTM_SecAddBleDevice()
534 p_dev_rec->ble.ble_addr_type = p_inq_info->results.ble_addr_type; in BTM_ReadDevInfo()
537 *p_addr_type = p_dev_rec->ble.ble_addr_type; in BTM_ReadDevInfo()
665 p_dev_rec->ble.keys.local_counter++; in btm_ble_increment_sign_ctr()
667 p_dev_rec->ble.keys.counter++; in btm_ble_increment_sign_ctr()
670 p_dev_rec->ble.keys.local_counter, in btm_ble_increment_sign_ctr()
671 p_dev_rec->ble.keys.counter); in btm_ble_increment_sign_ctr()
693 *p_key_types = p_dev_rec->ble.key_type; in btm_ble_get_enc_key_type()
720 if (p_dev_rec && p_dev_rec->ble.keys.div) in btm_get_local_div()
723 *p_div = p_dev_rec->ble.keys.div; in btm_get_local_div()
761 memcpy(p_rec->ble.keys.ltk, p_keys->penc_key.ltk, BT_OCTET16_LEN); in btm_sec_save_le_key()
762 memcpy(p_rec->ble.keys.rand, p_keys->penc_key.rand, BT_OCTET8_LEN); in btm_sec_save_le_key()
763 p_rec->ble.keys.sec_level = p_keys->penc_key.sec_level; in btm_sec_save_le_key()
764 p_rec->ble.keys.ediv = p_keys->penc_key.ediv; in btm_sec_save_le_key()
765 p_rec->ble.keys.key_size = p_keys->penc_key.key_size; in btm_sec_save_le_key()
766 p_rec->ble.key_type |= BTM_LE_KEY_PENC; in btm_sec_save_le_key()
773 p_rec->ble.key_type, in btm_sec_save_le_key()
775 p_rec->ble.keys.sec_level); in btm_sec_save_le_key()
779 memcpy(p_rec->ble.keys.irk, p_keys->pid_key, BT_OCTET16_LEN); in btm_sec_save_le_key()
780 p_rec->ble.key_type |= BTM_LE_KEY_PID; in btm_sec_save_le_key()
781 … BTM_TRACE_DEBUG1("BTM_LE_KEY_PID key_type=0x%x save peer IRK", p_rec->ble.key_type); in btm_sec_save_le_key()
785 memcpy(p_rec->ble.keys.csrk, p_keys->pcsrk_key.csrk, BT_OCTET16_LEN); in btm_sec_save_le_key()
786 p_rec->ble.keys.srk_sec_level = p_keys->pcsrk_key.sec_level; in btm_sec_save_le_key()
787 p_rec->ble.keys.counter = p_keys->pcsrk_key.counter; in btm_sec_save_le_key()
788 p_rec->ble.key_type |= BTM_LE_KEY_PCSRK; in btm_sec_save_le_key()
796 p_rec->ble.key_type, in btm_sec_save_le_key()
798 p_rec->ble.keys.srk_sec_level, in btm_sec_save_le_key()
799 p_rec->ble.keys.counter ); in btm_sec_save_le_key()
803 p_rec->ble.keys.div = p_keys->lenc_key.div; /* update DIV */ in btm_sec_save_le_key()
804 p_rec->ble.keys.sec_level = p_keys->lenc_key.sec_level; in btm_sec_save_le_key()
805 p_rec->ble.keys.key_size = p_keys->lenc_key.key_size; in btm_sec_save_le_key()
806 p_rec->ble.key_type |= BTM_LE_KEY_LENC; in btm_sec_save_le_key()
809 p_rec->ble.key_type, in btm_sec_save_le_key()
810 p_rec->ble.keys.div, in btm_sec_save_le_key()
811 p_rec->ble.keys.key_size, in btm_sec_save_le_key()
812 p_rec->ble.keys.sec_level ); in btm_sec_save_le_key()
816 p_rec->ble.keys.div = p_keys->lcsrk_key.div; /* update DIV */ in btm_sec_save_le_key()
817 p_rec->ble.keys.local_csrk_sec_level = p_keys->lcsrk_key.sec_level; in btm_sec_save_le_key()
818 p_rec->ble.keys.local_counter = p_keys->lcsrk_key.counter; in btm_sec_save_le_key()
819 p_rec->ble.key_type |= BTM_LE_KEY_LCSRK; in btm_sec_save_le_key()
821 p_rec->ble.key_type, in btm_sec_save_le_key()
822 p_rec->ble.keys.div, in btm_sec_save_le_key()
823 p_rec->ble.keys.local_csrk_sec_level, in btm_sec_save_le_key()
824 p_rec->ble.keys.local_counter ); in btm_sec_save_le_key()
949 if (p_dev_rec->ble.key_type & BTM_LE_KEY_PENC) in btm_ble_link_sec_check()
950 cur_sec_level = p_dev_rec->ble.keys.sec_level; in btm_ble_link_sec_check()
1107 if (!btsnd_hcic_ble_start_enc(p_rec->hci_handle, p_rec->ble.keys.rand, in btm_ble_start_encrypt()
1108 p_rec->ble.keys.ediv, p_rec->ble.keys.ltk)) in btm_ble_start_encrypt()
1136 p_dev_rec->enc_key_size = p_dev_rec->ble.keys.key_size; in btm_ble_link_encrypted()
1189 p_dev_rec->ble.keys.div == div ) in btm_enc_proc_slave_y()
1231 p_cb->key_size = p_rec->ble.keys.key_size; in btm_ble_ltk_request_reply()
1233 BTM_TRACE_ERROR1("key size = %d", p_rec->ble.keys.key_size); in btm_ble_ltk_request_reply()
1470 UINT32_TO_STREAM(pp, p_rec->ble.keys.local_counter); in BTM_BleDataSignature()
1473 UINT32_TO_STREAM(pp, p_rec->ble.keys.local_counter); in BTM_BleDataSignature()
1502 UINT32_TO_STREAM(p_mac, p_rec->ble.keys.local_counter); in BTM_BleDataSignature()
1505 UINT32_TO_STREAM(p_mac, p_rec->ble.keys.local_counter); in BTM_BleDataSignature()
1558 if (p_rec == NULL || (p_rec && !(p_rec->ble.key_type & BTM_LE_KEY_PCSRK))) in BTM_BleVerifySignature()
1562 else if (counter < p_rec->ble.keys.counter) in BTM_BleVerifySignature()
1572 …_DEBUG2 ("BTM_BleVerifySignature rcv_cnt=%d >= expected_cnt=%d", counter, p_rec->ble.keys.counter); in BTM_BleVerifySignature()
1574 if (AES_CMAC(p_rec->ble.keys.csrk, p_orig, len, BTM_CMAC_TLEN_SIZE, p_mac)) in BTM_BleVerifySignature()