Home
last modified time | relevance | path

Searched refs:dh_ctx (Results 1 – 7 of 7) sorted by relevance

/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c29 wps->wps->dh_ctx) { in wps_build_public_key()
37 wps->dh_ctx = wps->wps->dh_ctx; in wps_build_public_key()
38 wps->wps->dh_ctx = NULL; in wps_build_public_key()
63 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key()
67 dh5_free(wps->dh_ctx); in wps_build_public_key()
68 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key()
71 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key()
Dwps_common.c83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys()
84 dh5_free(wps->dh_ctx); in wps_derive_keys()
85 wps->dh_ctx = NULL; in wps_derive_keys()
648 void *dh_ctx; in wps_nfc_gen_dh() local
650 dh_ctx = dh5_init(&priv, &pub); in wps_nfc_gen_dh()
651 if (dh_ctx == NULL) in wps_nfc_gen_dh()
659 dh5_free(dh_ctx); in wps_nfc_gen_dh()
Dwps_i.h115 void *dh_ctx; member
Dwps.c182 dh5_free(data->dh_ctx); in wps_deinit()
Dwps.h642 void *dh_ctx; member
/external/wpa_supplicant_8/wpa_supplicant/
Dap.c1248 dh5_free(wps->dh_ctx); in wpas_ap_wps_add_nfc_pw()
1256 wps->dh_ctx = NULL; in wpas_ap_wps_add_nfc_pw()
1263 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_ap_wps_add_nfc_pw()
1264 if (wps->dh_ctx == NULL) in wpas_ap_wps_add_nfc_pw()
Dwps_supplicant.c2249 dh5_free(wps->dh_ctx); in wpas_wps_start_nfc()
2255 wps->dh_ctx = NULL; in wpas_wps_start_nfc()
2263 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_wps_start_nfc()
2264 if (wps->dh_ctx == NULL) { in wpas_wps_start_nfc()