| /freebsd-12.1/contrib/wpa/src/crypto/ |
| H A D | crypto_module_tests.c | 231 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector() 244 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector() 259 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector() 275 os_memcmp(result, result2, 16) != 0) { in test_omac1_vector() 490 os_memcmp(out, cipher, 16) != 0) { in test_ecb() 1245 os_memcmp(psk, test->psk, 32) == 0) in test_sha1() 1729 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256() 1739 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256() 1817 os_memcmp(hash, hash_res, 48) != 0) { in test_sha384() 1906 os_memcmp(w, buf, sizeof(w)) != 0) { in test_fips186_2_prf() [all …]
|
| H A D | crypto_internal-modexp.c | 23 if (os_memcmp(privkey, prime, prime_len) > 0) { in crypto_dh_init() 53 os_memcmp(pubkey, prime, prime_len) >= 0)) in crypto_dh_derive_secret()
|
| /freebsd-12.1/contrib/wpa/src/ap/ |
| H A D | pmksa_cache_auth.c | 483 os_memcmp(entry->spa, spa, ETH_ALEN) == 0) && in pmksa_cache_auth_get() 484 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_auth_get() 490 os_memcmp(entry->spa, spa, ETH_ALEN) == 0) in pmksa_cache_auth_get() 517 if (os_memcmp(entry->spa, spa, ETH_ALEN) != 0) in pmksa_cache_get_okc() 521 if (os_memcmp(new_pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_get_okc() 556 if (os_memcmp(attr->sta_addr, entry->spa, ETH_ALEN) != 0) in das_attr_match() 568 if (os_memcmp(attr->acct_multi_session_id, buf, 16) != 0) in das_attr_match() 576 os_memcmp(attr->cui, wpabuf_head(entry->cui), in das_attr_match() 585 os_memcmp(attr->user_name, entry->identity, in das_attr_match() 698 if (addr && os_memcmp(entry->spa, addr, ETH_ALEN) != 0) in pmksa_cache_auth_list_mesh()
|
| H A D | eap_user_db.c | 121 os_memcmp(argv[id], user->identity, len) == 0 && in get_wildcard_cb() 240 os_memcmp(identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN) == 0) { in hostapd_get_eap_user() 249 os_memcmp(identity, WSC_ID_REGISTRAR, WSC_ID_REGISTRAR_LEN) == 0) { in hostapd_get_eap_user() 269 os_memcmp(user->identity, identity, user->identity_len) == in hostapd_get_eap_user() 277 os_memcmp(user->identity, identity, identity_len) == 0) in hostapd_get_eap_user()
|
| H A D | ap_list.c | 58 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()
|
| /freebsd-12.1/contrib/wpa/src/common/ |
| H A D | common_module_tests.c | 373 os_memcmp(wpabuf_head(buf), local_commit, in sae_tests() 384 if (os_memcmp(kck, sae.tmp->kck, SAE_KCK_LEN) != 0) { in sae_tests() 389 if (os_memcmp(pmk, sae.pmk, SAE_PMK_LEN) != 0) { in sae_tests() 394 if (os_memcmp(pmkid, sae.pmkid, SAE_PMKID_LEN) != 0) { in sae_tests() 405 os_memcmp(wpabuf_head(buf), local_confirm, in sae_tests()
|
| H A D | ctrl_iface_common.c | 47 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()
|
| /freebsd-12.1/contrib/wpa/wpa_supplicant/ |
| H A D | bss.c | 267 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get() 269 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 362 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() 377 os_memcmp(bss->ssid, wpa_s->current_bss->ssid, in wpa_bss_in_use() 382 (os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 || in wpa_bss_in_use() 521 os_memcmp(old_ie, new_ie, old_ie_len) == 0); in are_ies_equal() 549 os_memcmp(old + 1, new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res() 863 os_memcmp(s->ssid, bss->ssid, bss->ssid_len) == in wpa_bss_included_in_scan() 1004 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in wpa_bss_get_bssid() 1029 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) != 0) in wpa_bss_get_bssid_latest() [all …]
|
| H A D | offchannel.c | 26 if (os_memcmp(src, wpa_s->own_addr, ETH_ALEN) == 0) { in wpas_get_tx_interface() 30 os_memcmp(wpa_s->parent->own_addr, in wpas_get_tx_interface() 55 if (os_memcmp(src, iface->own_addr, ETH_ALEN) == 0) in wpas_get_tx_interface() 189 if (os_memcmp(dst, wpa_s->pending_action_dst, ETH_ALEN) != 0) { in offchannel_send_action_tx_status() 197 os_memcmp(data + 24, wpabuf_head(wpa_s->pending_action_tx), in offchannel_send_action_tx_status()
|
| H A D | blacklist.c | 31 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()
|
| H A D | gas_query.c | 200 if (os_memcmp(q->addr, addr, ETH_ALEN) == 0 && in gas_query_get_pending() 243 if (os_memcmp(dst, query->addr, ETH_ALEN) != 0) { in gas_query_tx_status() 279 os_memcmp(addr, wpa_s->bssid, ETH_ALEN) != 0) in pmf_in_use() 310 os_memcmp(query->addr, gas->wpa_s->bssid, ETH_ALEN) == 0))) in gas_query_tx() 458 os_memcmp(adv_proto, wpabuf_head(query->adv_proto), in gas_query_rx_comeback() 670 if (os_memcmp(dst, q->addr, ETH_ALEN) == 0 && in gas_query_dialog_token_available()
|
| H A D | mesh_rsn.c | 438 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_aek() 470 if (os_memcmp(sta->my_nonce, sta->peer_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_derive_mtk() 498 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_mtk() 662 os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN) != 0)) { in mesh_rsn_process_ampe() 718 if (os_memcmp(ampe->peer_nonce, null_nonce, WPA_NONCE_LEN) != 0 && in mesh_rsn_process_ampe() 719 os_memcmp(ampe->peer_nonce, sta->my_nonce, WPA_NONCE_LEN) != 0) { in mesh_rsn_process_ampe()
|
| H A D | bgscan_learn.c | 60 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() 474 os_memcmp(data->ssid->ssid, ie + 2, ie[1]) != 0) in bgscan_learn_bss_match()
|
| /freebsd-12.1/contrib/wpa/src/rsn_supp/ |
| H A D | tdls.c | 279 if (os_memcmp(peer->addr, dest, ETH_ALEN) == 0) in wpa_tdls_tpk_send() 440 if (os_memcmp(own_addr, peer->addr, ETH_ALEN) < 0) { in wpa_tdls_generate_tpk() 762 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_send_teardown() 849 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_teardown_link() 882 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_disable_unreachable_link() 918 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_get_link_status() 945 if (os_memcmp(peer->addr, src_addr, ETH_ALEN) == 0) in wpa_tdls_recv_teardown() 1040 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) { in wpa_tdls_add_peer() 2712 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_remove() 3014 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_enable_chan_switch() [all …]
|
| H A D | preauth.c | 62 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() 388 if (os_memcmp(pos->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add() 477 os_memcmp(ssid + 2, sm->ssid, sm->ssid_len) != 0) in rsn_preauth_scan_result() 480 if (os_memcmp(bssid, sm->bssid, ETH_ALEN) == 0) in rsn_preauth_scan_result()
|
| H A D | pmksa_cache.c | 185 if (os_memcmp(entry->aa, pos->aa, ETH_ALEN) == 0) { in pmksa_cache_add_entry() 295 os_memcmp(pmk, entry->pmk, pmk_len) == 0))) { in pmksa_cache_flush() 355 if ((aa == NULL || os_memcmp(entry->aa, aa, ETH_ALEN) == 0) && in pmksa_cache_get() 357 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) && in pmksa_cache_get() 439 os_memcmp(cache_id, entry->fils_cache_id, in pmksa_cache_get_fils_cache_id()
|
| /freebsd-12.1/contrib/wpa/src/p2p/ |
| H A D | p2p_group.c | 582 if (os_memcmp(m->addr, addr, ETH_ALEN) == 0) in p2p_group_remove_member() 788 if (os_memcmp(msg.device_id, group->p2p->cfg->dev_addr, ETH_ALEN) == 0) in p2p_group_match_dev_id() 792 if (os_memcmp(msg.device_id, m->dev_addr, ETH_ALEN) == 0) in p2p_group_match_dev_id() 847 if (os_memcmp(dev_id, m->dev_addr, ETH_ALEN) == 0) in p2p_group_get_client() 875 if (os_memcmp(interface_addr, m->addr, ETH_ALEN) == 0) in p2p_group_get_client_iface() 1041 if (os_memcmp(m->dev_addr, dev_addr, ETH_ALEN) == 0) in p2p_group_is_client_connected() 1054 if (os_memcmp(group_id, group->p2p->cfg->dev_addr, ETH_ALEN) != 0) in p2p_group_is_group_id_match() 1056 return os_memcmp(group_id + ETH_ALEN, group->cfg->ssid, in p2p_group_is_group_id_match()
|
| H A D | p2p_dev_disc.c | 226 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()
|
| /freebsd-12.1/contrib/wpa/src/drivers/ |
| H A D | driver_macsec_qca.c | 269 if (os_memcmp("eth2", ifname, 4) == 0) in macsec_qca_init() 271 else if (os_memcmp("eth3", ifname, 4) == 0) in macsec_qca_init() 307 if (os_memcmp("eth2", params->ifname, 4) == 0) in macsec_qca_hapd_init() 309 else if (os_memcmp("eth3", params->ifname, 4) == 0) in macsec_qca_hapd_init() 311 else if (os_memcmp("eth4", params->ifname, 4) == 0) in macsec_qca_hapd_init() 313 else if (os_memcmp("eth5", params->ifname, 4) == 0) in macsec_qca_hapd_init() 503 if (os_memcmp(&map[i].sci, sci, in macsec_qca_lookup_channel()
|
| H A D | driver_nl80211_event.c | 339 (os_memcmp(event.assoc_reject.bssid, in mlme_event_connect() 736 os_memcmp(bssid, drv->auth_bssid, ETH_ALEN) != 0 && in mlme_event_deauth_disassoc() 738 os_memcmp(bssid, drv->prev_bssid, ETH_ALEN) == 0) { in mlme_event_deauth_disassoc() 747 if (!os_memcmp(mgmt->sa, drv->first_bss->addr, in mlme_event_deauth_disassoc() 763 os_memcmp(bssid, drv->prev_bssid, ETH_ALEN) == 0 && in mlme_event_deauth_disassoc() 780 os_memcmp(bssid, drv->bssid, ETH_ALEN) != 0 && in mlme_event_deauth_disassoc() 781 os_memcmp(bssid, drv->auth_bssid, ETH_ALEN) != 0) { in mlme_event_deauth_disassoc() 803 !os_memcmp(mgmt->sa, drv->first_bss->addr, ETH_ALEN); in mlme_event_deauth_disassoc() 813 !os_memcmp(mgmt->sa, drv->first_bss->addr, ETH_ALEN); in mlme_event_deauth_disassoc() 917 os_memcmp(bss->addr, data + 4, ETH_ALEN) != 0 && in mlme_event() [all …]
|
| /freebsd-12.1/contrib/wpa/src/utils/ |
| H A D | os.h | 371 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
|
| /freebsd-12.1/contrib/wpa/src/wps/ |
| H A D | ndef.c | 160 if (os_memcmp(record->type, wifi_handover_type, in wifi_filter() 186 if (os_memcmp(record->type, p2p_handover_type, in p2p_filter()
|
| H A D | wps_registrar.c | 261 if (os_memcmp(reg->authorized_macs, addr, ETH_ALEN) == 0) in wps_registrar_remove_authorized_mac() 298 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get() 355 if (os_memcmp(pbc->addr, addr, ETH_ALEN) == 0 && in wps_registrar_add_pbc_session() 356 os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0) { in wps_registrar_add_pbc_session() 405 if (os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0 || in wps_registrar_remove_pbc_session() 407 os_memcmp(reg->p2p_dev_addr, p2p_dev_addr, ETH_ALEN) == in wps_registrar_remove_pbc_session() 463 os_memcmp(uuid_e, pbc->uuid_e, WPS_UUID_LEN)) { in wps_registrar_pbc_overlap() 916 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) { in wps_registrar_invalidate_pin() 938 os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) { in wps_registrar_get_pin() 995 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) { in wps_registrar_unlock_pin() [all …]
|
| H A D | wps_enrollee.c | 535 if (os_memcmp(wps->nonce_e, e_nonce, WPS_NONCE_LEN) != 0) { in wps_process_enrollee_nonce() 718 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e() 818 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e() 1280 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_msg() 1375 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_ack() 1382 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_ack() 1422 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_nack() 1433 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_nack()
|
| /freebsd-12.1/sys/dev/hptmv/ |
| H A D | global.h | 141 int HPTLIBAPI os_memcmp(const void *cs, const void *ct, unsigned len); 147 #define memcmp os_memcmp
|