Searched refs:dh_privkey (Results 1 – 16 of 16) sorted by relevance
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_attr_build.c | 26 wpabuf_clear_free(wps->dh_privkey); in wps_build_public_key() 27 wps->dh_privkey = NULL; in wps_build_public_key() 28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey && in wps_build_public_key() 36 wps->dh_privkey = wpabuf_dup(wps->wps->dh_privkey); in wps_build_public_key() 61 wps->dh_privkey = wpabuf_dup(wps->wps->ap_nfc_dh_privkey); in wps_build_public_key() 63 if (wps->dh_privkey && pubkey) in wps_build_public_key() 64 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key() 69 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key() 72 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key() 78 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_build_public_key()
|
D | wps_common.c | 70 if (wps->dh_privkey == NULL) { in wps_derive_keys() 81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_derive_keys() 83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys() 93 wpabuf_clear_free(wps->dh_privkey); in wps_derive_keys() 94 wps->dh_privkey = NULL; in wps_derive_keys()
|
D | wps_i.h | 61 struct wpabuf *dh_privkey; member
|
D | wps.c | 175 wpabuf_clear_free(data->dh_privkey); in wps_deinit()
|
D | wps.h | 685 struct wpabuf *dh_privkey; member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_attr_build.c | 26 wpabuf_clear_free(wps->dh_privkey); in wps_build_public_key() 27 wps->dh_privkey = NULL; in wps_build_public_key() 28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey && in wps_build_public_key() 36 wps->dh_privkey = wpabuf_dup(wps->wps->dh_privkey); in wps_build_public_key() 61 wps->dh_privkey = wpabuf_dup(wps->wps->ap_nfc_dh_privkey); in wps_build_public_key() 63 if (wps->dh_privkey && pubkey) in wps_build_public_key() 64 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key() 69 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key() 72 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key() 78 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_build_public_key()
|
D | wps_common.c | 70 if (wps->dh_privkey == NULL) { in wps_derive_keys() 81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_derive_keys() 83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys() 93 wpabuf_clear_free(wps->dh_privkey); in wps_derive_keys() 94 wps->dh_privkey = NULL; in wps_derive_keys()
|
D | wps_i.h | 61 struct wpabuf *dh_privkey; member
|
D | wps.c | 175 wpabuf_clear_free(data->dh_privkey); in wps_deinit()
|
D | wps.h | 689 struct wpabuf *dh_privkey; member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | ap.c | 1472 wpabuf_free(wps->dh_privkey); in wpas_ap_wps_add_nfc_pw() 1473 wps->dh_privkey = wpabuf_dup( in wpas_ap_wps_add_nfc_pw() 1477 if (wps->dh_privkey == NULL || wps->dh_pubkey == NULL) { in wpas_ap_wps_add_nfc_pw() 1481 wpabuf_free(wps->dh_privkey); in wpas_ap_wps_add_nfc_pw() 1482 wps->dh_privkey = NULL; in wpas_ap_wps_add_nfc_pw() 1485 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_ap_wps_add_nfc_pw()
|
D | wps_supplicant.c | 1666 wpabuf_free(wpa_s->wps->dh_privkey); in wpas_wps_deinit() 2339 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc() 2340 wps->dh_privkey = wpabuf_dup(wpa_s->conf->wps_nfc_dh_privkey); in wpas_wps_start_nfc() 2342 if (wps->dh_privkey == NULL || wps->dh_pubkey == NULL) { in wpas_wps_start_nfc() 2346 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc() 2347 wps->dh_privkey = NULL; in wpas_wps_start_nfc() 2351 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_wps_start_nfc() 2355 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc() 2356 wps->dh_privkey = NULL; in wpas_wps_start_nfc()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | wps_supplicant.c | 1694 wpabuf_free(wpa_s->wps->dh_privkey); in wpas_wps_deinit() 2389 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc() 2390 wps->dh_privkey = wpabuf_dup(wpa_s->conf->wps_nfc_dh_privkey); in wpas_wps_start_nfc() 2392 if (wps->dh_privkey == NULL || wps->dh_pubkey == NULL) { in wpas_wps_start_nfc() 2396 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc() 2397 wps->dh_privkey = NULL; in wpas_wps_start_nfc() 2401 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_wps_start_nfc() 2405 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc() 2406 wps->dh_privkey = NULL; in wpas_wps_start_nfc()
|
D | ap.c | 1705 wpabuf_free(wps->dh_privkey); in wpas_ap_wps_add_nfc_pw() 1706 wps->dh_privkey = wpabuf_dup( in wpas_ap_wps_add_nfc_pw() 1710 if (wps->dh_privkey == NULL || wps->dh_pubkey == NULL) { in wpas_ap_wps_add_nfc_pw() 1714 wpabuf_free(wps->dh_privkey); in wpas_ap_wps_add_nfc_pw() 1715 wps->dh_privkey = NULL; in wpas_ap_wps_add_nfc_pw() 1718 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_ap_wps_add_nfc_pw()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | wps_hostapd.c | 1006 wpabuf_free(wps->dh_privkey); in hostapd_free_wps()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | wps_hostapd.c | 1075 wpabuf_free(wps->dh_privkey); in hostapd_free_wps()
|