Lines Matching refs:keys
1078 p_dev_rec->ble.keys.local_counter++; in btm_ble_increment_sign_ctr()
1080 p_dev_rec->ble.keys.counter++; in btm_ble_increment_sign_ctr()
1083 p_dev_rec->ble.keys.local_counter, in btm_ble_increment_sign_ctr()
1084 p_dev_rec->ble.keys.counter); in btm_ble_increment_sign_ctr()
1134 if (p_dev_rec && p_dev_rec->ble.keys.div) in btm_get_local_div()
1137 *p_div = p_dev_rec->ble.keys.div; in btm_get_local_div()
1178 memcpy(p_rec->ble.keys.pltk, p_keys->penc_key.ltk, BT_OCTET16_LEN); in btm_sec_save_le_key()
1179 memcpy(p_rec->ble.keys.rand, p_keys->penc_key.rand, BT_OCTET8_LEN); in btm_sec_save_le_key()
1180 p_rec->ble.keys.sec_level = p_keys->penc_key.sec_level; in btm_sec_save_le_key()
1181 p_rec->ble.keys.ediv = p_keys->penc_key.ediv; in btm_sec_save_le_key()
1182 p_rec->ble.keys.key_size = p_keys->penc_key.key_size; in btm_sec_save_le_key()
1192 p_rec->ble.keys.sec_level); in btm_sec_save_le_key()
1198 p_rec->ble.keys.irk[i] = p_keys->pid_key.irk[i]; in btm_sec_save_le_key()
1213 memcpy(p_rec->ble.keys.pcsrk, p_keys->pcsrk_key.csrk, BT_OCTET16_LEN); in btm_sec_save_le_key()
1214 p_rec->ble.keys.srk_sec_level = p_keys->pcsrk_key.sec_level; in btm_sec_save_le_key()
1215 p_rec->ble.keys.counter = p_keys->pcsrk_key.counter; in btm_sec_save_le_key()
1226 p_rec->ble.keys.srk_sec_level, in btm_sec_save_le_key()
1227 p_rec->ble.keys.counter ); in btm_sec_save_le_key()
1231 memcpy(p_rec->ble.keys.lltk, p_keys->lenc_key.ltk, BT_OCTET16_LEN); in btm_sec_save_le_key()
1232 p_rec->ble.keys.div = p_keys->lenc_key.div; /* update DIV */ in btm_sec_save_le_key()
1233 p_rec->ble.keys.sec_level = p_keys->lenc_key.sec_level; in btm_sec_save_le_key()
1234 p_rec->ble.keys.key_size = p_keys->lenc_key.key_size; in btm_sec_save_le_key()
1239 p_rec->ble.keys.div, in btm_sec_save_le_key()
1240 p_rec->ble.keys.key_size, in btm_sec_save_le_key()
1241 p_rec->ble.keys.sec_level ); in btm_sec_save_le_key()
1245 memcpy (p_rec->ble.keys.lcsrk, p_keys->lcsrk_key.csrk, BT_OCTET16_LEN); in btm_sec_save_le_key()
1246 p_rec->ble.keys.div = p_keys->lcsrk_key.div; /* update DIV */ in btm_sec_save_le_key()
1247 p_rec->ble.keys.local_csrk_sec_level = p_keys->lcsrk_key.sec_level; in btm_sec_save_le_key()
1248 p_rec->ble.keys.local_counter = p_keys->lcsrk_key.counter; in btm_sec_save_le_key()
1252 p_rec->ble.keys.div, in btm_sec_save_le_key()
1253 p_rec->ble.keys.local_csrk_sec_level, in btm_sec_save_le_key()
1254 p_rec->ble.keys.local_counter ); in btm_sec_save_le_key()
1383 cur_sec_level = p_dev_rec->ble.keys.sec_level; in btm_ble_link_sec_check()
1556 if (btsnd_hcic_ble_start_enc(p_rec->ble_hci_handle, p_rec->ble.keys.rand, in btm_ble_start_encrypt()
1557 p_rec->ble.keys.ediv, p_rec->ble.keys.pltk)) in btm_ble_start_encrypt()
1602 p_dev_rec->enc_key_size = p_dev_rec->ble.keys.key_size; in btm_ble_link_encrypted()
1640 p_cb->key_size = p_rec->ble.keys.key_size; in btm_ble_ltk_request_reply()
1642 BTM_TRACE_ERROR("key size = %d", p_rec->ble.keys.key_size); in btm_ble_ltk_request_reply()
1650 btsnd_hcic_ble_ltk_req_reply(btm_cb.enc_handle, p_rec->ble.keys.lltk); in btm_ble_ltk_request_reply()
2177 UINT32_TO_STREAM(pp, p_rec->ble.keys.local_counter); in BTM_BleDataSignature()
2178 UINT32_TO_STREAM(p_mac, p_rec->ble.keys.local_counter); in BTM_BleDataSignature()
2180 if ((ret = aes_cipher_msg_auth_code(p_rec->ble.keys.lcsrk, p_buf, (UINT16)(len + 4), in BTM_BleDataSignature()
2222 else if (counter < p_rec->ble.keys.counter) in BTM_BleVerifySignature()
2233 p_rec->ble.keys.counter); in BTM_BleVerifySignature()
2235 if (aes_cipher_msg_auth_code(p_rec->ble.keys.pcsrk, p_orig, len, BTM_CMAC_TLEN_SIZE, p_mac)) in BTM_BleVerifySignature()
2295 *p_le_key_size = p_dev_rec->ble.keys.key_size; in BTM_GetLeSecurityState()