smb2: add support for AES-128-GCM decryption
commit7d603e344cb78b43b5c51af32f17b4c0e6921906
authorAurelien Aptel <aaptel@suse.com>
Fri, 14 Jun 2019 19:35:48 +0000 (14 21:35 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 2 Jul 2019 17:54:03 +0000 (2 17:54 +0000)
tree95e20a62085f26157187e963403c1dd23401ef0e
parent0368b7718582ef9ae6b79f87aa42a0d806a58dd3
smb2: add support for AES-128-GCM decryption

epan/dissectors/packet-smb2.c:

- factor out decryption code from transform header dissector
- rewrite CCM decryption to use the proper gcrypt cipher
- add GCM support
- change weird 1 element CCM bitmask to value_string

test/suite_decryption.py: add smb2 GCM decryption test

- add one test
- add a new capture to test smb3.1.1 AES-128-GCM decryption

Change-Id: Id5ab75e1830bc24ace9f9b2f2dbd5a3c20666d52
Reviewed-on: https://code.wireshark.org/review/33600
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
epan/dissectors/packet-smb2.c
epan/dissectors/packet-smb2.h
test/captures/smb311-aes-128-gcm.pcap.gz [new file with mode: 0644]
test/suite_decryption.py