Home
last modified time | relevance | path

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

12

/system/bt/gd/security/
Dinitial_informations.h42 std::optional<crypto_toolbox::Octet16> remote_ltk;
46 std::optional<crypto_toolbox::Octet16> remote_irk;
47 std::optional<crypto_toolbox::Octet16> remote_signature_key;
48 std::optional<crypto_toolbox::Octet16> remote_link_key; /* BR/EDR Keys */
50 std::optional<crypto_toolbox::Octet16> local_ltk;
53 std::optional<crypto_toolbox::Octet16> local_signature_key;
73 crypto_toolbox::Octet16 c;
74 crypto_toolbox::Octet16 r;
83 crypto_toolbox::Octet16 my_identity_resolving_key;
105 crypto_toolbox::Octet16 le_sc_c; /* LE Secure Connections Confirmation Value */
[all …]
Dpairing_handler_le_secure_connections.cc159 crypto_toolbox::f5((uint8_t*)dhkey.data(), Na, Nb, a, b, &mac_key, &ltk); in DoSecureConnectionsStage2()
179 Octet16 Ea = crypto_toolbox::f6(mac_key, Na, Nb, rb, iocapA.data(), a, b); in DoSecureConnectionsStage2()
181 Octet16 Eb = crypto_toolbox::f6(mac_key, Nb, Na, ra, iocapB.data(), b, a); in DoSecureConnectionsStage2()
237 remoteC2 = crypto_toolbox::f4((uint8_t*)Pkb.x.data(), (uint8_t*)Pkb.x.data(), remoteR, 0); in SecureConnectionsOutOfBand()
239 remoteC2 = crypto_toolbox::f4((uint8_t*)Pka.x.data(), (uint8_t*)Pka.x.data(), remoteR, 0); in SecureConnectionsOutOfBand()
326 Cai = crypto_toolbox::f4((uint8_t*)PKa.x.data(), (uint8_t*)PKb.x.data(), Nai, ri); in SecureConnectionsPasskeyEntry()
349 Octet16 Cbi2 = crypto_toolbox::f4((uint8_t*)PKb.x.data(), (uint8_t*)PKa.x.data(), Nbi, ri); in SecureConnectionsPasskeyEntry()
358 Cbi = crypto_toolbox::f4((uint8_t*)PKb.x.data(), (uint8_t*)PKa.x.data(), Nbi, ri); in SecureConnectionsPasskeyEntry()
378 Octet16 Cai2 = crypto_toolbox::f4((uint8_t*)PKa.x.data(), (uint8_t*)PKb.x.data(), Nai, ri); in SecureConnectionsPasskeyEntry()
415 …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.cc138 Octet16 mconfirm = crypto_toolbox::c1( in DoLegacyStage2()
172 Octet16 sconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2()
194 Octet16 sconfirm = crypto_toolbox::c1( in DoLegacyStage2()
221 Octet16 mconfirm_generated = crypto_toolbox::c1( in DoLegacyStage2()
244 return crypto_toolbox::s1(tk, mrand, srand); in DoLegacyStage2()
Dpairing_handler_le_unittest.cc223 …Octet16 Cb = crypto_toolbox::f4((uint8_t*)public_key.x.data(), (uint8_t*)my_public_key.x.data(), N… in TEST_F()
246 crypto_toolbox::f5(dhkey.data(), Na, Nb, a, b, &mac_key, &ltk); in TEST_F()
258 Octet16 Ea = crypto_toolbox::f6(mac_key, Na, Nb, rb, iocapA.data(), a, b); in TEST_F()
259 Octet16 Eb = crypto_toolbox::f6(mac_key, Nb, Na, ra, iocapB.data(), b, a); in TEST_F()
Dsecurity_manager.h106 crypto_toolbox::Octet16 rotation_irk,
/system/bt/gd/security/record/
Dsecurity_record.h129 std::optional<crypto_toolbox::Octet16> remote_ltk;
134 std::optional<crypto_toolbox::Octet16> remote_irk;
135 std::optional<crypto_toolbox::Octet16> remote_signature_key;
137 std::optional<crypto_toolbox::Octet16> local_ltk;
/system/bt/gd/hci/
Daddress_with_type.h53 bool IsRpaThatMatchesIrk(const crypto_toolbox::Octet16& irk) const { in IsRpaThatMatchesIrk()
62 crypto_toolbox::Octet16 computed_hash = crypto_toolbox::aes_128(irk, &prand[0], 3); in IsRpaThatMatchesIrk()
Dle_address_manager.h59 crypto_toolbox::Octet16 rotation_irk,
66 crypto_toolbox::Octet16 rotation_irk,
139 crypto_toolbox::Octet16 rotation_irk_;
Dle_address_manager.cc50 crypto_toolbox::Octet16 rotation_irk, in SetPrivacyPolicyForInitiatorAddress()
97 crypto_toolbox::Octet16 rotation_irk, in SetPrivacyPolicyForInitiatorAddressForTest()
304 crypto_toolbox::Octet16 p = crypto_toolbox::aes_128(rotation_irk_, prand.data(), 3); in generate_rpa()
Daddress_with_type_test.cc93 crypto_toolbox::Octet16 irk_1{0x90, 0x5e, 0x60, 0x59, 0xc9, 0x11, 0x43, 0x7b, in TEST()
Dacl_manager.h94 crypto_toolbox::Octet16 rotation_irk,
Dacl_manager.cc175 crypto_toolbox::Octet16 rotation_irk{}; in SetPrivacyPolicyForInitiatorAddress()
194 crypto_toolbox::Octet16 rotation_irk, in SetPrivacyPolicyForInitiatorAddressForTest()
/system/bt/gd/hci/facade/
Dle_initiator_address_facade.cc59 crypto_toolbox::Octet16 irk = {}; in SetPrivacyPolicyForInitiatorAddress()
61 if (request_irk_length == crypto_toolbox::OCTET16_LEN) { in SetPrivacyPolicyForInitiatorAddress()
63 std::copy_n(irk_data.begin(), crypto_toolbox::OCTET16_LEN, irk.begin()); in SetPrivacyPolicyForInitiatorAddress()
/system/bt/stack/
DBUILD.gn17 static_library("crypto_toolbox") {
19 "crypto_toolbox/aes.cc",
20 "crypto_toolbox/aes_cmac.cc",
21 "crypto_toolbox/crypto_toolbox.cc",
223 ":crypto_toolbox",
321 deps = [ ":crypto_toolbox" ]
372 ":crypto_toolbox",
/system/bt/stack/smp/
Dsmp_keys.cc46 using crypto_toolbox::aes_128;
755 p_cb->commitment = crypto_toolbox::f4( in smp_calculate_local_commitment()
763 crypto_toolbox::f4(p_cb->loc_publ_key.x, p_cb->peer_publ_key.x, in smp_calculate_local_commitment()
769 p_cb->commitment = crypto_toolbox::f4( in smp_calculate_local_commitment()
794 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment()
800 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->loc_publ_key.x, in smp_calculate_peer_commitment()
804 output = crypto_toolbox::f4(p_cb->peer_publ_key.x, p_cb->peer_publ_key.x, in smp_calculate_peer_commitment()
832 p_cb->number_to_display = crypto_toolbox::g2( in smp_calculate_numeric_comparison_display_number()
835 p_cb->number_to_display = crypto_toolbox::g2( in smp_calculate_numeric_comparison_display_number()
882 p_cb->dhkey_check = crypto_toolbox::f6(p_cb->mac_key, p_cb->rand, p_cb->rrand, in smp_calculate_local_dhkey_check()
[all …]
/system/bt/test/mock/
Dmock_stack_crypto_toolbox_aes_cmac.cc34 namespace crypto_toolbox { namespace
/system/bt/gd/security/internal/
Dsecurity_manager_impl.h140 crypto_toolbox::Octet16 rotation_irk,
267 std::optional<crypto_toolbox::Octet16> remote_oob_data_le_sc_c_;
268 std::optional<crypto_toolbox::Octet16> remote_oob_data_le_sc_r_;
271 crypto_toolbox::Octet16 local_identity_resolving_key_;
/system/bt/gd/crypto_toolbox/
DAndroid.bp16 "crypto_toolbox.cc",
DBUILD.gn20 "crypto_toolbox.cc",
Dcrypto_toolbox.h24 namespace crypto_toolbox {
Daes_cmac.cc31 namespace crypto_toolbox { namespace
/system/bt/stack/btm/
Dbtm_ble_addr.cc57 Octet16 p = crypto_toolbox::aes_128(irk, random, 3); in generate_rpa_from_irk_and_rand()
155 Octet16 x = crypto_toolbox::aes_128(irk, &rand[0], 3); in rpa_matches_irk()
/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.h22 namespace crypto_toolbox {
/system/bt/stack/gatt/
Dgatt_sr_hash.cc122 Octet16 db_hash = crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in gatts_calculate_database_hash()
/system/bt/gd/
DBUILD.gn69 "//bt/gd/crypto_toolbox:BluetoothCryptoToolboxSources",

12