]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth.c
Stronger GTK derivation routine
authorJouni Malinen <j@w1.fi>
Sat, 18 Nov 2017 15:08:11 +0000 (17:08 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 18 Nov 2017 15:50:09 +0000 (17:50 +0200)
commitc6eb3e34b6f85fe589fab0a57117d51917c292aa
tree1cd5fe036a4ac6d014e1096c132037efd1a7cbd9
parenta680f4ef3947d115bf1baf64b47cc21b6e5c1cf0
Stronger GTK derivation routine

If the build include SHA384, use that to derive GTK from GMK. In
addition, add more random bytes bytes to the PRF-X() context data for
longer GTK to reduce dependency on the randomness of the GMK.

GMK is 256 bits of random data and it was used with SHA256, so the
previous design was likely sufficient for all needs even with 128 bits
of additional randomness in GTK derivation. Anyway, adding up to 256
bits of new randomness and using SHA384 can be helpful extra protection
particularly for the cases using GCMP-256 or CCMP-256 as the group
cipher.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/wpa_auth.c