This library is used by other modules to measure data to TPM.\r
\r
Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved. <BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
TcgEvent = NULL;\r
\r
//\r
- // Tpm active/deactive state is checked in HashLogExtendEvent\r
+ // Tpm activation state is checked in HashLogExtendEvent\r
//\r
Status = gBS->LocateProtocol (&gEfiTcgProtocolGuid, NULL, (VOID **) &TcgProtocol);\r
if (EFI_ERROR(Status)){\r
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