TianoCore EDK2 master
Loading...
Searching...
No Matches
StandaloneMmTcg2PhysicalPresenceLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI Tcg2PhysicalPresenceLibStandaloneMmConstructor (IN EFI_HANDLE ImageHandle, IN EFI_MM_SYSTEM_TABLE *SystemTable)
 
BOOLEAN IsTcg2PPVerLowerThan_1_3 (VOID)
 

Detailed Description

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.
Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file StandaloneMmTcg2PhysicalPresenceLib.c.

Function Documentation

◆ IsTcg2PPVerLowerThan_1_3()

BOOLEAN IsTcg2PPVerLowerThan_1_3 ( VOID  )

Check if Tcg2 PP version is lower than PP_INF_VERSION_1_3.

Return values
TRUETcg2 PP version is lower than PP_INF_VERSION_1_3.
OtherTcg2 PP version is not lower than PP_INF_VERSION_1_3.

Definition at line 53 of file StandaloneMmTcg2PhysicalPresenceLib.c.

◆ Tcg2PhysicalPresenceLibStandaloneMmConstructor()

EFI_STATUS EFIAPI Tcg2PhysicalPresenceLibStandaloneMmConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_MM_SYSTEM_TABLE SystemTable 
)

The constructor function locates SmmVariable protocol.

It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe constructor successfully added string package.
Othervalue The constructor can't add string package.

Definition at line 38 of file StandaloneMmTcg2PhysicalPresenceLib.c.