Searched refs:dh_ctx (Results 1 – 7 of 7) sorted by relevance
29 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()64 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key()68 dh5_free(wps->dh_ctx); 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()
83 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()649 void *dh_ctx; in wps_nfc_gen_dh() local651 dh_ctx = dh5_init(&priv, &pub); in wps_nfc_gen_dh()652 if (dh_ctx == NULL) in wps_nfc_gen_dh()657 dh5_free(dh_ctx); in wps_nfc_gen_dh()661 dh5_free(dh_ctx); in wps_nfc_gen_dh()
115 void *dh_ctx; member
184 dh5_free(data->dh_ctx); in wps_deinit()
684 void *dh_ctx; member
1539 dh5_free(wps->dh_ctx); in wpas_ap_wps_add_nfc_pw()1547 wps->dh_ctx = NULL; in wpas_ap_wps_add_nfc_pw()1554 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_ap_wps_add_nfc_pw()1555 if (wps->dh_ctx == NULL) in wpas_ap_wps_add_nfc_pw()
2382 dh5_free(wps->dh_ctx); in wpas_wps_start_nfc()2388 wps->dh_ctx = NULL; in wpas_wps_start_nfc()2396 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_wps_start_nfc()2397 if (wps->dh_ctx == NULL) { in wpas_wps_start_nfc()