Add support for exporting and importing 802.11 PTK from 4-way handshake
Description
Add support for exporting PTK from 4-way handshake, this can be later imported and can be used for decryption.
Usecase
Capturing traces for Stress tests that run for hours or overnight, to debug issues we need to be able to decrypt the 802.11 data but for that, we need to 4-way handshake in the capture even if we know the passphrase. This means a long-running Wireshark capture, instead once the Wireshark computes the PTK, it can be exported and then we can start capturing at any point and import the PTK to decrypt.
The import can be similar to a passphrase.
- Start capture
- 802.11 association + security handshake
- Calculate PTK (already exists today)
- Add an option Export PTK to be used for later
- Stop cature
- Start capture after a while
- Import PTK
- Enable decryption
- See decrypted packets