]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Extend internal entropy pool help for key/snonce derivation
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 8 Sep 2014 09:54:18 +0000 (12:54 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 8 Sep 2014 09:54:18 +0000 (12:54 +0300)
commit8511a0f67b6ade371264a3c18ea4301c605a02aa
treea037dc6c3d92bac6990e0e81c315d3f16c83bdf9
parentabc05534aaee382771f445b963ca3a984d6d70a4
WPS: Extend internal entropy pool help for key/snonce derivation

The internal entropy pool was previously used to prevent 4-way handshake
in AP mode from completing before sufficient entropy was available to
allow secure keys to be generated. This commit extends that workaround
for boards that do not provide secure OS level PRNG (e.g., /dev/urandom
does not get enough entropy) for the most critical WPS operations by
rejecting AP-as-enrollee case (use of AP PIN to learn/modify AP
configuration) and new PSK/passphrase generation. This does not have any
effect on devices that have an appropriately working OS level PRNG
(e.g., /dev/random and /dev/urandom on Linux).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/wps/wps_enrollee.c
src/wps/wps_registrar.c