Home
last modified time | relevance | path

Searched refs:crypto_toolbox (Results 1 – 23 of 23) sorted by relevance

/packages/modules/Bluetooth/system/gd/security/
Dpairing_handler_le_secure_connections.cc165 crypto_toolbox::f5((uint8_t*)dhkey.data(), Na, Nb, a, b, &mac_key, &ltk); 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 …]
Dpairing_handler_le_legacy.cc143 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()
Dpairing_handler_le_unittest.cc226 …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, &ltk); 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()
Dpairing_handler_le.cc36 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/
Dsmp_keys.cc52 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 …]
Dsmp_utils.cc1599 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()
Dsmp_act.cc2035 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/
DBUILD.gn16 static_library("crypto_toolbox") {
20 "crypto_toolbox.cc",
DAndroid.bp38 "crypto_toolbox.cc",
Dcrypto_toolbox.h25 namespace crypto_toolbox {
Daes_cmac.cc37 namespace crypto_toolbox { namespace
Dcrypto_toolbox.cc30 namespace crypto_toolbox { namespace
Dcrypto_toolbox_test.cc29 namespace crypto_toolbox { namespace
/packages/modules/Bluetooth/system/stack/
DBUILD.gn221 "//bt/system/gd/crypto_toolbox:crypto_toolbox",
348 "//bt/system/gd:crypto_toolbox",
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_sr_hash.cc127 Octet16 db_hash = crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in gatts_calculate_database_hash()
/packages/modules/Bluetooth/system/gd/hci/
Daddress_with_type.h65 hci::Octet16 computed_hash = crypto_toolbox::aes_128(irk, prand); in IsRpaThatMatchesIrk()
Dle_address_manager.cc451 Octet16 p = crypto_toolbox::aes_128(rotation_irk_, rand); in generate_rpa()
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_ble_addr.cc85 Octet16 x = crypto_toolbox::aes_128(irk, rand); in rpa_matches_irk()
Dbtm_ble_sec.cc1749 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/
Ddatabase.cc316 return crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in Hash()
/packages/modules/Bluetooth/system/stack/test/
Dstack_smp_test.cc280 Octet16 output = crypto_toolbox::aes_128(p_cb_.tk, p1); in TEST_F()
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_types.h520 Octet16 x = crypto_toolbox::aes_128(sirk, rand); in is_rsi_match_sirk()
Dcsis_client.cc1261 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()