Home
last modified time | relevance | path

Searched refs:os_memcmp (Results 1 – 25 of 131) sorted by relevance

123456

/external/wpa_supplicant_8/src/crypto/
Dcrypto_module_tests.c99 if (os_memcmp(out, iv_c, sizeof(iv_c)) != 0) { in test_siv()
109 if (os_memcmp(out, plaintext, sizeof(plaintext)) != 0) { in test_siv()
128 if (os_memcmp(out, iv_c_2, sizeof(iv_c_2)) != 0) { in test_siv()
138 if (os_memcmp(out, plaintext_2, sizeof(plaintext_2)) != 0) { in test_siv()
226 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
239 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
254 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
270 os_memcmp(result, result2, 16) != 0) { in test_omac1_vector()
314 if (os_memcmp(data, cipher, sizeof(data)) != 0) { in test_eax()
319 if (os_memcmp(tag, cipher + sizeof(data), AES_BLOCK_SIZE) != 0) { in test_eax()
[all …]
/external/wpa_supplicant_8/src/ap/
Dpmksa_cache_auth.c428 os_memcmp(entry->spa, spa, ETH_ALEN) == 0) && in pmksa_cache_auth_get()
429 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_auth_get()
435 os_memcmp(entry->spa, spa, ETH_ALEN) == 0) in pmksa_cache_auth_get()
462 if (os_memcmp(entry->spa, spa, ETH_ALEN) != 0) in pmksa_cache_get_okc()
466 if (os_memcmp(new_pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_get_okc()
501 if (os_memcmp(attr->sta_addr, entry->spa, ETH_ALEN) != 0) in das_attr_match()
513 if (os_memcmp(attr->acct_multi_session_id, buf, 16) != 0) in das_attr_match()
521 os_memcmp(attr->cui, wpabuf_head(entry->cui), in das_attr_match()
530 os_memcmp(attr->user_name, entry->identity, in das_attr_match()
Deap_user_db.c119 os_memcmp(argv[id], user->identity, len) == 0 && in get_wildcard_cb()
232 os_memcmp(identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN) == 0) { in hostapd_get_eap_user()
241 os_memcmp(identity, WSC_ID_REGISTRAR, WSC_ID_REGISTRAR_LEN) == 0) { in hostapd_get_eap_user()
261 os_memcmp(user->identity, identity, user->identity_len) == in hostapd_get_eap_user()
269 os_memcmp(user->identity, identity, identity_len) == 0) in hostapd_get_eap_user()
Dap_list.c58 while (s != NULL && os_memcmp(s->addr, ap, ETH_ALEN) != 0) in ap_get_ap()
103 if (os_memcmp(s->addr, ap->addr, ETH_ALEN) == 0) { in ap_ap_hash_del()
109 os_memcmp(s->hnext->addr, ap->addr, ETH_ALEN) != 0) in ap_ap_hash_del()
Dwpa_auth_ft.c238 if (os_memcmp(r0->spa, spa, ETH_ALEN) == 0 && in wpa_ft_fetch_pmk_r0()
288 if (os_memcmp(r1->spa, spa, ETH_ALEN) == 0 && in wpa_ft_fetch_pmk_r1()
829 os_memcmp(mdie->mobility_domain, in wpa_ft_process_auth_req()
1025 os_memcmp(mdie->mobility_domain, in wpa_ft_validate_reassoc()
1038 if (os_memcmp(ftie->snonce, sm->SNonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
1047 if (os_memcmp(ftie->anonce, sm->ANonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
1171 if (os_memcmp(sta_addr, sm->addr, ETH_ALEN) != 0) { in wpa_ft_action_rx()
1184 os_memcmp(target_ap, sm->wpa_auth->addr, ETH_ALEN) == 0) { in wpa_ft_action_rx()
1328 if (os_memcmp(r1kh->addr, src_addr, ETH_ALEN) == 0) in wpa_ft_rrb_rx_pull()
1430 if (os_memcmp(frame->s1kh_id, sm->addr, ETH_ALEN) != 0) in ft_pull_resp_cb()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dbss.c260 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get()
262 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get()
314 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known()
329 os_memcmp(bss->ssid, wpa_s->current_bss->ssid, in wpa_bss_in_use()
334 (os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 || in wpa_bss_in_use()
335 os_memcmp(bss->bssid, wpa_s->pending_bssid, ETH_ALEN) == 0); in wpa_bss_in_use()
466 os_memcmp(old_ie, new_ie, old_ie_len) == 0); in are_ies_equal()
494 os_memcmp(old + 1, new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res()
697 os_memcmp(ssid + 2, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) == 0) in wpa_bss_update_scan_res()
772 os_memcmp(s->ssid, bss->ssid, bss->ssid_len) == in wpa_bss_included_in_scan()
[all …]
Doffchannel.c26 if (os_memcmp(src, wpa_s->own_addr, ETH_ALEN) == 0) in wpas_get_tx_interface()
34 if (os_memcmp(src, iface->own_addr, ETH_ALEN) == 0) in wpas_get_tx_interface()
168 if (os_memcmp(dst, wpa_s->pending_action_dst, ETH_ALEN) != 0) { in offchannel_send_action_tx_status()
176 os_memcmp(data + 24, wpabuf_head(wpa_s->pending_action_tx), in offchannel_send_action_tx_status()
Dblacklist.c31 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) in wpa_blacklist_get()
101 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) { in wpa_blacklist_del()
Dmesh_rsn.c367 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_aek()
393 if (os_memcmp(sta->my_nonce, sta->peer_nonce, nonce_len) < 0) { in mesh_rsn_derive_mtk()
419 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_mtk()
549 if (chosen_pmk && os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN)) { in mesh_rsn_process_ampe()
598 if (os_memcmp(ampe->peer_nonce, null_nonce, 32) != 0 && in mesh_rsn_process_ampe()
599 os_memcmp(ampe->peer_nonce, sta->my_nonce, 32) != 0) { in mesh_rsn_process_ampe()
Dgas_query.c194 if (os_memcmp(q->addr, addr, ETH_ALEN) == 0 && in gas_query_get_pending()
237 if (os_memcmp(dst, query->addr, ETH_ALEN) != 0) { in gas_query_tx_status()
266 os_memcmp(addr, wpa_s->bssid, ETH_ALEN) != 0) in pmf_in_use()
429 os_memcmp(adv_proto, wpabuf_head(query->adv_proto), in gas_query_rx_comeback()
641 if (os_memcmp(dst, q->addr, ETH_ALEN) == 0 && in gas_query_dialog_token_available()
Dbgscan_learn.c60 if (os_memcmp(array + i * ETH_ALEN, bssid, ETH_ALEN) == 0) in bssid_in_array()
73 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_add_neighbor()
94 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_get_bss()
477 os_memcmp(data->ssid->ssid, ie + 2, ie[1]) != 0) in bgscan_learn_bss_match()
/external/wpa_supplicant_8/src/rsn_supp/
Dtdls.c260 if (os_memcmp(peer->addr, dest, ETH_ALEN) == 0) in wpa_tdls_tpk_send()
403 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) { in wpa_tdls_generate_tpk()
424 if (os_memcmp(own_addr, peer->addr, ETH_ALEN) < 0) { in wpa_tdls_generate_tpk()
746 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_send_teardown()
833 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_teardown_link()
866 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_disable_unreachable_link()
902 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_get_link_status()
929 if (os_memcmp(peer->addr, src_addr, ETH_ALEN) == 0) in wpa_tdls_recv_teardown()
1024 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) { in wpa_tdls_add_peer()
1542 if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) { in wpa_tdls_process_discovery_request()
[all …]
Dpreauth.c62 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
327 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process()
387 if (os_memcmp(pos->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add()
476 os_memcmp(ssid + 2, sm->ssid, sm->ssid_len) != 0) in rsn_preauth_scan_result()
479 if (os_memcmp(bssid, sm->bssid, ETH_ALEN) == 0) in rsn_preauth_scan_result()
Dpeerkey.c441 if (os_memcmp(kde->smk + PMK_LEN, peerkey->pnonce, WPA_NONCE_LEN) != 0) in wpa_supplicant_process_smk_m4()
448 if (os_memcmp(kde->nonce, peerkey->inonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_smk_m4()
477 if (os_memcmp(key->key_nonce, peerkey->inonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_smk_m5()
483 if (os_memcmp(kde->smk + PMK_LEN, peerkey->inonce, WPA_NONCE_LEN) != 0) in wpa_supplicant_process_smk_m5()
543 if (os_memcmp(peerkey->addr, kde.mac_addr, ETH_ALEN) == 0 && in wpa_supplicant_process_smk_m45()
544 os_memcmp(peerkey->initiator ? peerkey->inonce : in wpa_supplicant_process_smk_m45()
638 if (os_memcmp(peerkey->addr, kde.mac_addr, ETH_ALEN) == in wpa_supplicant_process_smk_error()
788 os_memcmp(kde.rsn_ie, peerkey->rsnie_p, kde.rsn_ie_len) != 0) { in wpa_supplicant_process_stk_2_of_4()
831 os_memcmp(kde.rsn_ie, peerkey->rsnie_i, kde.rsn_ie_len) != 0) { in wpa_supplicant_process_stk_3_of_4()
843 if (os_memcmp(peerkey->inonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_stk_3_of_4()
Dwpa_ft.c392 if (os_memcmp(target_ap, sm->target_ap, ETH_ALEN) != 0) { in wpa_ft_process_response()
413 os_memcmp(mdie->mobility_domain, sm->mobility_domain, in wpa_ft_process_response()
425 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
691 os_memcmp(mdie->mobility_domain, sm->mobility_domain, in wpa_ft_validate_reassoc_resp()
703 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp()
712 if (os_memcmp(ftie->anonce, sm->anonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp()
Dpmksa_cache.c167 if (os_memcmp(aa, pos->aa, ETH_ALEN) == 0) { in pmksa_cache_add()
273 os_memcmp(pmk, entry->pmk, pmk_len) == 0))) { in pmksa_cache_flush()
331 if ((aa == NULL || os_memcmp(entry->aa, aa, ETH_ALEN) == 0) && in pmksa_cache_get()
333 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) && in pmksa_cache_get()
/external/wpa_supplicant_8/src/drivers/
Ddriver_roboswitch.c178 os_memcmp(buf, drv->own_addr, ETH_ALEN) == 0) in wpa_driver_roboswitch_receive()
269 os_memcmp(read1, read2, 6) != 0) in wpa_driver_roboswitch_join()
303 if (os_memcmp(addr_read, addr_be16, 6) == 0 && ports_read == ports) { in wpa_driver_roboswitch_leave()
309 if (os_memcmp(addr_read, addr_be16, 6) == 0 && in wpa_driver_roboswitch_leave()
335 if (os_memcmp(addr_read, addr_be16, 6) == 0 && in wpa_driver_roboswitch_leave()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_linux.c170 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { in l2_packet_receive()
176 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { in l2_packet_receive()
218 if (os_memcmp(ll.sll_addr, l2->own_addr, ETH_ALEN) == 0) { in l2_packet_receive_br()
227 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { in l2_packet_receive_br()
232 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { in l2_packet_receive_br()
/external/wpa_supplicant_8/src/common/
Dctrl_iface_common.c47 if (os_memcmp(&in6_a->sin6_addr, &in6_b->sin6_addr, in sockaddr_compare()
62 os_memcmp(u_a->sun_path, u_b->sun_path, in sockaddr_compare()
/external/wpa_supplicant_8/src/p2p/
Dp2p_group.c580 if (os_memcmp(m->addr, addr, ETH_ALEN) == 0) in p2p_group_remove_member()
786 if (os_memcmp(msg.device_id, group->p2p->cfg->dev_addr, ETH_ALEN) == 0) in p2p_group_match_dev_id()
790 if (os_memcmp(msg.device_id, m->dev_addr, ETH_ALEN) == 0) in p2p_group_match_dev_id()
845 if (os_memcmp(dev_id, m->dev_addr, ETH_ALEN) == 0) in p2p_group_get_client()
859 if (os_memcmp(interface_addr, m->addr, ETH_ALEN) == 0) in p2p_group_get_client_iface()
1024 if (os_memcmp(m->dev_addr, dev_addr, ETH_ALEN) == 0) in p2p_group_is_client_connected()
1037 if (os_memcmp(group_id, group->p2p->cfg->dev_addr, ETH_ALEN) != 0) in p2p_group_is_group_id_match()
1039 return os_memcmp(group_id + ETH_ALEN, group->cfg->ssid, in p2p_group_is_group_id_match()
Dp2p_dev_disc.c226 os_memcmp(sa, go->info.p2p_device_addr, ETH_ALEN) != 0) { in p2p_process_dev_disc_resp()
252 os_memcmp(p2p->pending_client_disc_addr, in p2p_process_dev_disc_resp()
254 os_memcmp(p2p->go_neg_peer->member_in_go_dev, in p2p_process_dev_disc_resp()
/external/wpa_supplicant_8/src/wps/
Dwps_registrar.c209 if (os_memcmp(reg->authorized_macs[i], addr, ETH_ALEN) == 0) { in wps_registrar_add_authorized_mac()
230 if (os_memcmp(reg->authorized_macs, addr, ETH_ALEN) == 0) in wps_registrar_remove_authorized_mac()
267 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get()
324 if (os_memcmp(pbc->addr, addr, ETH_ALEN) == 0 && in wps_registrar_add_pbc_session()
325 os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0) { in wps_registrar_add_pbc_session()
374 if (os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0 || in wps_registrar_remove_pbc_session()
376 os_memcmp(reg->p2p_dev_addr, p2p_dev_addr, ETH_ALEN) == in wps_registrar_remove_pbc_session()
427 os_memcmp(pbc->uuid_e, first->uuid_e, WPS_UUID_LEN) == 0) { in wps_registrar_pbc_overlap()
432 os_memcmp(uuid_e, pbc->uuid_e, WPS_UUID_LEN)) { in wps_registrar_pbc_overlap()
868 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) { in wps_registrar_invalidate_pin()
[all …]
Dndef.c160 if (os_memcmp(record->type, wifi_handover_type, in wifi_filter()
186 if (os_memcmp(record->type, p2p_handover_type, in p2p_filter()
/external/wpa_supplicant_8/src/utils/
Dos.h371 int os_memcmp(const void *s1, const void *s2, size_t n);
511 #ifndef os_memcmp
512 #define os_memcmp(s1, s2, n) memcmp((s1), (s2), (n)) macro
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_kay.c71 return os_memcmp(ki1->mi, ki2->mi, MI_LEN) == 0 && in is_ki_equal()
258 if (os_memcmp(participant->ckn.name, ckn, in ieee802_1x_kay_get_participant()
294 if (os_memcmp(peer->mi, mi, MI_LEN) == 0) in get_peer_mi()
374 if (os_memcmp(cipher_suite_tbl[i].id, cs_id, CS_ID_LEN) == 0) in ieee802_1x_kay_get_cipher_suite()
395 if (os_memcmp(&peer->sci, sci, sizeof(peer->sci)) == 0) in ieee802_1x_kay_get_peer_sci()
401 if (os_memcmp(&peer->sci, sci, sizeof(peer->sci)) == 0) in ieee802_1x_kay_get_peer_sci()
601 if (os_memcmp(peer->mi, mi, MI_LEN) == 0) in ieee802_1x_kay_move_live_peer()
731 if (os_memcmp(body->actor_mi, participant->mi, MI_LEN) == 0) { in ieee802_1x_mka_decode_basic_body()
958 if (os_memcmp(peer_mi, participant->mi, MI_LEN) == 0 && in ieee802_1x_mka_i_in_peerlist()
1004 if (os_memcmp(peer_mi, participant->mi, MI_LEN) == 0) { in ieee802_1x_mka_decode_live_peer_body()
[all …]

123456