]> git.ipfire.org Git - thirdparty/hostap.git/commit
Re-initialize GMK and Key Counter on first station connection
authorJouni Malinen <j@w1.fi>
Tue, 23 Nov 2010 22:52:46 +0000 (00:52 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 23 Nov 2010 22:52:46 +0000 (00:52 +0200)
commit1bdb7ab3af9b78414592808e8467bcb3e3d82e04
treea32f498f91bbfe2836a65dc0b0d01fcb4194529a
parent38484f69f92b6c0083eae8ea9ec48777ee04a081
Re-initialize GMK and Key Counter on first station connection

This adds more time for the system entropy pool to be filled before
requesting random data for generating the WPA/WPA2 encryption keys.
This can be helpful especially on embedded devices that do not have
hardware random number generator and may lack good sources of
randomness especially early in the bootup sequence when hostapd is
likely to be started.

GMK and Key Counter are still initialized once in the beginning to
match the RSN Authenticator state machine behavior and to make sure
that the driver does not transmit broadcast frames unencrypted.
However, both GMK (and GTK derived from it) and Key Counter will be
re-initialized when the first station connects and is about to
enter 4-way handshake.
src/ap/wpa_auth.c
src/ap/wpa_auth_i.h