SecurityPkg/Tcg/TcgDxe/TpmComm.c File Reference


Functions

EFI_STATUS TpmCommExtend (IN TIS_TPM_HANDLE TpmHandle, IN TPM_DIGEST *DigestToExtend, IN TPM_PCRINDEX PcrIndex, OUT TPM_DIGEST *NewPcrValue)
EFI_STATUS TpmCommGetFlags (IN TIS_TPM_HANDLE TpmHandle, IN UINT32 FlagSubcap, OUT VOID *FlagBuffer, IN UINTN FlagSize)
EFI_STATUS TpmCommLogEvent (IN OUT UINT8 **EventLogPtr, IN OUT UINTN *LogSize, IN UINTN MaxSize, IN TCG_PCR_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)

Detailed Description

Utility functions used by TPM Dxe driver.

Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.


Function Documentation

EFI_STATUS TpmCommExtend ( IN TIS_TPM_HANDLE  TpmHandle,
IN TPM_DIGEST *  DigestToExtend,
IN TPM_PCRINDEX  PcrIndex,
OUT TPM_DIGEST *  NewPcrValue 
)

Extend a TPM PCR.

Parameters:
[in] TpmHandle TPM handle.
[in] DigestToExtend The 160 bit value representing the event to be recorded.
[in] PcrIndex The PCR to be updated.
[out] NewPcrValue New PCR value after extend.
Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR The command was unsuccessful.

References EFI_STATUS(), TisPcExecute(), and UINTN().

Referenced by HashLogExtendEvent(), and TcgDxeHashLogExtendEventI().

EFI_STATUS TpmCommGetFlags ( IN TIS_TPM_HANDLE  TpmHandle,
IN UINT32  FlagSubcap,
OUT VOID *  FlagBuffer,
IN UINTN  FlagSize 
)

Get TPM capability flags.

Parameters:
[in] TpmHandle TPM handle.
[in] FlagSubcap Flag subcap.
[out] FlagBuffer Pointer to the buffer for returned flag structure.
[in] FlagSize Size of the buffer.
Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR The command was unsuccessful.

References EFI_STATUS(), and TisPcExecute().

Referenced by GetTpmStatus().

EFI_STATUS TpmCommLogEvent ( IN OUT UINT8 **  EventLogPtr,
IN OUT UINTN *  LogSize,
IN UINTN  MaxSize,
IN TCG_PCR_EVENT_HDR *  NewEventHdr,
IN UINT8 *  NewEventData 
)

Add a new entry to the Event Log.

Parameters:
[in,out] EventLogPtr Pointer to the Event Log data.
[in,out] LogSize Size of the Event Log.
[in] MaxSize Maximum size of the Event Log.
[in] NewEventHdr Pointer to a TCG_PCR_EVENT_HDR data structure.
[in] NewEventData Pointer to the new event data.
Return values:
EFI_SUCCESS The new event log entry was added.
EFI_OUT_OF_RESOURCES No enough memory to log the new event.

References UINTN().

Referenced by TcgDxeLogEventI().


Generated on Thu Sep 24 23:44:24 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1