/freebsd/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() 112 if (os_memcmp(out, plaintext, sizeof(plaintext)) != 0) { in test_siv() 132 if (os_memcmp(out, iv_c_2, sizeof(iv_c_2)) != 0) { in test_siv() 143 if (os_memcmp(out, plaintext_2, sizeof(plaintext_2)) != 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() 319 if (os_memcmp(data, cipher, sizeof(data)) != 0) { in test_eax() 324 if (os_memcmp(tag, cipher + sizeof(data), AES_BLOCK_SIZE) != 0) { in test_eax() [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/contrib/wpa/src/common/ |
H A D | common_module_tests.c | 424 os_memcmp(wpabuf_head(buf), local_commit, in sae_tests() 435 if (os_memcmp(kck, sae.tmp->kck, SAE_KCK_LEN) != 0) { in sae_tests() 440 if (os_memcmp(pmk, sae.pmk, SAE_PMK_LEN) != 0) { in sae_tests() 445 if (os_memcmp(pmkid, sae.pmkid, SAE_PMKID_LEN) != 0) { in sae_tests() 469 os_memcmp(pwe_19_x, bin, prime_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() 570 if (res_len != bytes || os_memcmp(val, res, res_len) != 0) { in sae_pk_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() [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()
|
H A D | dpp_auth.c | 940 os_memcmp(auth->waiting_pubkey_hash, peer_bi->pubkey_hash, in dpp_notify_new_qr_code() 1364 if (os_memcmp(auth->i_nonce, i_nonce, i_nonce_len) != 0) { in dpp_auth_resp_rx_status() 1461 if (os_memcmp(r_bootstrap, auth->peer_bi->pubkey_hash, in dpp_auth_resp_rx() 1484 os_memcmp(i_bootstrap, auth->own_bi->pubkey_hash, in dpp_auth_resp_rx() 1622 if (os_memcmp(auth->i_nonce, i_nonce, i_nonce_len) != 0) { in dpp_auth_resp_rx() 1712 if (os_memcmp(r_auth, r_auth2, r_auth_len) != 0) { in dpp_auth_resp_rx() 1794 if (os_memcmp(r_nonce, auth->r_nonce, r_nonce_len) != 0) { in dpp_auth_conf_rx_failure() 1868 if (os_memcmp(r_bootstrap, auth->own_bi->pubkey_hash, in dpp_auth_conf_rx() 1891 os_memcmp(i_bootstrap, auth->peer_bi->pubkey_hash, in dpp_auth_conf_rx() 1964 if (os_memcmp(i_auth, i_auth2, i_auth_len) != 0) { in dpp_auth_conf_rx()
|
/freebsd/contrib/wpa/src/ap/ |
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 | pmksa_cache_auth.c | 491 os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_auth_get() 528 if (os_memcmp(entry->pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_get_okc() 543 if (os_memcmp(new_pmkid, pmkid, PMKID_LEN) == 0) in pmksa_cache_get_okc() 590 if (os_memcmp(attr->acct_multi_session_id, buf, 16) != 0) in das_attr_match() 598 os_memcmp(attr->cui, wpabuf_head(entry->cui), in das_attr_match() 607 os_memcmp(attr->user_name, entry->identity, in das_attr_match()
|
/freebsd/contrib/wpa/wpa_supplicant/ |
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 | mesh_rsn.c | 456 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_aek() 488 if (os_memcmp(sta->my_nonce, sta->peer_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_derive_mtk() 516 if (os_memcmp(myaddr, peer, ETH_ALEN) < 0) { in mesh_rsn_derive_mtk() 676 os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN) != 0)) { in mesh_rsn_process_ampe() 732 if (os_memcmp(ampe->peer_nonce, null_nonce, WPA_NONCE_LEN) != 0 && in mesh_rsn_process_ampe() 733 os_memcmp(ampe->peer_nonce, sta->my_nonce, WPA_NONCE_LEN) != 0) { in mesh_rsn_process_ampe()
|
H A D | bss.c | 270 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 340 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) != 0)) in wpa_bss_is_wps_candidate() 385 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() 410 os_memcmp(bss->ssid, wpa_s->current_bss->ssid, in wpa_bss_in_use() 587 os_memcmp(old_ie, new_ie, old_ie_len) == 0); in are_ies_equal() 615 os_memcmp(wpa_bss_ie_ptr(old), new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res() 880 os_memcmp(ssid + 2, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) == 0) in wpa_bss_update_scan_res() 955 os_memcmp(s->ssid, bss->ssid, bss->ssid_len) == in wpa_bss_included_in_scan() 1036 os_memcmp(bss->ssid, wpa_s->last_ssid->ssid, in wpa_bss_flush_by_age()
|
H A D | ctrl_iface_udp.c | 127 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, 174 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, 308 if (os_memcmp(cookie, priv->cookie, COOKIE_LEN) != 0) { 702 if (os_memcmp(cookie, priv->cookie, COOKIE_LEN) != 0) {
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_roboswitch.c | 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/contrib/wpa/src/l2_packet/ |
H A D | l2_packet_linux.c | 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() 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/sys/dev/hptmv/ |
H A D | global.h | 139 int HPTLIBAPI os_memcmp(const void *cs, const void *ct, unsigned len); 145 #define memcmp os_memcmp
|
H A D | mv.c | 85 os_memcmp(const void *cs, const void *ct, unsigned len) in os_memcmp() function
|
/freebsd/contrib/wpa/src/utils/ |
H A D | os.h | 391 int os_memcmp(const void *s1, const void *s2, size_t n); 531 #ifndef os_memcmp 532 #define os_memcmp(s1, s2, n) memcmp((s1), (s2), (n)) macro
|
H A D | ip_addr.c | 67 os_memcmp(&a->u.v6, &b->u.v6, sizeof(a->u.v6)) == 0) in hostapd_ip_equal()
|
H A D | os_none.c | 159 int os_memcmp(const void *s1, const void *s2, size_t n) in os_memcmp() function
|
/freebsd/contrib/wpa/src/wps/ |
H A D | ndef.c | 166 if (os_memcmp(record->type, wifi_handover_type, in wifi_filter() 192 if (os_memcmp(record->type, p2p_handover_type, in p2p_filter()
|
H A D | wps_registrar.c | 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() 458 os_memcmp(pbc->uuid_e, first->uuid_e, WPS_UUID_LEN) == 0) { in wps_registrar_pbc_overlap() 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() 1205 os_memcmp(attr.uuid_e, reg->pbc_ignore_uuid, WPS_UUID_LEN) == 0) { in wps_registrar_probe_req_rx() 2220 if (os_memcmp(wps->nonce_r, r_nonce, WPS_NONCE_LEN) != 0) { in wps_process_registrar_nonce() 3048 os_memcmp(wps->nonce_r, attr.registrar_nonce, in wps_process_wsc_msg() [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() 1289 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_msg() 1384 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_ack() 1391 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_ack() 1431 os_memcmp(wps->nonce_r, attr.registrar_nonce, WPS_NONCE_LEN) != 0) in wps_process_wsc_nack() 1442 os_memcmp(wps->nonce_e, attr.enrollee_nonce, WPS_NONCE_LEN) != 0) { in wps_process_wsc_nack()
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_gpsk.c | 298 os_memcmp(pos, sm->cfg->server_id, alen) != 0) { in eap_gpsk_process_gpsk_2() 323 if (os_memcmp(data->rand_server, pos, EAP_GPSK_RAND_LEN) != 0) { in eap_gpsk_process_gpsk_2() 350 os_memcmp(pos, data->csuite_list, alen) != 0) { in eap_gpsk_process_gpsk_2() 366 if (os_memcmp(csuite, &data->csuite_list[i], sizeof(*csuite)) in eap_gpsk_process_gpsk_2()
|
/freebsd/contrib/wpa/src/tls/ |
H A D | tlsv1_client_ocsp.c | 60 return os_memcmp(hash, key_hash, SHA1_MAC_LEN) == 0; in ocsp_responder_id_match() 178 os_memcmp(name_hash, hash, hash_len) != 0) { in tls_process_ocsp_single_response() 200 os_memcmp(key_hash, hash, hash_len) != 0) { in tls_process_ocsp_single_response() 225 os_memcmp(serial_number, cert->serial_number, in tls_process_ocsp_single_response()
|
H A D | tlsv1_common.c | 484 os_memcmp(buf, "\x30\x31\x30\x0d\x06\x09\x60\x86\x48\x01" in tls_verify_signature() 491 os_memcmp(buf, "\x30\x41\x30\x0d\x06\x09\x60\x86\x48\x01" in tls_verify_signature() 498 os_memcmp(buf, "\x30\x51\x30\x0d\x06\x09\x60\x86\x48\x01" in tls_verify_signature()
|
/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | wpa.c | 1338 os_memcmp(sm->gtk.gtk, gd->gtk, sm->gtk.gtk_len) == 0) || in wpa_supplicant_install_gtk() 1340 os_memcmp(sm->gtk_wnm_sleep.gtk, gd->gtk, in wpa_supplicant_install_gtk() 1405 os_memcmp(sm->mlo.links[link_id].gtk.gtk, gd->gtk, in wpa_supplicant_install_mlo_gtk() 1409 os_memcmp(sm->mlo.links[link_id].gtk_wnm_sleep.gtk, gd->gtk, in wpa_supplicant_install_mlo_gtk() 1640 os_memcmp(sm->igtk.igtk, igtk->igtk, sm->igtk.igtk_len) == 0) || in wpa_supplicant_install_igtk() 1642 os_memcmp(sm->igtk_wnm_sleep.igtk, igtk->igtk, in wpa_supplicant_install_igtk() 1708 os_memcmp(sm->bigtk.bigtk, bigtk->bigtk, in wpa_supplicant_install_bigtk() 1711 os_memcmp(sm->bigtk_wnm_sleep.bigtk, bigtk->bigtk, in wpa_supplicant_install_bigtk() 1759 os_memcmp(sm->mlo.links[link_id].igtk.igtk, igtk->igtk, in wpa_supplicant_install_mlo_igtk() 1762 os_memcmp(sm->mlo.links[link_id].igtk_wnm_sleep.igtk, igtk->igtk, in wpa_supplicant_install_mlo_igtk() [all …]
|