/system/bt/stack/crypto_toolbox/ |
D | crypto_toolbox.cc | 77 uint8_t* a2, Octet16* mac_key, Octet16* ltk) { in f5() argument 94 *ltk = calculate_mac_key_or_ltk(t, 1, key_id, n1, n2, a1, a2, length); in f5() 97 DVLOG(2) << "ltk=" << HexEncode(ltk->data(), ltk->size()); in f5() 153 Octet16 ltk_to_link_key(const Octet16& ltk, bool use_h7) { in ltk_to_link_key() argument 158 ilk = h7(salt, ltk); in ltk_to_link_key() 162 ilk = h6(ltk, keyID_tmp1); in ltk_to_link_key()
|
D | crypto_toolbox.h | 28 uint8_t* a2, Octet16* mac_key, Octet16* ltk); 34 extern Octet16 ltk_to_link_key(const Octet16& ltk, bool use_h7);
|
/system/bt/stack/smp/ |
D | crypto_toolbox.h | 31 Octet16* ltk); 37 extern Octet16 smp_calculate_ltk_to_link_key(const Octet16& ltk, bool use_h7);
|
D | smp_keys.cc | 181 output = p_cb->ltk; in smp_generate_stk() 531 Octet16 ltk = aes_128(er, (uint8_t*)&p_cb->div, sizeof(uint16_t)); in smp_generate_ltk_cont() local 533 smp_mask_enc_key(p_cb->loc_enc_size, <k); in smp_generate_ltk_cont() 534 p_cb->ltk = ltk; in smp_generate_ltk_cont() 966 crypto_toolbox::ltk_to_link_key(p_cb->ltk, p_cb->key_derivation_h7_used); in smp_calculate_link_key_from_long_term_key() 1029 p_cb->ltk = crypto_toolbox::link_key_to_ltk(rev_link_key, in smp_calculate_long_term_key_from_link_key()
|
D | smp_utils.cc | 538 ARRAY_TO_STREAM(p, p_cb->ltk, OCTET16_LEN); in smp_build_encrypt_info_cmd() 1477 lle_key.lenc_key.ltk = p_cb->ltk; in smp_save_secure_connections_long_term_key() 1486 ple_key.penc_key.ltk = p_cb->ltk; in smp_save_secure_connections_long_term_key() 1515 crypto_toolbox::f5(p_cb->dhkey, na, nb, a, b, &p_cb->mac_key, &p_cb->ltk); in smp_calculate_f5_mackey_and_long_term_key()
|
D | smp_act.cc | 356 le_key.lenc_key.ltk = p_cb->ltk; in smp_send_enc_info() 945 STREAM_TO_ARRAY(p_cb->ltk.data(), p, OCTET16_LEN); in smp_proc_enc_info() 970 le_key.penc_key.ltk = p_cb->ltk; in smp_proc_master_id()
|
D | smp_int.h | 316 Octet16 ltk; member
|
/system/bt/stack/test/ |
D | crypto_toolbox_test.cc | 209 Octet16 mac_key, ltk; in TEST() local 210 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, <k); in TEST() 213 EXPECT_EQ(ltk, expected_ltk); in TEST() 338 extern Octet16 smp_calculate_ltk_to_link_key(const Octet16& ltk, bool use_h7); 381 Octet16 ltk = link_key_to_ltk(link_key, true); in TEST() local 382 EXPECT_EQ(expected_ltk, ltk); in TEST() 396 Octet16 ltk = link_key_to_ltk(link_key, false); in TEST() local 397 EXPECT_EQ(expected_ltk, ltk); in TEST()
|
/system/bt/stack/hcic/ |
D | hciblecmds.cc | 394 uint16_t ediv, const Octet16& ltk) { in btsnd_hcic_ble_start_enc() argument 407 ARRAY_TO_STREAM(pp, ltk.data(), HCIC_BLE_ENCRYT_KEY_SIZE); in btsnd_hcic_ble_start_enc() 412 void btsnd_hcic_ble_ltk_req_reply(uint16_t handle, const Octet16& ltk) { in btsnd_hcic_ble_ltk_req_reply() argument 423 ARRAY_TO_STREAM(pp, ltk.data(), HCIC_BLE_ENCRYT_KEY_SIZE); in btsnd_hcic_ble_ltk_req_reply()
|
/system/bt/stack/include/ |
D | hcimsgs.h | 792 uint16_t ediv, const Octet16& ltk); 794 extern void btsnd_hcic_ble_ltk_req_reply(uint16_t handle, const Octet16& ltk);
|
D | bt_types.h | 583 inline bool is_sample_ltk(const Octet16& ltk) { in is_sample_ltk() argument 584 return ltk == SAMPLE_LTK; in is_sample_ltk()
|
D | btm_api_types.h | 1634 Octet16 ltk; member 1650 Octet16 ltk; member
|
/system/bt/stack/btm/ |
D | btm_ble.cc | 1278 p_rec->ble.keys.pltk = p_keys->penc_key.ltk; in btm_sec_save_le_key() 1330 p_rec->ble.keys.lltk = p_keys->lenc_key.ltk; in btm_sec_save_le_key()
|
/system/bt/btif/src/ |
D | btif_storage.cc | 894 if (is_sample_ltk(key.penc_key.ltk)) { in remove_devices_with_sample_ltk()
|