Home
last modified time | relevance | path

Searched refs:ecdh (Results 1 – 14 of 14) sorted by relevance

/hostap-latest/src/crypto/
Dcrypto_openssl.c2637 struct crypto_ecdh *ecdh; in crypto_ecdh_init() local
2640 ecdh = os_zalloc(sizeof(*ecdh)); in crypto_ecdh_init()
2641 if (!ecdh) in crypto_ecdh_init()
2644 ecdh->ec = crypto_ec_init(group); in crypto_ecdh_init()
2645 if (!ecdh->ec) in crypto_ecdh_init()
2648 name = OSSL_EC_curve_nid2name(ecdh->ec->nid); in crypto_ecdh_init()
2652 ecdh->pkey = EVP_EC_gen(name); in crypto_ecdh_init()
2653 if (!ecdh->pkey) in crypto_ecdh_init()
2657 return ecdh; in crypto_ecdh_init()
2659 crypto_ecdh_deinit(ecdh); in crypto_ecdh_init()
[all …]
Dcrypto_mbedtls_alt.c1796 struct crypto_ecdh *ecdh = in crypto_ecdh_init() local
1799 return ecdh; in crypto_ecdh_init()
1808 struct crypto_ecdh *ecdh = os_malloc(sizeof(*ecdh)); in crypto_ecdh_init2() local
1809 if (ecdh == NULL) in crypto_ecdh_init2()
1811 mbedtls_ecdh_init(&ecdh->ctx); in crypto_ecdh_init2()
1812 mbedtls_ecp_group_init(&ecdh->grp); in crypto_ecdh_init2()
1813 mbedtls_ecp_point_init(&ecdh->Q); in crypto_ecdh_init2()
1814 if (mbedtls_ecdh_setup(&ecdh->ctx, grp_id) == 0 && in crypto_ecdh_init2()
1815 mbedtls_ecdh_get_params(&ecdh->ctx, ecp_kp, MBEDTLS_ECDH_OURS) == 0) in crypto_ecdh_init2()
1823 if (mbedtls_ecp_export(ecp_kp, &ecdh->grp, &d, &ecdh->Q) == 0) in crypto_ecdh_init2()
[all …]
Dcrypto_wolfssl.c2091 struct crypto_ecdh *ecdh = NULL; in _crypto_ecdh_init() local
2096 ecdh = os_zalloc(sizeof(*ecdh)); in _crypto_ecdh_init()
2097 if (!ecdh) { in _crypto_ecdh_init()
2102 ecdh->rng = wc_rng_init(); in _crypto_ecdh_init()
2103 if (!ecdh->rng) { in _crypto_ecdh_init()
2108 ecdh->ec = crypto_ec_init(group); in _crypto_ecdh_init()
2109 if (!ecdh->ec) { in _crypto_ecdh_init()
2115 ret = wc_ecc_set_rng(ecdh->ec->key, ecdh->rng); in _crypto_ecdh_init()
2122 return ecdh; in _crypto_ecdh_init()
2124 crypto_ecdh_deinit(ecdh); in _crypto_ecdh_init()
[all …]
Dcrypto.h980 struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y);
991 struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
998 void crypto_ecdh_deinit(struct crypto_ecdh *ecdh);
1005 size_t crypto_ecdh_prime_len(struct crypto_ecdh *ecdh);
Dtls_openssl.c3222 EC_KEY *ecdh; in tls_set_conn_flags() local
3254 ecdh = EC_KEY_new_by_curve_name(NID_secp384r1); in tls_set_conn_flags()
3255 if (!ecdh || SSL_set_tmp_ecdh(ssl, ecdh) != 1) { in tls_set_conn_flags()
3256 EC_KEY_free(ecdh); in tls_set_conn_flags()
3261 EC_KEY_free(ecdh); in tls_set_conn_flags()
/hostap-latest/tests/fuzzing/pasn-resp/
Dpasn-resp.c85 if (pasn.ecdh) { in LLVMFuzzerTestOneInput()
86 crypto_ecdh_deinit(pasn.ecdh); in LLVMFuzzerTestOneInput()
87 pasn.ecdh = NULL; in LLVMFuzzerTestOneInput()
/hostap-latest/src/pasn/
Dpasn_initiator.c540 pubkey = crypto_ecdh_get_pubkey(pasn->ecdh, 0); in wpas_pasn_build_auth_1()
541 pubkey = wpabuf_zeropad(pubkey, crypto_ecdh_prime_len(pasn->ecdh)); in wpas_pasn_build_auth_1()
701 crypto_ecdh_deinit(pasn->ecdh); in wpa_pasn_reset()
702 pasn->ecdh = NULL; in wpa_pasn_reset()
884 pasn->ecdh = crypto_ecdh_init(group); in wpas_pasn_send_auth_1()
885 if (!pasn->ecdh) { in wpas_pasn_send_auth_1()
1206 secret = crypto_ecdh_set_peerkey(pasn->ecdh, inc_y, in wpa_pasn_auth_rx()
Dpasn_responder.c480 pubkey = crypto_ecdh_get_pubkey(pasn->ecdh, 0); in handle_auth_pasn_resp()
482 crypto_ecdh_prime_len(pasn->ecdh)); in handle_auth_pasn_resp()
726 pasn->ecdh = crypto_ecdh_init(pasn_params.group); in handle_auth_pasn_1()
727 if (!pasn->ecdh) { in handle_auth_pasn_1()
748 secret = crypto_ecdh_set_peerkey(pasn->ecdh, inc_y, in handle_auth_pasn_1()
Dpasn_common.h84 struct crypto_ecdh *ecdh; member
/hostap-latest/src/common/
Ddpp_crypto.c505 struct crypto_ecdh *ecdh; in dpp_ecdh() local
511 ecdh = crypto_ecdh_init2(crypto_ec_key_group(own), own); in dpp_ecdh()
512 if (!ecdh) { in dpp_ecdh()
524 secret_buf = crypto_ecdh_set_peerkey(ecdh, 1, wpabuf_head(peer_pub), in dpp_ecdh()
543 crypto_ecdh_deinit(ecdh); in dpp_ecdh()
2020 pfs->ecdh = crypto_ecdh_init(pfs->curve->ike_group); in dpp_pfs_init()
2021 if (!pfs->ecdh) in dpp_pfs_init()
2024 pub = crypto_ecdh_get_pubkey(pfs->ecdh, 0); in dpp_pfs_init()
2058 pfs->secret = crypto_ecdh_set_peerkey(pfs->ecdh, 0, peer_ie + 2, in dpp_pfs_process()
2074 crypto_ecdh_deinit(pfs->ecdh); in dpp_pfs_free()
Ddpp.h700 struct crypto_ecdh *ecdh; member
/hostap-latest/src/ap/
Dsta_info.c171 if (sta->pasn->ecdh) in ap_free_sta_pasn()
172 crypto_ecdh_deinit(sta->pasn->ecdh); in ap_free_sta_pasn()
Dieee802_11.c787 if (sta->pasn && sta->pasn->ecdh) in use_anti_clogging()
/hostap-latest/wpa_supplicant/
Dpasn_supplicant.c750 if (!wpa_s->pasn.ecdh) in wpas_pasn_auth_stop()