WireGuard: implement decryption with PSKs
authorPeter Wu <peter@lekensteyn.nl>
Wed, 1 Aug 2018 00:10:40 +0000 (02:10 +0200)
committerAnders Broman <a.broman58@gmail.com>
Wed, 8 Aug 2018 11:26:06 +0000 (11:26 +0000)
commite7549372515dbef74f4764a36a6b1a408087cf59
treefb4f35df9b6e87184732d587214d8ffc39975353
parent50a0a710c4860084a129537d600b0180c4e6f0db
WireGuard: implement decryption with PSKs

This imposes an additional requirement on the key log file, PSKs are
only linked to the most recently seen ephemeral key. This means that the
key log might contain duplicate PSK lines, but at least the dissector
won't have to try all keys and thereby save CPU time.

Bug: 15011
Change-Id: I368fa16269c96c4a1ff3bcb4e376c21f38fa2689
Reviewed-on: https://code.wireshark.org/review/28993
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-wireguard.c
test/captures/wireguard-psk.pcap [new file with mode: 0644]
test/suite_decryption.py