/system/bt/gd/security/ |
D | initial_informations.h | 42 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 …]
|
D | pairing_handler_le_secure_connections.cc | 159 crypto_toolbox::f5((uint8_t*)dhkey.data(), Na, Nb, a, b, &mac_key, <k); 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 …]
|
D | pairing_handler_le_legacy.cc | 138 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()
|
D | pairing_handler_le_unittest.cc | 223 …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, <k); 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()
|
D | security_manager.h | 106 crypto_toolbox::Octet16 rotation_irk,
|
/system/bt/gd/security/record/ |
D | security_record.h | 129 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/ |
D | address_with_type.h | 53 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()
|
D | le_address_manager.h | 59 crypto_toolbox::Octet16 rotation_irk, 66 crypto_toolbox::Octet16 rotation_irk, 139 crypto_toolbox::Octet16 rotation_irk_;
|
D | le_address_manager.cc | 50 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()
|
D | address_with_type_test.cc | 93 crypto_toolbox::Octet16 irk_1{0x90, 0x5e, 0x60, 0x59, 0xc9, 0x11, 0x43, 0x7b, in TEST()
|
D | acl_manager.h | 94 crypto_toolbox::Octet16 rotation_irk,
|
D | acl_manager.cc | 175 crypto_toolbox::Octet16 rotation_irk{}; in SetPrivacyPolicyForInitiatorAddress() 194 crypto_toolbox::Octet16 rotation_irk, in SetPrivacyPolicyForInitiatorAddressForTest()
|
/system/bt/gd/hci/facade/ |
D | le_initiator_address_facade.cc | 59 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/ |
D | BUILD.gn | 17 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/ |
D | smp_keys.cc | 46 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/ |
D | mock_stack_crypto_toolbox_aes_cmac.cc | 34 namespace crypto_toolbox { namespace
|
/system/bt/gd/security/internal/ |
D | security_manager_impl.h | 140 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/ |
D | Android.bp | 16 "crypto_toolbox.cc",
|
D | BUILD.gn | 20 "crypto_toolbox.cc",
|
D | crypto_toolbox.h | 24 namespace crypto_toolbox {
|
D | aes_cmac.cc | 31 namespace crypto_toolbox { namespace
|
/system/bt/stack/btm/ |
D | btm_ble_addr.cc | 57 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/ |
D | crypto_toolbox.h | 22 namespace crypto_toolbox {
|
/system/bt/stack/gatt/ |
D | gatt_sr_hash.cc | 122 Octet16 db_hash = crypto_toolbox::aes_cmac(Octet16{0}, serialized.data(), in gatts_calculate_database_hash()
|
/system/bt/gd/ |
D | BUILD.gn | 69 "//bt/gd/crypto_toolbox:BluetoothCryptoToolboxSources",
|