]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth.c
tests: EAPOL-Key fuzzing tool
authorJouni Malinen <j@w1.fi>
Sun, 10 Feb 2019 15:02:49 +0000 (17:02 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 11 Feb 2019 00:35:29 +0000 (02:35 +0200)
commit525923b1d7ac628c48478d9d1936b27cb1afe38b
treef648d95bee25a4fd93712f1c3537eab01b713ce8
parent02a0a23939b779e8e19c57b5bc8d8964ffd26ed9
tests: EAPOL-Key fuzzing tool

Add test-eapol program that can be used for fuzzing the EAPOL-Key
Supplicant and Authenticator implementations. This tool can write
Supplicant or Authenticator messages into a file as an initialization
step and for the fuzzing step, that file (with potential modifications)
can be used to replace the internally generated message contents.

The TEST_FUZZ=y build parameter is used to make a special build where a
hardcoded random number generator and hardcoded timestamp are used to
force deterministic behavior for the EAPOL-Key operations. This will
also make the implementation ignore Key MIC and AES keywrap errors to
allow processing of modified messages to continue further.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/wpa_auth.c
src/rsn_supp/wpa.c
tests/Makefile
tests/test-eapol.c [new file with mode: 0644]