Fix and improve TPM2_GetCapability Flag handling
Fix and improve TPM2_GetCapability Flag handling

Instead of using pre-defined offsets within the response buffer,
this patch now uses the property tags to match the flags.
This is less error prone in case some structures get added to the
response of TPM2_GetCapability.

Tested with SLB9670 FW Version 7.40.2098.0 on Raspberry Pi 3

Signed-off-by: Peter Huewe <761e034d6358ca9e0639fca07d0da47f2be745f2@infineon.com>

Infineon/eltt2