3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

sae: check return getting k_point

This commit is contained in:
James Prestwood 2019-10-16 15:29:53 -07:00 committed by Denis Kenzior
parent ba7f7febd1
commit 96aa658375

View File

@ -498,6 +498,9 @@ static int sae_process_commit(struct sae_sm *sm, const uint8_t *from,
l_ecc_point_free(k_point); l_ecc_point_free(k_point);
if (klen < 0)
goto reject;
/* keyseed = H(<0>32, k) */ /* keyseed = H(<0>32, k) */
hmac_sha256(zero_key, 32, k, klen, keyseed, 32); hmac_sha256(zero_key, 32, k, klen, keyseed, 32);