Home
last modified time | relevance | path

Searched refs:Octet16 (Results 1 – 25 of 38) sorted by relevance

12

/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.h23 extern Octet16 aes_128(const Octet16& key, const Octet16& message);
24 extern Octet16 aes_cmac(const Octet16& key, const uint8_t* message,
26 extern Octet16 f4(uint8_t* u, uint8_t* v, const Octet16& x, uint8_t z);
27 extern void f5(uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1,
28 uint8_t* a2, Octet16* mac_key, Octet16* ltk);
29 extern Octet16 f6(const Octet16& w, const Octet16& n1, const Octet16& n2,
30 const Octet16& r, uint8_t* iocap, uint8_t* a1, uint8_t* a2);
31 extern Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid);
32 extern Octet16 h7(const Octet16& salt, const Octet16& w);
33 extern uint32_t g2(uint8_t* u, uint8_t* v, const Octet16& x, const Octet16& y);
[all …]
Daes_cmac.cc44 Octet16 const_Rb{0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
50 static void xor_128(Octet16* a, const Octet16& b) { in xor_128()
62 Octet16 aes_128(const Octet16& key, const Octet16& message) { in aes_128()
63 Octet16 key_reversed; in aes_128()
64 Octet16 message_reversed; in aes_128()
65 Octet16 output; in aes_128()
81 static void padding(Octet16* dest, uint8_t length) { in padding()
102 static Octet16 cmac_aes_k_calculate(const Octet16& key) { in cmac_aes_k_calculate()
103 Octet16 output; in cmac_aes_k_calculate()
104 Octet16 x{0}; // zero initialized in cmac_aes_k_calculate()
[all …]
Dcrypto_toolbox.cc29 Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid) { in h6()
33 Octet16 h7(const Octet16& salt, const Octet16& w) { in h7()
37 Octet16 f4(uint8_t* u, uint8_t* v, const Octet16& x, uint8_t z) { in f4()
55 static Octet16 calculate_mac_key_or_ltk(const Octet16& t, uint8_t counter, in calculate_mac_key_or_ltk()
56 uint8_t* key_id, const Octet16& n1, in calculate_mac_key_or_ltk()
57 const Octet16& n2, uint8_t* a1, in calculate_mac_key_or_ltk()
76 void f5(uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, in f5()
77 uint8_t* a2, Octet16* mac_key, Octet16* ltk) { in f5()
83 const Octet16 salt{0xBE, 0x83, 0x60, 0x5A, 0xDB, 0x0B, 0x37, 0x60, in f5()
85 Octet16 t = aes_cmac(salt, w, BT_OCTET32_LEN); in f5()
[all …]
/system/bt/stack/smp/
Dcrypto_toolbox.h25 extern Octet16 smp_calculate_f4(uint8_t* u, uint8_t* v, const Octet16& x,
27 extern uint32_t smp_calculate_g2(uint8_t* u, uint8_t* v, const Octet16& x,
28 const Octet16& y);
29 extern void smp_calculate_f5(uint8_t* w, const Octet16& n1, const Octet16& n2,
30 uint8_t* a1, uint8_t* a2, Octet16* mac_key,
31 Octet16* ltk);
32 extern Octet16 smp_calculate_f6(const Octet16& w, const Octet16& n1,
33 const Octet16& n2, const Octet16& r,
35 extern Octet16 smp_calculate_h6(const Octet16& w, std::array<uint8_t, 4> keyid);
36 extern Octet16 smp_calculate_h7(const Octet16& salt, const Octet16& w);
[all …]
Dsmp_int.h273 Octet16 confirm;
274 Octet16 rconfirm;
275 Octet16 rrand; /* for SC this is peer nonce */
276 Octet16 rand; /* for SC this is local nonce */
279 Octet16 commitment;
280 Octet16 remote_commitment;
281 Octet16 local_random; /* local randomizer - passkey or OOB randomizer */
282 Octet16 peer_random; /* peer randomizer - passkey or OOB randomizer */
283 Octet16 dhkey_check;
284 Octet16 remote_dhkey_check;
[all …]
Dsmp_keys.cc51 static void smp_process_stk(tSMP_CB* p_cb, Octet16* p);
52 static Octet16 smp_calculate_legacy_short_term_key(tSMP_CB* p_cb);
80 inline void smp_debug_print_nbyte_little_endian(const Octet16& p, in smp_debug_print_nbyte_little_endian()
175 Octet16 output; in smp_generate_stk()
200 const Octet16& er = BTM_GetDeviceEncRoot(); in smp_compute_csrk()
275 Octet16 smp_gen_p1_4_confirm(tSMP_CB* p_cb, in smp_gen_p1_4_confirm()
278 Octet16 p1; in smp_gen_p1_4_confirm()
310 Octet16 smp_gen_p2_4_confirm(tSMP_CB* p_cb, const RawAddress& remote_bda) { in smp_gen_p2_4_confirm()
312 Octet16 p2{0}; in smp_gen_p2_4_confirm()
340 tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand, in smp_calculate_comfirm()
[all …]
Dsmp_utils.cc589 const Octet16& irk = BTM_GetDeviceIDRoot(); in smp_build_identity_info_cmd()
810 void smp_convert_string_to_tk(Octet16* tk, uint32_t passkey) { in smp_convert_string_to_tk()
826 void smp_mask_enc_key(uint8_t loc_enc_size, Octet16* p_data) { in smp_mask_enc_key()
838 void smp_xor_128(Octet16* a, const Octet16& b) { in smp_xor_128()
1449 Octet16 expected = smp_calculate_peer_commitment(p_cb); in smp_check_commitment()
1498 Octet16 na; in smp_calculate_f5_mackey_and_long_term_key()
1499 Octet16 nb; in smp_calculate_f5_mackey_and_long_term_key()
1559 void print128(const Octet16& x, const uint8_t* key_name) { in print128()
/system/bt/stack/test/
Dcrypto_toolbox_test.cc59 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST()
62 Octet16 aes_cmac_k_m{0xbb, 0x1d, 0x69, 0x29, 0xe9, 0x59, 0x37, 0x28, in TEST()
69 Octet16 output = aes_cmac(k, nullptr /* empty message */, 0); in TEST()
81 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST()
84 Octet16 m = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, in TEST()
87 Octet16 aes_cmac_k_m{0x07, 0x0a, 0x16, 0xb4, 0x6b, 0x4d, 0x41, 0x44, in TEST()
95 Octet16 output = aes_cmac(k, m); in TEST()
108 Octet16 k{0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, in TEST()
116 Octet16 aes_cmac_k_m{0xdf, 0xa6, 0x67, 0x47, 0xde, 0x9a, 0xe6, 0x30, in TEST()
124 Octet16 output = aes_cmac(k, m, sizeof(m)); in TEST()
[all …]
Dstack_smp_test.cc84 extern Octet16 smp_gen_p1_4_confirm(tSMP_CB* p_cb,
87 extern Octet16 smp_gen_p2_4_confirm(tSMP_CB* p_cb,
90 extern tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand,
91 Octet16* output);
95 void dump_uint128(const Octet16& a, char* buffer) { in dump_uint128()
103 void dump_uint128_reverse(const Octet16& a, char* buffer) { in dump_uint128_reverse()
111 void print_uint128(const Octet16& a) { in print_uint128()
118 Octet16 parse_uint128(const char* input) { in parse_uint128()
119 Octet16 output{0}; in parse_uint128()
131 Octet16 rand_{0x57, 0x83, 0xD5, 0x21, 0x56, 0xAD, 0x6F, 0x0E,
[all …]
/system/bt/btif/include/
Dbtif_dm.h64 void btif_dm_proc_loc_oob(bool valid, const Octet16& c, const Octet16& r);
65 bool btif_dm_proc_rmt_oob(const RawAddress& bd_addr, Octet16* p_c,
66 Octet16* p_r);
101 Octet16* p_er,
Dbtif_storage.h263 bt_status_t btif_storage_add_ble_local_key(const Octet16& key,
269 Octet16* key_value);
/system/bt/btif/co/
Dbta_dm_co.cc140 void bta_dm_co_loc_oob(bool valid, const Octet16& c, const Octet16& r) { in bta_dm_co_loc_oob()
161 Octet16 c; in bta_dm_co_rmt_oob()
162 Octet16 r; in bta_dm_co_rmt_oob()
215 Octet16* p_er, in bta_dm_co_ble_load_local_keys()
/system/bt/bta/include/
Dbta_dm_co.h108 extern void bta_dm_co_loc_oob(bool valid, const Octet16& c, const Octet16& r);
210 tBTA_DM_BLE_LOCAL_KEY_MASK* p_key_mask, Octet16* p_er,
Dbta_dm_ci.h58 const Octet16& c, const Octet16& r);
/system/bt/bta/dm/
Dbta_dm_ci.cc64 void bta_dm_ci_rmt_oob(bool accept, const RawAddress& bd_addr, const Octet16& c, in bta_dm_ci_rmt_oob()
65 const Octet16& r) { in bta_dm_ci_rmt_oob()
/system/bt/stack/include/
Dsmp_api_types.h223 Octet16 randomizer;
224 Octet16 commitment;
237 Octet16 randomizer;
238 Octet16 commitment;
Dbtm_ble_api.h184 const Octet16& BTM_GetDeviceEncRoot();
187 extern const Octet16& BTM_GetDeviceIDRoot();
190 extern const Octet16& BTM_GetDeviceDHK();
Dbtm_api_types.h1483 Octet16 c; /* Simple Pairing Hash C */
1484 Octet16 r; /* Simple Pairing Randomnizer R */
1634 Octet16 ltk;
1644 Octet16 csrk;
1650 Octet16 ltk;
1661 Octet16 csrk;
1665 Octet16 irk;
1707 Octet16 ir;
1708 Octet16 irk;
1709 Octet16 dhk;
[all …]
Dhcimsgs.h430 const Octet16& c, const Octet16& r);
792 uint16_t ediv, const Octet16& ltk);
794 extern void btsnd_hcic_ble_ltk_req_reply(uint16_t handle, const Octet16& ltk);
832 const Octet16& irk_peer,
833 const Octet16& irk_local);
Dbtm_api.h1665 const Octet16& c, const Octet16& r);
1686 const Octet16& c, const Octet16& r,
Dbt_types.h574 typedef std::array<uint8_t, OCTET16_LEN> Octet16; typedef
577 typedef Octet16 LinkKey; /* Link Key */
581 constexpr Octet16 SAMPLE_LTK = {0xbf, 0x01, 0xfb, 0x9d, 0x4e, 0xf3, 0xbc, 0x36,
583 inline bool is_sample_ltk(const Octet16& ltk) { in is_sample_ltk()
/system/bt/stack/btm/
Dbtm_ble_addr.cc40 RawAddress generate_rpa_from_irk_and_rand(const Octet16& irk, in generate_rpa_from_irk_and_rand()
51 Octet16 p = crypto_toolbox::aes_128(irk, random, 3); in generate_rpa_from_irk_and_rand()
90 const Octet16& irk = BTM_GetDeviceIDRoot(); in btm_gen_resolvable_private_addr()
173 static bool rpa_matches_irk(const RawAddress& rpa, const Octet16& irk) { in rpa_matches_irk()
181 Octet16 x = crypto_toolbox::aes_128(irk, &rand[0], 3); in rpa_matches_irk()
Dbtm_int_types.h174 Octet16 ble_encryption_key_value; /* BLE encryption key */
411 Octet16 irk; /* peer diverified identity root */
412 Octet16 pltk; /* peer long term key */
413 Octet16 pcsrk; /* peer SRK peer device used to secured sign local data */
415 Octet16 lltk; /* local long term key */
416 Octet16 lcsrk; /* local SRK peer device used to secured sign local data */
Dbtm_ble_int.h82 const Octet16& stk);
91 Octet16* p_stk);
/system/bt/profile/sdp/common/
Ddata_element_reader.h36 uint8_t, uint16_t, uint32_t, uint64_t, Octet16, Uuid,

12