tpm20: Add TPM2.0 dissector

This adds support for the TPM 2.0 "protocol" as defined
by the Trusted Computing Group (TCG) specification.
The specification can be found here:
https://trustedcomputinggroup.org/tpm-library-specification/

The specification defines the format of the all TPM requests
and responses that this dissector supports.

A sample capture file that can be used for testing this
can be found in the https://wiki.wireshark.org/SampleCaptures
It is called policy-authorizeNV.pcap.

Change-Id: I557cb779f3adc5313e6d3498bbfeb56fdd308fbf
Reviewed-on: https://code.wireshark.org/review/26866
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Tadeusz Struk 2018-04-24 08:12:57 -07:00 committed by Anders Broman
parent e39a30b691
commit 30629ce166
3 changed files with 1379 additions and 0 deletions

View File

@ -56,6 +56,7 @@ since version 2.6.0:
--
GSUP (Osmocom Generic Subscriber Update Protocol)
NR (5G) PDCP protocol
TPM 2.0 protocol
--
=== Updated Protocol Support

View File

@ -1715,6 +1715,7 @@ set(DISSECTOR_SRC
${CMAKE_CURRENT_SOURCE_DIR}/packet-tnef.c
${CMAKE_CURRENT_SOURCE_DIR}/packet-tns.c
${CMAKE_CURRENT_SOURCE_DIR}/packet-tpkt.c
${CMAKE_CURRENT_SOURCE_DIR}/packet-tpm20.c
${CMAKE_CURRENT_SOURCE_DIR}/packet-tpncp.c
${CMAKE_CURRENT_SOURCE_DIR}/packet-tr.c
${CMAKE_CURRENT_SOURCE_DIR}/packet-trill.c

File diff suppressed because it is too large Load Diff