Home
last modified time | relevance | path

Searched refs:tSMP_CB (Results 1 – 12 of 12) sorted by relevance

/system/bt/test/mock/
Dmock_stack_smp_act.h55 std::function<void(tSMP_CB* p_cb, tSMP_INT_DATA* p_data)> body{
56 [](tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {}};
57 void operator()(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { body(p_cb, p_data); }; in operator()
64 std::function<void(tSMP_CB* p_cb, tSMP_INT_DATA* p_data)> body{
65 [](tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {}};
66 void operator()(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { body(p_cb, p_data); }; in operator()
73 std::function<void(tSMP_CB* p_cb, tSMP_INT_DATA* p_data)> body{
74 [](tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {}};
75 void operator()(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { body(p_cb, p_data); }; in operator()
82 std::function<void(tSMP_CB* p_cb, tSMP_INT_DATA* p_data)> body{
[all …]
Dmock_stack_smp_act.cc136 void smp_send_app_cback(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_app_cback()
140 void smp_send_pair_fail(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_fail()
144 void smp_send_pair_req(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_req()
148 void smp_send_pair_rsp(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_rsp()
152 void smp_send_confirm(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_confirm()
156 void smp_send_init(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_init()
160 void smp_send_rand(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_rand()
164 void smp_send_pair_public_key(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_public_key()
168 void smp_send_commitment(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_commitment()
172 void smp_send_dhkey_check(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_dhkey_check()
[all …]
/system/bt/stack/test/common/
Dmock_smp_smp_act.cc38 void smp_both_have_public_keys(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_both_have_public_keys()
41 void smp_br_check_authorization_request(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_br_check_authorization_request()
44 void smp_br_pairing_complete(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_br_pairing_complete()
47 void smp_br_process_link_key(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_br_process_link_key()
50 void smp_br_process_pairing_command(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_br_process_pairing_command()
53 void smp_br_process_peripheral_keys_response(tSMP_CB* p_cb, in smp_br_process_peripheral_keys_response()
57 void smp_br_process_security_grant(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_br_process_security_grant()
60 void smp_br_select_next_key(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_br_select_next_key()
63 void smp_br_send_pair_response(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_br_send_pair_response()
69 void smp_check_auth_req(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_check_auth_req()
[all …]
/system/bt/stack/smp/
Dsmp_int.h301 } tSMP_CB; typedef
304 typedef void (*tSMP_ACT)(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
306 extern tSMP_CB smp_cb;
312 extern void smp_sm_event(tSMP_CB* p_cb, tSMP_EVENT event,
319 extern void smp_br_state_machine_event(tSMP_CB* p_cb, tSMP_BR_EVENT event,
325 extern void smp_send_pair_req(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
326 extern void smp_send_confirm(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
327 extern void smp_send_pair_fail(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
328 extern void smp_send_rand(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
329 extern void smp_send_pair_public_key(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
[all …]
Dsmp_utils.cc79 static bool smp_parameter_unconditionally_valid(tSMP_CB* p_cb);
80 static bool smp_parameter_unconditionally_invalid(tSMP_CB* p_cb);
83 typedef bool (*tSMP_CMD_LEN_VALID)(tSMP_CB* p_cb);
85 static bool smp_command_has_valid_fixed_length(tSMP_CB* p_cb);
107 typedef bool (*tSMP_CMD_PARAM_RANGES_VALID)(tSMP_CB* p_cb);
109 static bool smp_pairing_request_response_parameters_are_valid(tSMP_CB* p_cb);
110 static bool smp_pairing_keypress_notification_is_valid(tSMP_CB* p_cb);
136 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
138 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
140 tSMP_CB* p_cb);
[all …]
Dsmp_keys.cc52 static void smp_process_stk(tSMP_CB* p_cb, Octet16* p);
53 static Octet16 smp_calculate_legacy_short_term_key(tSMP_CB* p_cb);
54 static void smp_process_private_key(tSMP_CB* p_cb);
62 void smp_save_local_oob_data(tSMP_CB* p_cb) { in smp_save_local_oob_data()
89 void smp_proc_passkey(tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_proc_passkey()
135 void smp_generate_passkey(tSMP_CB* p_cb, UNUSED_ATTR tSMP_INT_DATA* p_data) { in smp_generate_passkey()
152 void smp_generate_stk(tSMP_CB* p_cb, UNUSED_ATTR tSMP_INT_DATA* p_data) { in smp_generate_stk()
170 void smp_compute_csrk(uint16_t div, tSMP_CB* p_cb) { in smp_compute_csrk()
190 void smp_generate_csrk(tSMP_CB* p_cb, UNUSED_ATTR tSMP_INT_DATA* p_data) { in smp_generate_csrk()
201 [](tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_generate_csrk()
[all …]
Dsmp_act.cc49 static bool pts_test_send_authentication_complete_failure(tSMP_CB* p_cb) { in pts_test_send_authentication_complete_failure()
66 static void smp_update_key_mask(tSMP_CB* p_cb, uint8_t key_type, bool recv) { in smp_update_key_mask()
99 void smp_send_app_cback(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_app_cback()
243 void smp_send_pair_fail(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_fail()
261 void smp_send_pair_req(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_req()
276 void smp_send_pair_rsp(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_rsp()
294 void smp_send_confirm(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_confirm()
303 void smp_send_init(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_init()
312 void smp_send_rand(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_rand()
321 void smp_send_pair_public_key(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) { in smp_send_pair_public_key()
[all …]
Dsmp_api.cc59 memset(&smp_cb, 0, sizeof(tSMP_CB)); in SMP_Init()
146 tSMP_CB* p_cb = &smp_cb; in SMP_Pair()
190 tSMP_CB* p_cb = &smp_cb; in SMP_BR_PairWith()
234 tSMP_CB* p_cb = &smp_cb; in SMP_PairCancel()
360 tSMP_CB* p_cb = &smp_cb; in SMP_PasskeyReply()
417 tSMP_CB* p_cb = &smp_cb; in SMP_ConfirmReply()
465 tSMP_CB* p_cb = &smp_cb; in SMP_OobDataReply()
503 tSMP_CB* p_cb = &smp_cb; in SMP_SecureConnectionOobDataReply()
Dsmp_l2c.cc91 tSMP_CB* p_cb = &smp_cb; in smp_connect_callback()
150 tSMP_CB* p_cb = &smp_cb; in smp_data_received()
230 tSMP_CB* p_cb = &smp_cb; in smp_br_connect_callback()
274 tSMP_CB* p_cb = &smp_cb; in smp_br_data_received()
Dsmp_br_main.cc304 void smp_br_state_machine_event(tSMP_CB* p_cb, tSMP_BR_EVENT event, in smp_br_state_machine_event()
Dsmp_main.cc927 tSMP_CB smp_cb;
967 void smp_sm_event(tSMP_CB* p_cb, tSMP_EVENT event, tSMP_INT_DATA* p_data) { in smp_sm_event()
/system/bt/stack/test/
Dstack_smp_test.cc85 extern Octet16 smp_gen_p1_4_confirm(tSMP_CB* p_cb,
88 extern Octet16 smp_gen_p2_4_confirm(tSMP_CB* p_cb,
91 extern tSMP_STATUS smp_calculate_comfirm(tSMP_CB* p_cb, const Octet16& rand,
130 tSMP_CB p_cb_;