3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

sae: Fix sae_cn endianness issue

send_confirm was always passed in using host byte-order, but the hash
should be ran over send_confirm in LE order.
This commit is contained in:
Denis Kenzior 2021-07-11 23:26:21 -05:00
parent 03b99ba0d5
commit f0e3d92d00

View File

@ -164,6 +164,8 @@ static bool sae_cn(const uint8_t *kck, uint16_t send_confirm,
if (!hmac)
return false;
send_confirm = L_CPU_TO_LE16(send_confirm);
iov[0].iov_base = &send_confirm;
iov[0].iov_len = 2;
iov[1].iov_base = (void *) s1;