mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
eap-pwd: Remove unneeded cast
This commit is contained in:
parent
bb28351c93
commit
c926b3fe80
@ -374,8 +374,7 @@ static void eap_pwd_handle_commit(struct eap_state *eap,
|
|||||||
if (!pwd->element_s)
|
if (!pwd->element_s)
|
||||||
goto invalid_point;
|
goto invalid_point;
|
||||||
|
|
||||||
pwd->scalar_s = l_ecc_scalar_new(pwd->curve,
|
pwd->scalar_s = l_ecc_scalar_new(pwd->curve, pkt + nbytes * 2, nbytes);
|
||||||
(uint8_t *)pkt + (nbytes * 2), nbytes);
|
|
||||||
|
|
||||||
pwd->p_rand = l_ecc_scalar_new_random(pwd->curve);
|
pwd->p_rand = l_ecc_scalar_new_random(pwd->curve);
|
||||||
p_mask = l_ecc_scalar_new_random(pwd->curve);
|
p_mask = l_ecc_scalar_new_random(pwd->curve);
|
||||||
|
Loading…
Reference in New Issue
Block a user