/packages/modules/Bluetooth/system/gd/security/ |
D | pairing_handler_le_secure_connections.cc | 165 crypto_toolbox::f5((uint8_t*)dhkey.data(), Na, Nb, a, b, &mac_key, <k); in DoSecureConnectionsStage2() 185 Octet16 Ea = crypto_toolbox::f6(mac_key, Na, Nb, rb, iocapA.data(), a, b); in DoSecureConnectionsStage2() 187 Octet16 Eb = crypto_toolbox::f6(mac_key, Nb, Na, ra, iocapB.data(), b, a); in DoSecureConnectionsStage2() 243 remoteC2 = crypto_toolbox::f4((uint8_t*)Pkb.x.data(), (uint8_t*)Pkb.x.data(), remoteR, 0); in SecureConnectionsOutOfBand() 245 remoteC2 = crypto_toolbox::f4((uint8_t*)Pka.x.data(), (uint8_t*)Pka.x.data(), remoteR, 0); in SecureConnectionsOutOfBand() 332 Cai = crypto_toolbox::f4((uint8_t*)PKa.x.data(), (uint8_t*)PKb.x.data(), Nai, ri); in SecureConnectionsPasskeyEntry() 355 Octet16 Cbi2 = crypto_toolbox::f4((uint8_t*)PKb.x.data(), (uint8_t*)PKa.x.data(), Nbi, ri); in SecureConnectionsPasskeyEntry() 364 Cbi = crypto_toolbox::f4((uint8_t*)PKb.x.data(), (uint8_t*)PKa.x.data(), Nbi, ri); in SecureConnectionsPasskeyEntry() 384 Octet16 Cai2 = crypto_toolbox::f4((uint8_t*)PKa.x.data(), (uint8_t*)PKb.x.data(), Nai, ri); in SecureConnectionsPasskeyEntry() 421 …uint32_t number_to_display = crypto_toolbox::g2((uint8_t*)PKa.x.data(), (uint8_t*)PKb.x.data(), Na… in SecureConnectionsNumericComparison() [all …]
|
D | pairing_handler_le_legacy.cc | 143 Octet16 mconfirm = crypto_toolbox::c1( in DoLegacyStage2() 178 Octet16 sconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2() 200 Octet16 sconfirm = crypto_toolbox::c1( in DoLegacyStage2() 227 Octet16 mconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2() 250 return crypto_toolbox::s1(tk, mrand, srand); in DoLegacyStage2()
|
D | pairing_handler_le_unittest.cc | 226 …Octet16 Cb = crypto_toolbox::f4((uint8_t*)public_key.x.data(), (uint8_t*)my_public_key.x.data(), N… in TEST_F() 249 crypto_toolbox::f5(dhkey.data(), Na, Nb, a, b, &mac_key, <k); in TEST_F() 261 Octet16 Ea = crypto_toolbox::f6(mac_key, Na, Nb, rb, iocapA.data(), a, b); in TEST_F() 262 Octet16 Eb = crypto_toolbox::f6(mac_key, Nb, Na, ra, iocapB.data(), b, a); in TEST_F()
|
D | pairing_handler_le.cc | 36 data.c = crypto_toolbox::f4(data.public_key.x.data(), data.public_key.x.data(), data.r, 0); in GenerateOobData() 208 Octet16 link_key = crypto_toolbox::ltk_to_link_key(*(distributed_keys.remote_ltk), use_h7); in PairingMain()
|
/packages/modules/Bluetooth/system/stack/smp/ |
D | smp_keys.cc | 52 using crypto_toolbox::aes_128; 794 p_cb->commitment = crypto_toolbox::f4( in smp_calculate_local_commitment() 802 crypto_toolbox::f4(p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, in smp_calculate_local_commitment() 808 p_cb->commitment = crypto_toolbox::f4( in smp_calculate_local_commitment() 831 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment() 837 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment() 841 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->peer_publ_key.x, in smp_calculate_peer_commitment() 868 p_cb->number_to_display = crypto_toolbox::g2( in smp_calculate_numeric_comparison_display_number() 871 p_cb->number_to_display = crypto_toolbox::g2( in smp_calculate_numeric_comparison_display_number() 917 p_cb->dhkey_check = crypto_toolbox::f6(p_cb->mac_key, p_cb->rand, p_cb->rrand, in smp_calculate_local_dhkey_check() [all …]
|
D | smp_utils.cc | 1599 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 | 2035 crypto_toolbox::f4(p_cb->sc_oob_data.loc_oob_data.publ_key_used.x, in smp_set_local_oob_random_commitment()
|
/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | BUILD.gn | 16 static_library("crypto_toolbox") { 20 "crypto_toolbox.cc",
|
D | Android.bp | 38 "crypto_toolbox.cc",
|
D | crypto_toolbox.h | 25 namespace crypto_toolbox {
|
D | aes_cmac.cc | 37 namespace crypto_toolbox { namespace
|
D | crypto_toolbox.cc | 30 namespace crypto_toolbox { namespace
|
D | crypto_toolbox_test.cc | 29 namespace crypto_toolbox { namespace
|
/packages/modules/Bluetooth/system/stack/ |
D | BUILD.gn | 221 "//bt/system/gd/crypto_toolbox:crypto_toolbox", 348 "//bt/system/gd:crypto_toolbox",
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_sr_hash.cc | 127 Octet16 db_hash = crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in gatts_calculate_database_hash()
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | address_with_type.h | 65 hci::Octet16 computed_hash = crypto_toolbox::aes_128(irk, prand); in IsRpaThatMatchesIrk()
|
D | le_address_manager.cc | 451 Octet16 p = crypto_toolbox::aes_128(rotation_irk_, rand); in generate_rpa()
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_ble_addr.cc | 85 Octet16 x = crypto_toolbox::aes_128(irk, rand); in rpa_matches_irk()
|
D | btm_ble_sec.cc | 1749 crypto_toolbox::aes_cmac(p_rec->sec_rec.ble_keys.lcsrk, p_buf, in BTM_BleDataSignature() 1796 crypto_toolbox::aes_cmac(p_rec->sec_rec.ble_keys.pcsrk, p_orig, len, in BTM_BleVerifySignature() 1875 crypto_toolbox::aes_128(btm_sec_cb.devcb.id_keys.ir, btm_ble_dhk_pt); in btm_ble_reset_id_impl() 1881 crypto_toolbox::aes_128(btm_sec_cb.devcb.id_keys.ir, btm_ble_irk_pt); in btm_ble_reset_id_impl()
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | database.cc | 316 return crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in Hash()
|
/packages/modules/Bluetooth/system/stack/test/ |
D | stack_smp_test.cc | 280 Octet16 output = crypto_toolbox::aes_128(p_cb_.tk, p1); in TEST_F()
|
/packages/modules/Bluetooth/system/bta/csis/ |
D | csis_types.h | 520 Octet16 x = crypto_toolbox::aes_128(sirk, rand); in is_rsi_match_sirk()
|
D | csis_client.cc | 1261 Octet16 s1 = crypto_toolbox::aes_cmac(zero_key, (uint8_t*)(msg1.c_str()), in sdf() 1270 Octet16 T = crypto_toolbox::aes_cmac(s1, *pltk); in sdf() 1280 crypto_toolbox::aes_cmac(T, (uint8_t*)(msg2.c_str()), msg2.size()); in sdf()
|