]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix PTK rekeying to generate a new ANonce
authorJouni Malinen <j@w1.fi>
Sun, 1 Oct 2017 09:32:57 +0000 (12:32 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 15 Oct 2017 23:03:47 +0000 (02:03 +0300)
commit0adc9b28b39d414d5febfff752f6a1576f785c85
tree493a58b517377a261d10ed5c57623928d6667951
parent53bb18cc8b7a4da72e47e4b3752d0d2135cffb23
Fix PTK rekeying to generate a new ANonce

The Authenticator state machine path for PTK rekeying ended up bypassing
the AUTHENTICATION2 state where a new ANonce is generated when going
directly to the PTKSTART state since there is no need to try to
determine the PMK again in such a case. This is far from ideal since the
new PTK would depend on a new nonce only from the supplicant.

Fix this by generating a new ANonce when moving to the PTKSTART state
for the purpose of starting new 4-way handshake to rekey PTK.

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