TianoCore EDK2 master
|
#include <PiPei.h>
#include <IndustryStandard/Tpm20.h>
#include <Ppi/FirmwareVolumeInfoStoredHashFv.h>
#include <Ppi/FirmwareVolumeShadowPpi.h>
#include <Library/PeiServicesLib.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/BaseCryptLib.h>
#include <Library/ReportStatusCodeLib.h>
Go to the source code of this file.
Data Structures | |
struct | HASH_ALG_INFO |
Macros | |
#define | HASH_INFO_PTR(PreHashedFvPpi) (HASH_INFO *)((UINT8 *)(PreHashedFvPpi) + sizeof (EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI)) |
#define | HASH_VALUE_PTR(HashInfo) (VOID *)((UINT8 *)(HashInfo) + sizeof (HASH_INFO)) |
Typedefs | |
typedef BOOLEAN(EFIAPI * | HASH_ALL_METHOD) (IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue) |
typedef BOOLEAN(EFIAPI * | HASH_INIT_METHOD) (OUT VOID *HashContext) |
typedef BOOLEAN(EFIAPI * | HASH_UPDATE_METHOD) (IN OUT VOID *HashContext, IN CONST VOID *Data, IN UINTN DataSize) |
typedef BOOLEAN(EFIAPI * | HASH_FINAL_METHOD) (IN OUT VOID *HashContext, OUT UINT8 *HashValue) |
Definitions for OBB FVs verification.
Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FvReportPei.h.
#define HASH_INFO_PTR | ( | PreHashedFvPpi | ) | (HASH_INFO *)((UINT8 *)(PreHashedFvPpi) + sizeof (EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI)) |
Definition at line 28 of file FvReportPei.h.
#define HASH_VALUE_PTR | ( | HashInfo | ) | (VOID *)((UINT8 *)(HashInfo) + sizeof (HASH_INFO)) |
Definition at line 31 of file FvReportPei.h.
typedef BOOLEAN(EFIAPI * HASH_ALL_METHOD) (IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue) |
Computes the message digest of a input data buffer.
This function performs message digest of a given data buffer, and places the digest value into the specified memory.
If this interface is not supported, then return FALSE.
[in] | Data | Pointer to the buffer containing the data to be hashed. |
[in] | DataSize | Size of Data buffer in bytes. |
[out] | HashValue | Pointer to a buffer that receives digest value. |
TRUE | The digest computation succeeded. |
FALSE | The digest computation failed. |
Definition at line 51 of file FvReportPei.h.
Completes computation of the hash digest value.
[in,out] | HashContext | Pointer to the hash context. |
[out] | HashValue | Pointer to a buffer that receives the hash digest value. |
TRUE | Hash digest computation succeeded. |
FALSE | Hash digest computation failed. |
FALSE | This interface is not supported. |
Definition at line 107 of file FvReportPei.h.
typedef BOOLEAN(EFIAPI * HASH_INIT_METHOD) (OUT VOID *HashContext) |
Initializes user-supplied memory as hash context for subsequent use.
[out] | HashContext | Pointer to hash context being initialized. |
TRUE | Hash context initialization succeeded. |
FALSE | Hash context initialization failed. |
FALSE | This interface is not supported. |
Definition at line 69 of file FvReportPei.h.
typedef BOOLEAN(EFIAPI * HASH_UPDATE_METHOD) (IN OUT VOID *HashContext, IN CONST VOID *Data, IN UINTN DataSize) |
Digests the input data and updates hash context.
[in,out] | HashContext | Pointer to the hash context. |
[in] | Data | Pointer to the buffer containing the data to be hashed. |
[in] | DataSize | Size of Data buffer in bytes. |
TRUE | Hash data digest succeeded. |
FALSE | Hash data digest failed. |
FALSE | This interface is not supported. |
Definition at line 87 of file FvReportPei.h.