]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Verify availability of random data when using WPA/WPA2
authorJouni Malinen <j@w1.fi>
Wed, 24 Nov 2010 11:08:03 +0000 (13:08 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 24 Nov 2010 11:08:03 +0000 (13:08 +0200)
commit08704cd8859825e70b5a961d9791c1ab25435237
tree063afb30f5af307d29bd637fc6c91ad77bfdcf96
parentdbb6ed7e752da8e5d563705afe6a1848d23f4052
hostapd: Verify availability of random data when using WPA/WPA2

On Linux, verify that the kernel entropy pool is capable of providing
strong random data before allowing WPA/WPA2 connection to be
established. If 20 bytes of data cannot be read from /dev/random,
force first two 4-way handshakes to fail while collecting entropy
into the internal pool in hostapd. After that, give up on /dev/random
and allow the AP to function based on the combination of /dev/urandom
and whatever data has been collected into the internal entropy pool.
src/ap/wpa_auth.c
src/ap/wpa_auth_i.h
src/crypto/random.c
src/crypto/random.h