| /freebsd-13.1/contrib/wpa/src/crypto/ |
| H A D | crypto_module_tests.c | 101 if (os_memcmp(out, iv_c, sizeof(iv_c)) != 0) { in test_siv() 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() 1394 os_memcmp(psk, test->psk, 32) == 0) in test_sha1() 1878 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256() 1888 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256() 2055 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-13.1/contrib/wpa/src/common/ |
| H A D | common_module_tests.c | 424 os_memcmp(wpabuf_head(buf), local_commit, in sae_tests() 440 if (os_memcmp(pmk, sae.pmk, SAE_PMK_LEN) != 0) { in sae_tests() 470 os_memcmp(pwe_19_y, bin + prime_len, in sae_tests() 493 os_memcmp(pwe_15, bin, prime_len) != 0) { in sae_tests() 660 os_memcmp(kck, ptk.kck, sizeof(kck)) != 0) { in pasn_test_pasn_auth() 666 os_memcmp(tk, ptk.tk, sizeof(tk)) != 0) { in pasn_test_pasn_auth() 672 os_memcmp(kdk, ptk.kdk, sizeof(kdk)) != 0) { in pasn_test_pasn_auth() 739 os_memcmp(kck, ptk.kck, sizeof(kck)) != 0) { in pasn_test_no_pasn_auth() 745 os_memcmp(kek, ptk.kek, sizeof(kek)) != 0) { in pasn_test_no_pasn_auth() 751 os_memcmp(tk, ptk.tk, sizeof(tk)) != 0) { in pasn_test_no_pasn_auth() [all …]
|
| 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-13.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(entry->pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_get_okc() 527 if (os_memcmp(new_pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_get_okc() 562 if (os_memcmp(attr->sta_addr, entry->spa, ETH_ALEN) != 0) in das_attr_match() 574 if (os_memcmp(attr->acct_multi_session_id, buf, 16) != 0) in das_attr_match() 582 os_memcmp(attr->cui, wpabuf_head(entry->cui), in das_attr_match() 591 os_memcmp(attr->user_name, entry->identity, in das_attr_match() [all …]
|
| 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-13.1/contrib/wpa/wpa_supplicant/ |
| H A D | bss.c | 255 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get() 257 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 348 if (os_memcmp(bss->bssid, wpa_s->pending_join_iface_addr, in is_p2p_pending_bss() 371 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() 386 os_memcmp(bss->ssid, wpa_s->current_bss->ssid, in wpa_bss_in_use() 391 (os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 || in wpa_bss_in_use() 530 os_memcmp(old_ie, new_ie, old_ie_len) == 0); in are_ies_equal() 872 os_memcmp(s->ssid, bss->ssid, bss->ssid_len) == in wpa_bss_included_in_scan() 1013 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in wpa_bss_get_bssid() 1038 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 | bssid_ignore.c | 40 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) in wpa_bssid_ignore_get() 126 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) { in wpa_bssid_ignore_del()
|
| H A D | mesh_rsn.c | 437 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_aek() 469 if (os_memcmp(sta->my_nonce, sta->peer_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_derive_mtk() 497 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_mtk() 657 os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN) != 0)) { in mesh_rsn_process_ampe() 713 if (os_memcmp(ampe->peer_nonce, null_nonce, WPA_NONCE_LEN) != 0 && in mesh_rsn_process_ampe() 714 os_memcmp(ampe->peer_nonce, sta->my_nonce, WPA_NONCE_LEN) != 0) { in mesh_rsn_process_ampe()
|
| H A D | pasn_supplicant.c | 520 if (os_memcmp(pasn->fils.session, elems.fils_session, in wpas_pasn_wd_fils_rx() 1132 if (os_memcmp(wpa_s->bssid, bssid, ETH_ALEN) == 0) { in wpas_pasn_allowed() 1359 if (os_memcmp(mgmt->da, wpa_s->own_addr, ETH_ALEN) != 0 || in wpas_pasn_auth_rx() 1360 os_memcmp(mgmt->sa, pasn->bssid, ETH_ALEN) != 0 || in wpas_pasn_auth_rx() 1361 os_memcmp(mgmt->bssid, pasn->bssid, ETH_ALEN) != 0) in wpas_pasn_auth_rx() 1543 if (ret || os_memcmp(mic, out_mic, mic_len) != 0) { in wpas_pasn_auth_rx() 1621 if (os_memcmp(mgmt->da, pasn->bssid, ETH_ALEN) || in wpas_pasn_auth_tx_status() 1622 os_memcmp(mgmt->sa, wpa_s->own_addr, ETH_ALEN) || in wpas_pasn_auth_tx_status() 1623 os_memcmp(mgmt->bssid, pasn->bssid, ETH_ALEN)) in wpas_pasn_auth_tx_status() 1668 if (os_memcmp(wpa_s->bssid, bssid, ETH_ALEN) == 0) { in wpas_pasn_deauthenticate()
|
| /freebsd-13.1/contrib/wpa/src/l2_packet/ |
| H A D | l2_packet_linux.c | 182 (os_memcmp(eth->h_dest, l2->own_addr, ETH_ALEN) == 0 || in l2_packet_receive() 196 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { in l2_packet_receive() 202 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { in l2_packet_receive() 244 if (os_memcmp(ll.sll_addr, l2->own_addr, ETH_ALEN) == 0) { in l2_packet_receive_br() 253 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { in l2_packet_receive_br() 258 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { in l2_packet_receive_br()
|
| /freebsd-13.1/contrib/wpa/src/rsn_supp/ |
| H A D | tdls.c | 283 if (os_memcmp(peer->addr, dest, ETH_ALEN) == 0) in wpa_tdls_tpk_send() 444 if (os_memcmp(own_addr, peer->addr, ETH_ALEN) < 0) { in wpa_tdls_generate_tpk() 770 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_send_teardown() 857 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_teardown_link() 890 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_disable_unreachable_link() 926 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_get_link_status() 953 if (os_memcmp(peer->addr, src_addr, ETH_ALEN) == 0) in wpa_tdls_recv_teardown() 1048 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) { in wpa_tdls_add_peer() 2787 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_remove() 3094 if (os_memcmp(peer->addr, addr, ETH_ALEN) == 0) in wpa_tdls_enable_chan_switch() [all …]
|
| H A D | preauth.c | 71 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) { in rsn_preauth_receive() 333 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process() 395 if (os_memcmp(pos->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add() 484 os_memcmp(ssid + 2, sm->ssid, sm->ssid_len) != 0) in rsn_preauth_scan_result() 487 if (os_memcmp(bssid, sm->bssid, ETH_ALEN) == 0) in rsn_preauth_scan_result()
|
| H A D | pmksa_cache.c | 227 if (os_memcmp(entry->aa, pos->aa, ETH_ALEN) == 0) { in pmksa_cache_add_entry() 343 os_memcmp(pmk, entry->pmk, pmk_len) == 0)) && in pmksa_cache_flush() 404 if ((aa == NULL || os_memcmp(entry->aa, aa, ETH_ALEN) == 0) && in pmksa_cache_get() 406 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) && in pmksa_cache_get() 508 os_memcmp(cache_id, entry->fils_cache_id, in pmksa_cache_get_fils_cache_id()
|
| H A D | wpa_ft.c | 563 if (os_memcmp(target_ap, sm->target_ap, ETH_ALEN) != 0) { in wpa_ft_process_response() 584 os_memcmp(mdie->mobility_domain, sm->mobility_domain, in wpa_ft_process_response() 614 if (os_memcmp(snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response() 1010 os_memcmp(mdie->mobility_domain, sm->mobility_domain, in wpa_ft_validate_reassoc_resp() 1046 if (os_memcmp(snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp() 1055 if (os_memcmp(anonce, sm->anonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp() 1178 os_memcmp(sm->ap_rsnxe, parse.rsnxe - 2, in wpa_ft_validate_reassoc_resp() 1283 if (os_memcmp(sm->pasn_r1kh[i].bssid, bssid, ETH_ALEN) == 0) in wpa_ft_pasn_get_r1kh()
|
| /freebsd-13.1/contrib/wpa/src/drivers/ |
| H A D | driver_roboswitch.c | 178 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() 305 if (os_memcmp(addr_read, addr_be16, 6) == 0 && ports_read == ports) { in wpa_driver_roboswitch_leave() 314 if (os_memcmp(addr_read, addr_be16, 6) == 0 && in wpa_driver_roboswitch_leave() 343 if (os_memcmp(addr_read, addr_be16, 6) == 0 && in wpa_driver_roboswitch_leave()
|
| /freebsd-13.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-13.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-13.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 | 262 if (os_memcmp(reg->authorized_macs, addr, ETH_ALEN) == 0) in wps_registrar_remove_authorized_mac() 299 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get() 356 if (os_memcmp(pbc->addr, addr, ETH_ALEN) == 0 && in wps_registrar_add_pbc_session() 357 os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0) { in wps_registrar_add_pbc_session() 406 if (os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) == 0 || in wps_registrar_remove_pbc_session() 408 os_memcmp(reg->p2p_dev_addr, p2p_dev_addr, ETH_ALEN) == in wps_registrar_remove_pbc_session() 464 os_memcmp(uuid_e, pbc->uuid_e, WPS_UUID_LEN)) { in wps_registrar_pbc_overlap() 917 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) { in wps_registrar_invalidate_pin() 939 os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) { in wps_registrar_get_pin() 996 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) { in wps_registrar_unlock_pin() [all …]
|
| /freebsd-13.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
|