wireshark/epan/crypt
Mikael Kanstrup 341c3f3c62 ieee80211: Avoid decrypting packets two times
Encrypted packets were decrypted two times. One time to scan for
new keys. If no keys were found the decrypted data was simply
discarded. Then later on the packet was decrypted again for
dissection.

Avoid decrypting packets two times by storing the result from first
decryption if no key was found. Skip the second attempt.

Note though that in the special case where a key was actually found
inside an encrypted packet the decryption will still be performed
twice. First time decrypt, discover the key, and return the EAPOL
keydata. Second time decrypt and return the decrypted frame.

Change-Id: I1acd0060d4e1f351fb15070f8d7aa78c0035ce39
Reviewed-on: https://code.wireshark.org/review/30568
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-14 05:03:54 +00:00
..
CMakeLists.txt spdx: more licenses converted. 2018-03-07 15:56:44 +00:00
CMakeListsCustom.txt.example spdx: more licenses converted. 2018-03-07 15:56:44 +00:00
dot11decrypt.c ieee80211: Avoid decrypting packets two times 2018-11-14 05:03:54 +00:00
dot11decrypt_ccmp.c spdx: convert files with multiple licenses. 2018-03-09 12:13:23 +00:00
dot11decrypt_debug.h spdx: convert files with multiple licenses. 2018-03-09 12:13:23 +00:00
dot11decrypt_int.h Add some length checks, remove a DISSECTOR_ASSERT(). 2018-06-12 21:31:35 +00:00
dot11decrypt_interop.h spdx: convert files with multiple licenses. 2018-03-09 12:13:23 +00:00
dot11decrypt_rijndael.c dot11decrypt: Create RC4 decryption and key copy helper functions 2018-11-09 05:51:22 +00:00
dot11decrypt_rijndael.h dot11decrypt: Create RC4 decryption and key copy helper functions 2018-11-09 05:51:22 +00:00
dot11decrypt_system.h ieee80211: Avoid decrypting packets two times 2018-11-14 05:03:54 +00:00
dot11decrypt_tkip.c spdx: convert files with multiple licenses. 2018-03-09 12:13:23 +00:00
dot11decrypt_user.h spdx: convert files with multiple licenses. 2018-03-09 12:13:23 +00:00
dot11decrypt_ws.h spdx: convert files with multiple licenses. 2018-03-09 12:13:23 +00:00
kasumi.h epan: use SPDX indentifiers. 2018-02-08 19:29:45 +00:00
wep-wpadefs.h spdx: convert files with multiple licenses. 2018-03-09 12:13:23 +00:00