pwd/sae/owe: update to use l_ecc_curve_get_ike_group

This commit is contained in:
James Prestwood 2019-01-16 11:12:35 -08:00 committed by Denis Kenzior
parent 04225757d6
commit 55a7e9d82a
3 changed files with 3 additions and 3 deletions

View File

@ -256,7 +256,7 @@ static void eap_pwd_handle_id(struct eap_state *eap,
if (group != EAP_PWD_GROUP_DESC)
goto error;
pwd->curve = l_ecc_curve_get(group);
pwd->curve = l_ecc_curve_get_ike_group(group);
if (!pwd->curve) {
l_error("group %d not supported", group);
goto error;

View File

@ -59,7 +59,7 @@ struct owe_sm *owe_sm_new(struct handshake_state *hs,
owe->assoc_tx = assoc;
owe->user_data = user_data;
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,
&owe->public_key)) {

View File

@ -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->handshake = hs;
sm->state = SAE_STATE_NOTHING;
sm->curve = l_ecc_curve_get(19);
sm->curve = l_ecc_curve_get_ike_group(19);
return sm;
}