/hostap-latest/src/crypto/ |
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 …]
|
D | tls_mbedtls_alt.c | 822 if (0 == os_memcmp("P-521", n, 5)) in tls_mbedtls_set_curves() 824 else if (0 == os_memcmp("P-384", n, 5)) in tls_mbedtls_set_curves() 826 else if (0 == os_memcmp("P-256", n, 5)) in tls_mbedtls_set_curves() 830 if (0 == os_memcmp("BP-521", n, 6)) in tls_mbedtls_set_curves() 832 else if (0 == os_memcmp("BP-384", n, 6)) in tls_mbedtls_set_curves() 834 else if (0 == os_memcmp("BP-256", n, 6)) in tls_mbedtls_set_curves() 913 if (0 == os_memcmp("P-521", n, 5)) in tls_mbedtls_set_curves() 915 else if (0 == os_memcmp("P-384", n, 5)) in tls_mbedtls_set_curves() 917 else if (0 == os_memcmp("P-256", n, 5)) in tls_mbedtls_set_curves() 921 if (0 == os_memcmp("BP-521", n, 6)) in tls_mbedtls_set_curves() [all …]
|
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()
|
/hostap-latest/src/common/ |
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 …]
|
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()
|
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()
|
/hostap-latest/wlantest/ |
D | test_vectors.c | 76 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_tkip() 134 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_ccmp() 586 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_ccmp_mgmt() 753 if (os_memcmp(vector->encr, enc + vector->hdr_len + 8, in run_gcmp() 759 if (os_memcmp(vector->mic, enc + enc_len - sizeof(vector->mic), in run_gcmp() 781 os_memcmp(plain, vector->frame + vector->hdr_len, plain_len) != 0) { in run_gcmp() 862 if (enc_len != sizeof(encr) || os_memcmp(enc, encr, enc_len) != 0) { in test_vector_gcmp_256() 882 os_memcmp(plain, frame + 26, plain_len) != 0) { in test_vector_gcmp_256() 941 if (enc_len != sizeof(encr) || os_memcmp(enc, encr, enc_len) != 0) { in test_vector_ccmp_256() 961 os_memcmp(plain, frame + 24, plain_len) != 0) { in test_vector_ccmp_256() [all …]
|
D | rx_tdls.c | 94 if (os_memcmp(f->anonce, f->snonce, WPA_NONCE_LEN) < 0) { in tdls_derive_tpk() 113 if (os_memcmp(tdls->init->addr, tdls->resp->addr, ETH_ALEN) < 0) { in tdls_derive_tpk() 190 if (os_memcmp(mic, rx_ftie->mic, 16) == 0) { in tdls_verify_mic() 337 if (os_memcmp(tdls->inonce, f->snonce, WPA_NONCE_LEN) != 0) { in rx_data_tdls_setup_response() 440 if (os_memcmp(tdls->inonce, f->snonce, WPA_NONCE_LEN) != 0) { in rx_data_tdls_setup_confirm() 444 if (os_memcmp(tdls->rnonce, f->anonce, WPA_NONCE_LEN) != 0) { in rx_data_tdls_setup_confirm() 529 if (os_memcmp(mic, rx_ftie->mic, 16) == 0) { in tdls_verify_mic_teardown()
|
D | bss.c | 139 os_memcmp(p->ssid, bss->ssid, p->ssid_len) != 0)) in bss_add_pmk() 168 os_memcmp(bss->ssid, elems->ssid, bss->ssid_len) != 0)) { in bss_update() 186 os_memcmp(bss->osenie, elems->osen - 2, in bss_update() 211 os_memcmp(bss->rsnie, elems->rsn_ie - 2, in bss_update() 232 os_memcmp(bss->wpaie, elems->wpa_ie - 2, in bss_update()
|
/hostap-latest/tests/ |
D | test-aes.c | 291 if (os_memcmp(c, tmp, p_len) != 0) { in test_gcm() 296 if (os_memcmp(tag, t, sizeof(tag)) != 0) { in test_gcm() 309 if (os_memcmp(tag, t, sizeof(tag)) != 0) { in test_gcm() 322 if (os_memcmp(p, tmp, p_len) != 0) { in test_gcm() 440 if (os_memcmp(c, result, c_len) == 0) { in test_nist_key_wrap_ae() 587 } else if (os_memcmp(p, result, p_len) == 0) { in test_nist_key_wrap_ad()
|
/hostap-latest/src/ap/ |
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()
|
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()
|
/hostap-latest/src/drivers/ |
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()
|
/hostap-latest/src/l2_packet/ |
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()
|
/hostap-latest/tests/hwsim/tnc/ |
D | hostap2_imv.c | 98 os_memcmp(message, "hello", 5) == 0) { in TNC_IMV_ReceiveMessage() 107 os_memcmp(message, "i'm fine", 8) == 0) { in TNC_IMV_ReceiveMessage()
|
/hostap-latest/wpa_supplicant/ |
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()
|
D | ctrl_iface_udp.c | 126 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, 173 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, 307 if (os_memcmp(cookie, priv->cookie, COOKIE_LEN) != 0) { 701 if (os_memcmp(cookie, priv->cookie, COOKIE_LEN) != 0) {
|
D | bss.c | 268 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 338 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) != 0)) in wpa_bss_is_wps_candidate() 383 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() 408 os_memcmp(bss->ssid, wpa_s->current_bss->ssid, in wpa_bss_in_use() 585 os_memcmp(old_ie, new_ie, old_ie_len) == 0); in are_ies_equal() 613 os_memcmp(wpa_bss_ie_ptr(old), new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res() 877 os_memcmp(ssid + 2, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) == 0) in wpa_bss_update_scan_res() 952 os_memcmp(s->ssid, bss->ssid, bss->ssid_len) == in wpa_bss_included_in_scan() 1033 os_memcmp(bss->ssid, wpa_s->last_ssid->ssid, in wpa_bss_flush_by_age()
|
/hostap-latest/src/utils/ |
D | os.h | 458 int os_memcmp(const void *s1, const void *s2, size_t n); 604 #ifndef os_memcmp 605 #define os_memcmp(s1, s2, n) memcmp((s1), (s2), (n)) macro
|
D | ip_addr.c | 67 os_memcmp(&a->u.v6, &b->u.v6, sizeof(a->u.v6)) == 0) in hostapd_ip_equal()
|
/hostap-latest/src/wps/ |
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()
|
/hostap-latest/src/rsn_supp/ |
D | wpa.c | 1373 os_memcmp(sm->gtk.gtk, gd->gtk, sm->gtk.gtk_len) == 0) || in wpa_supplicant_install_gtk() 1375 os_memcmp(sm->gtk_wnm_sleep.gtk, gd->gtk, in wpa_supplicant_install_gtk() 1440 os_memcmp(sm->mlo.links[link_id].gtk.gtk, gd->gtk, in wpa_supplicant_install_mlo_gtk() 1444 os_memcmp(sm->mlo.links[link_id].gtk_wnm_sleep.gtk, gd->gtk, in wpa_supplicant_install_mlo_gtk() 1675 os_memcmp(sm->igtk.igtk, igtk->igtk, sm->igtk.igtk_len) == 0) || in wpa_supplicant_install_igtk() 1677 os_memcmp(sm->igtk_wnm_sleep.igtk, igtk->igtk, in wpa_supplicant_install_igtk() 1743 os_memcmp(sm->bigtk.bigtk, bigtk->bigtk, in wpa_supplicant_install_bigtk() 1746 os_memcmp(sm->bigtk_wnm_sleep.bigtk, bigtk->bigtk, in wpa_supplicant_install_bigtk() 1794 os_memcmp(sm->mlo.links[link_id].igtk.igtk, igtk->igtk, in wpa_supplicant_install_mlo_igtk() 1797 os_memcmp(sm->mlo.links[link_id].igtk_wnm_sleep.igtk, igtk->igtk, in wpa_supplicant_install_mlo_igtk() [all …]
|
/hostap-latest/src/eap_server/ |
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()
|
/hostap-latest/src/tls/ |
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()
|
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()
|