mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
pwd/sae/owe: update to use l_ecc_curve_get_ike_group
This commit is contained in:
parent
04225757d6
commit
55a7e9d82a
@ -256,7 +256,7 @@ static void eap_pwd_handle_id(struct eap_state *eap,
|
|||||||
if (group != EAP_PWD_GROUP_DESC)
|
if (group != EAP_PWD_GROUP_DESC)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
pwd->curve = l_ecc_curve_get(group);
|
pwd->curve = l_ecc_curve_get_ike_group(group);
|
||||||
if (!pwd->curve) {
|
if (!pwd->curve) {
|
||||||
l_error("group %d not supported", group);
|
l_error("group %d not supported", group);
|
||||||
goto error;
|
goto error;
|
||||||
|
@ -59,7 +59,7 @@ struct owe_sm *owe_sm_new(struct handshake_state *hs,
|
|||||||
owe->assoc_tx = assoc;
|
owe->assoc_tx = assoc;
|
||||||
owe->user_data = user_data;
|
owe->user_data = user_data;
|
||||||
owe->complete = complete;
|
owe->complete = complete;
|
||||||
owe->curve = l_ecc_curve_get(OWE_DEFAULT_GROUP);
|
owe->curve = l_ecc_curve_get_ike_group(OWE_DEFAULT_GROUP);
|
||||||
|
|
||||||
if (!l_ecdh_generate_key_pair(owe->curve, &owe->private,
|
if (!l_ecdh_generate_key_pair(owe->curve, &owe->private,
|
||||||
&owe->public_key)) {
|
&owe->public_key)) {
|
||||||
|
@ -933,7 +933,7 @@ struct sae_sm *sae_sm_new(struct handshake_state *hs, sae_tx_packet_func_t tx,
|
|||||||
sm->user_data = user_data;
|
sm->user_data = user_data;
|
||||||
sm->handshake = hs;
|
sm->handshake = hs;
|
||||||
sm->state = SAE_STATE_NOTHING;
|
sm->state = SAE_STATE_NOTHING;
|
||||||
sm->curve = l_ecc_curve_get(19);
|
sm->curve = l_ecc_curve_get_ike_group(19);
|
||||||
|
|
||||||
return sm;
|
return sm;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user