Searched refs:kOctet16Length (Results 1 – 10 of 10) sorted by relevance
/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | aes_cmac.cc | 34 using bluetooth::hci::kOctet16Length; 59 for (i = 0; i < kOctet16Length; i++) { in xor_128() 88 for (i = length; i < kOctet16Length; i++) p[kOctet16Length - i - 1] = (i == length) ? 0x80 : 0; in padding() 95 for (i = 0; i < kOctet16Length; i++) { in leftshift_onebit() 111 xor_128((Octet16*)&cmac_cb.text[(cmac_cb.round - i) * kOctet16Length], x); in cmac_aes_k_calculate() 113 output = aes_128(key, *(Octet16*)&cmac_cb.text[(cmac_cb.round - i) * kOctet16Length]); in cmac_aes_k_calculate() 129 flag = ((cmac_cb.len % kOctet16Length) == 0 && cmac_cb.len != 0) ? true : false; in cmac_prepare_last_block() 152 if ((pp[kOctet16Length - 1] & 0x80) != 0) { in cmac_generate_subkey() 160 if ((k1[kOctet16Length - 1] & 0x80) != 0) { in cmac_generate_subkey() 180 uint16_t n = (length + kOctet16Length - 1) / kOctet16Length; in aes_cmac() [all …]
|
D | crypto_toolbox.cc | 26 using bluetooth::hci::kOctet16Length; 68 kOctet16Length /* N1 size */ + kOctet16Length /* N2 size */ + in calculate_mac_key_or_ltk() 120 const uint8_t msg_len = kOctet16Length /* N1 size */ + kOctet16Length /* N2 size */ + in f6() 121 kOctet16Length /* R size */ + 3 /* IOcap size */ + 7 /* A1 size*/ + in f6() 144 + kOctet16Length /* Y size */; in g2() 213 for (uint8_t i = 0; i < kOctet16Length; i++) { in c1() 226 for (uint8_t i = 0; i < kOctet16Length; i++) { in c1() 235 memcpy(text.data(), r1.data(), kOctet16Length / 2); in s1() 236 memcpy(text.data() + kOctet16Length / 2, r2.data(), kOctet16Length / 2); in s1()
|
D | crypto_toolbox_test.cc | 30 using bluetooth::hci::kOctet16Length; 47 EXPECT_TRUE(memcmp(output, aes_cmac_k_m, kOctet16Length) == 0); in TEST()
|
D | crypto_toolbox.h | 83 uint8_t* p_mac = signature.data() + (bluetooth::hci::kOctet16Length - tlen); in aes_cmac()
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | octets.h | 24 constexpr int kOctet16Length = 16; variable 25 using Octet16 = std::array<uint8_t, kOctet16Length>;
|
/packages/modules/Bluetooth/tools/rootcanal/include/crypto/ |
D | crypto.h | 25 constexpr int kOctet16Length = 16; variable 26 using Octet16 = std::array<uint8_t, kOctet16Length>;
|
/packages/modules/Bluetooth/system/gd/hci/facade/ |
D | le_initiator_address_facade.cc | 65 if (request_irk_length == kOctet16Length) { in SetPrivacyPolicyForInitiatorAddress() 67 std::copy_n(irk_data.begin(), kOctet16Length, irk.begin()); in SetPrivacyPolicyForInitiatorAddress()
|
D | le_acl_manager_facade.cc | 210 if (request_peer_irk_length != kOctet16Length) { in AddDeviceToResolvingList() 215 if (request_local_irk_length != kOctet16Length) { in AddDeviceToResolvingList() 223 std::copy_n(peer_irk_data.begin(), kOctet16Length, peer_irk.begin()); in AddDeviceToResolvingList() 226 std::copy_n(local_irk_data.begin(), kOctet16Length, local_irk.begin()); in AddDeviceToResolvingList()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | bt_octets.h | 25 static constexpr int OCTET16_LEN = bluetooth::hci::kOctet16Length;
|
/packages/modules/Bluetooth/system/gd/security/ |
D | facade.cc | 396 if (request_irk_length == hci::kOctet16Length) { in SetLeInitiatorAddressPolicy() 398 std::copy_n(irk_data.begin(), hci::kOctet16Length, irk.begin()); in SetLeInitiatorAddressPolicy()
|