TPM1.2 is obsoleted by TPM2.0. switch TCG/TCG2 protocol check to apply this
trend
Cc: Long, Qin <qin.long@intel.com>
Cc: Yao, Jiewen <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhang, Chao B <chao.b.zhang@intel.com>
Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com>
EFI_STATUS Status;\r
\r
//\r
EFI_STATUS Status;\r
\r
//\r
- // Try to measure using Tpm1.2 protocol\r
+ // Try to measure using Tpm20 protocol\r
- Status = Tpm12MeasureAndLogData(\r
- PcrIndex,\r
- EventType,\r
- EventLog,\r
- LogLen,\r
- HashData,\r
- HashDataLen\r
- );\r
+ Status = Tpm20MeasureAndLogData(\r
+ PcrIndex,\r
+ EventType,\r
+ EventLog,\r
+ LogLen,\r
+ HashData,\r
+ HashDataLen\r
+ );\r
+\r
if (EFI_ERROR (Status)) {\r
//\r
if (EFI_ERROR (Status)) {\r
//\r
- // Try to measure using Tpm20 protocol\r
+ // Try to measure using Tpm1.2 protocol\r
- Status = Tpm20MeasureAndLogData(\r
+ Status = Tpm12MeasureAndLogData(\r
PcrIndex,\r
EventType,\r
EventLog,\r
PcrIndex,\r
EventType,\r
EventLog,\r