EFI_STATUS Status;\r
\r
//\r
- // Try to measure using Tpm1.2 protocol\r
+ // Try to measure using Tpm20 protocol\r
//\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
- // Try to measure using Tpm20 protocol\r
+ // Try to measure using Tpm1.2 protocol\r
//\r
- Status = Tpm20MeasureAndLogData(\r
+ Status = Tpm12MeasureAndLogData(\r
PcrIndex,\r
EventType,\r
EventLog,\r