TianoCore EDK2 master
|
#include <Guid/Tcg2PhysicalPresenceData.h>
#include <Protocol/SmmVariable.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/Tcg2PpVendorLib.h>
#include <Library/MmServicesTableLib.h>
Go to the source code of this file.
Macros | |
#define | PP_INF_VERSION_1_2 "1.2" |
Functions | |
EFI_STATUS | Tcg2PhysicalPresenceLibCommonConstructor (VOID) |
BOOLEAN | IsTcg2PPVerLowerThan_1_3 (VOID) |
Handle TPM 2.0 physical presence requests from OS.
This library will handle TPM 2.0 physical presence request from OS.
Caution: This module requires additional review when modified. This driver will have external input - variable. This external input must be validated carefully to avoid security issue.
Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() and Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction() will receive untrusted input and do validation.
Copyright (c) 2015 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file MmTcg2PhysicalPresenceLibCommon.h.
#define PP_INF_VERSION_1_2 "1.2" |
Definition at line 31 of file MmTcg2PhysicalPresenceLibCommon.h.
BOOLEAN IsTcg2PPVerLowerThan_1_3 | ( | VOID | ) |
Check if Tcg2 PP version is lower than PP_INF_VERSION_1_3.
TRUE | Tcg2 PP version is lower than PP_INF_VERSION_1_3. |
Other | Tcg2 PP version is not lower than PP_INF_VERSION_1_3. |
Definition at line 50 of file SmmTcg2PhysicalPresenceLib.c.
EFI_STATUS Tcg2PhysicalPresenceLibCommonConstructor | ( | VOID | ) |
The constructor function locates MmVariable protocol.
It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.
EFI_SUCCESS | The constructor successfully added string package. |
Other | value The constructor can't add string package. |
The constructor function locates SmmVariable protocol.
It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.
EFI_SUCCESS | The constructor successfully added string package. |
Other | value The constructor can't add string package. |
Definition at line 377 of file MmTcg2PhysicalPresenceLibCommon.c.