Home
last modified time | relevance | path

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

123456

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ft.c395 if (os_memcmp(target_ap, sm->target_ap, ETH_ALEN) != 0) { in wpa_ft_process_response()
417 os_memcmp(mdie->mobility_domain, sm->mobility_domain, in wpa_ft_process_response()
429 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
444 os_memcmp(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0) { in wpa_ft_process_response()
460 os_memcmp(parse.rsn_pmkid, sm->pmk_r0_name, WPA_PMK_NAME_LEN)) { in wpa_ft_process_response()
695 os_memcmp(mdie->mobility_domain, sm->mobility_domain, in wpa_ft_validate_reassoc_resp()
707 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp()
716 if (os_memcmp(ftie->anonce, sm->anonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp()
731 os_memcmp(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0) { in wpa_ft_validate_reassoc_resp()
746 if (os_memcmp(parse.r1kh_id, sm->r1kh_id, FT_R1KH_ID_LEN) != 0) { in wpa_ft_validate_reassoc_resp()
[all …]
Dtdls.c240 if (os_memcmp(peer->addr, dest, ETH_ALEN) == 0) in wpa_tdls_tpk_send()
380 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) { in wpa_tdls_generate_tpk()
401 if (os_memcmp(own_addr, peer->addr, ETH_ALEN) < 0) { in wpa_tdls_generate_tpk()
552 if (os_memcmp(mic, ftie->mic, 16) != 0) { in wpa_supplicant_verify_tdls_mic()
579 if (os_memcmp(mic, ftie->mic, 16) != 0) { in wpa_supplicant_verify_tdls_mic_teardown()
675 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_send_teardown()
758 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_teardown_link()
791 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_disable_link()
813 if (os_memcmp(peer->addr, src_addr, ETH_ALEN) == 0) in wpa_tdls_recv_teardown()
901 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) { in wpa_tdls_add_peer()
[all …]
Dpeerkey.c440 if (os_memcmp(kde->smk + PMK_LEN, peerkey->pnonce, WPA_NONCE_LEN) != 0) in wpa_supplicant_process_smk_m4()
447 if (os_memcmp(kde->nonce, peerkey->inonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_smk_m4()
476 if (os_memcmp(key->key_nonce, peerkey->inonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_smk_m5()
482 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()
640 if (os_memcmp(peerkey->addr, kde.mac_addr, ETH_ALEN) == in wpa_supplicant_process_smk_error()
681 if (os_memcmp(ie.pmkid, peerkey->smkid, PMKID_LEN) != 0) { in wpa_supplicant_process_stk_1_of_4()
791 if (os_memcmp(kde.pmkid, peerkey->smkid, PMKID_LEN) != 0) { in wpa_supplicant_process_stk_2_of_4()
798 os_memcmp(kde.rsn_ie, peerkey->rsnie_p, kde.rsn_ie_len) != 0) { in wpa_supplicant_process_stk_2_of_4()
[all …]
Dpmksa_cache.c153 if (os_memcmp(aa, pos->aa, ETH_ALEN) == 0) { in pmksa_cache_add()
155 os_memcmp(pos->pmk, pmk, pmk_len) == 0 && in pmksa_cache_add()
156 os_memcmp(pos->pmkid, entry->pmkid, PMKID_LEN) == in pmksa_cache_add()
259 os_memcmp(pmk, entry->pmk, pmk_len) == 0))) { in pmksa_cache_flush()
317 if ((aa == NULL || os_memcmp(entry->aa, aa, ETH_ALEN) == 0) && in pmksa_cache_get()
319 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) && in pmksa_cache_get()
Dpreauth.c62 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
309 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process()
369 if (os_memcmp(pos->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add()
446 os_memcmp(ssid + 2, sm->ssid, sm->ssid_len) != 0) in rsn_preauth_scan_result()
449 if (os_memcmp(bssid, sm->bssid, ETH_ALEN) == 0) in rsn_preauth_scan_result()
Dwpa.c161 os_memcmp(pmkid, sm->cur_pmksa->pmkid, PMKID_LEN) == 0) { in wpa_supplicant_get_pmk()
795 os_memcmp(mdie->mobility_domain, sm->mobility_domain, in ft_validate_mdie()
804 os_memcmp(assoc_resp_mdie, ie->mdie, 2 + ie->mdie[1]) != 0)) { in ft_validate_mdie()
832 os_memcmp(assoc_resp_ftie, ie->ftie, 2 + ie->ftie[1]) != 0) { in ft_validate_ftie()
865 if (os_memcmp(rsn.pmkid, sm->pmk_r1_name, WPA_PMK_NAME_LEN) != 0) { in ft_validate_rsnie()
945 os_memcmp(ie->wpa_ie, sm->ap_wpa_ie, ie->wpa_ie_len) != 0)) || in wpa_supplicant_validate_ie()
1075 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4()
1377 if (os_memcmp(mic, key->key_mic, 16) != 0) { in wpa_supplicant_verify_eapol_key_mic()
1393 if (os_memcmp(mic, key->key_mic, 16) != 0) { in wpa_supplicant_verify_eapol_key_mic()
1679 if (os_memcmp(peerkey->addr, src_addr, ETH_ALEN) == 0) in wpa_sm_rx_eapol()
[all …]
/external/wpa_supplicant_8/src/ap/
Deap_user_db.c117 os_memcmp(argv[id], user->identity, len) == 0 && in get_wildcard_cb()
220 os_memcmp(identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN) == 0) { in hostapd_get_eap_user()
229 os_memcmp(identity, WSC_ID_REGISTRAR, WSC_ID_REGISTRAR_LEN) == 0) { in hostapd_get_eap_user()
249 os_memcmp(user->identity, identity, user->identity_len) == in hostapd_get_eap_user()
257 os_memcmp(user->identity, identity, identity_len) == 0) in hostapd_get_eap_user()
Dwpa_auth_ft.c230 if (os_memcmp(r0->spa, spa, ETH_ALEN) == 0 && in wpa_ft_fetch_pmk_r0()
231 os_memcmp(r0->pmk_r0_name, pmk_r0_name, WPA_PMK_NAME_LEN) in wpa_ft_fetch_pmk_r0()
280 if (os_memcmp(r1->spa, spa, ETH_ALEN) == 0 && in wpa_ft_fetch_pmk_r1()
281 os_memcmp(r1->pmk_r1_name, pmk_r1_name, WPA_PMK_NAME_LEN) in wpa_ft_fetch_pmk_r1()
306 os_memcmp(r0kh->id, r0kh_id, r0kh_id_len) == 0) in wpa_ft_pull_pmk_r1()
812 os_memcmp(mdie->mobility_domain, in wpa_ft_process_auth_req()
996 if (os_memcmp(parse.rsn_pmkid, sm->pmk_r1_name, WPA_PMK_NAME_LEN) != 0) in wpa_ft_validate_reassoc()
1005 os_memcmp(mdie->mobility_domain, in wpa_ft_validate_reassoc()
1018 if (os_memcmp(ftie->snonce, sm->SNonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
1027 if (os_memcmp(ftie->anonce, sm->ANonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
[all …]
Dap_config.c184 return os_memcmp(a, b, sizeof(macaddr)); in hostapd_mac_comp()
191 return os_memcmp(a, empty, sizeof(macaddr)); in hostapd_mac_comp_empty()
340 os_memcmp(a->key[i], b->key[i], a->len[i]) != 0) in hostapd_wep_key_cmp()
572 res = os_memcmp(list[middle].addr, addr, ETH_ALEN); in hostapd_maclist_found()
649 (addr && os_memcmp(psk->addr, addr, ETH_ALEN) == 0) || in hostapd_get_psk()
651 os_memcmp(psk->p2p_dev_addr, p2p_dev_addr, ETH_ALEN) == in hostapd_get_psk()
Dpmksa_cache_auth.c370 os_memcmp(entry->spa, spa, ETH_ALEN) == 0) && in pmksa_cache_auth_get()
372 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0)) in pmksa_cache_auth_get()
399 if (os_memcmp(entry->spa, spa, ETH_ALEN) != 0) in pmksa_cache_get_okc()
403 if (os_memcmp(new_pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_get_okc()
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()
/external/wpa_supplicant_8/wpa_supplicant/
Dbss.c218 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get()
220 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get()
270 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known()
281 os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 || in wpa_bss_in_use()
282 os_memcmp(bss->bssid, wpa_s->pending_bssid, ETH_ALEN) == 0; in wpa_bss_in_use()
412 os_memcmp(old_ie, new_ie, old_ie_len) == 0); in are_ies_equal()
440 os_memcmp(old + 1, new + 1, old->ie_len) == 0) in wpa_bss_compare_res()
620 os_memcmp(ssid + 2, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) == 0) in wpa_bss_update_scan_res()
679 os_memcmp(s->ssid, bss->ssid, bss->ssid_len) == in wpa_bss_included_in_scan()
849 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in wpa_bss_get_bssid()
[all …]
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()
Doffchannel.c25 if (os_memcmp(src, wpa_s->own_addr, ETH_ALEN) == 0) in wpas_get_tx_interface()
33 if (os_memcmp(wpa_s->pending_action_src, in wpas_get_tx_interface()
156 if (os_memcmp(dst, wpa_s->pending_action_dst, ETH_ALEN) != 0) { in offchannel_send_action_tx_status()
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()
467 os_memcmp(data->ssid->ssid, ie + 2, ie[1]) != 0) in bgscan_learn_bss_match()
/external/wpa_supplicant_8/src/drivers/
Ddriver_roboswitch.c176 os_memcmp(buf, drv->own_addr, ETH_ALEN) == 0) in wpa_driver_roboswitch_receive()
267 if (os_memcmp(read1, read2, 6) != 0) in wpa_driver_roboswitch_join()
301 if (os_memcmp(addr_read, addr_be16, 6) == 0 && ports_read == ports) { in wpa_driver_roboswitch_leave()
307 if (os_memcmp(addr_read, addr_be16, 6) == 0 && in wpa_driver_roboswitch_leave()
333 if (os_memcmp(addr_read, addr_be16, 6) == 0 && in wpa_driver_roboswitch_leave()
/external/wpa_supplicant_8/src/utils/
Dos.h289 int os_memcmp(const void *s1, const void *s2, size_t n);
438 #ifndef os_memcmp
439 #define os_memcmp(s1, s2, n) memcmp((s1), (s2), (n)) macro
Dip_addr.c50 if (os_memcmp(&a->u.v6, &b->u.v6, sizeof(a->u.v6)) != 0) in hostapd_ip_diff()
/external/wpa_supplicant_8/src/p2p/
Dp2p_group.c542 if (os_memcmp(m->addr, addr, ETH_ALEN) == 0) in p2p_group_remove_member()
739 if (os_memcmp(msg.device_id, group->p2p->cfg->dev_addr, ETH_ALEN) == 0) in p2p_group_match_dev_id()
743 if (os_memcmp(msg.device_id, m->dev_addr, ETH_ALEN) == 0) in p2p_group_match_dev_id()
798 if (os_memcmp(dev_id, m->dev_addr, ETH_ALEN) == 0) in p2p_group_get_client()
812 if (os_memcmp(interface_addr, m->addr, ETH_ALEN) == 0) in p2p_group_get_client_iface()
965 if (os_memcmp(m->dev_addr, dev_addr, ETH_ALEN) == 0) in p2p_group_is_client_connected()
978 if (os_memcmp(group_id, group->p2p->cfg->dev_addr, ETH_ALEN) != 0) in p2p_group_is_group_id_match()
980 return os_memcmp(group_id + ETH_ALEN, group->cfg->ssid, in p2p_group_is_group_id_match()
Dp2p_dev_disc.c222 os_memcmp(sa, go->info.p2p_device_addr, ETH_ALEN) != 0) { in p2p_process_dev_disc_resp()
248 os_memcmp(p2p->pending_client_disc_addr, in p2p_process_dev_disc_resp()
250 os_memcmp(p2p->go_neg_peer->member_in_go_dev, in p2p_process_dev_disc_resp()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_gpsk.c297 os_memcmp(pos, sm->server_id, alen) != 0) { in eap_gpsk_process_gpsk_2()
322 if (os_memcmp(data->rand_server, pos, EAP_GPSK_RAND_LEN) != 0) { in eap_gpsk_process_gpsk_2()
349 os_memcmp(pos, data->csuite_list, alen) != 0) { in eap_gpsk_process_gpsk_2()
365 if (os_memcmp(csuite, &data->csuite_list[i], sizeof(*csuite)) in eap_gpsk_process_gpsk_2()
436 if (os_memcmp(mic, pos, miclen) != 0) { in eap_gpsk_process_gpsk_2()
505 if (os_memcmp(mic, pos, miclen) != 0) { in eap_gpsk_process_gpsk_4()
Deap_server_gtc.c133 os_memcmp(pos, sm->identity, sm->identity_len))) { in eap_gtc_process()
178 os_memcmp(pos, sm->user->password, rlen) != 0) { in eap_gtc_process()
/external/wpa_supplicant_8/src/wps/
Dwps_registrar.c205 if (os_memcmp(reg->authorized_macs[i], addr, ETH_ALEN) == 0) { in wps_registrar_add_authorized_mac()
226 if (os_memcmp(reg->authorized_macs, addr, ETH_ALEN) == 0) in wps_registrar_remove_authorized_mac()
263 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get()
320 if (os_memcmp(pbc->addr, addr, ETH_ALEN) == 0 && in wps_registrar_add_pbc_session()
321 os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0) { in wps_registrar_add_pbc_session()
369 if (os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0 || in wps_registrar_remove_pbc_session()
372 os_memcmp(pbc->addr, p2p_dev_addr, ETH_ALEN) == in wps_registrar_remove_pbc_session()
375 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()
[all …]
Dwps_enrollee.c486 if (os_memcmp(wps->nonce_e, e_nonce, WPS_NONCE_LEN) != 0) { in wps_process_enrollee_nonce()
582 if (os_memcmp(wps->peer_hash1, hash, WPS_HASH_LEN) != 0) { in wps_process_r_snonce1()
622 if (os_memcmp(wps->peer_hash2, hash, WPS_HASH_LEN) != 0) { in wps_process_r_snonce2()
651 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e()
752 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e()
1180 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_msg()
1275 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_ack()
1282 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_ack()
1322 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_nack()
1333 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_nack()
Dwps_attr_process.c44 if (os_memcmp(hash, authenticator, WPS_AUTHENTICATOR_LEN) != 0) { in wps_process_authenticator()
74 if (os_memcmp(hash, key_wrap_auth, WPS_KWA_LEN) != 0) { in wps_process_key_wrap_auth()

123456