TianoCore EDK2 master
Loading...
Searching...
No Matches
FvReportPei.h File Reference

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)
 

Detailed Description

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.

Macro Definition Documentation

◆ HASH_INFO_PTR

#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.

◆ HASH_VALUE_PTR

#define HASH_VALUE_PTR (   HashInfo)     (VOID *)((UINT8 *)(HashInfo) + sizeof (HASH_INFO))

Definition at line 31 of file FvReportPei.h.

Typedef Documentation

◆ HASH_ALL_METHOD

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.

Parameters
[in]DataPointer to the buffer containing the data to be hashed.
[in]DataSizeSize of Data buffer in bytes.
[out]HashValuePointer to a buffer that receives digest value.
Return values
TRUEThe digest computation succeeded.
FALSEThe digest computation failed.

Definition at line 51 of file FvReportPei.h.

◆ HASH_FINAL_METHOD

typedef BOOLEAN(EFIAPI * HASH_FINAL_METHOD) (IN OUT VOID *HashContext, OUT UINT8 *HashValue)

Completes computation of the hash digest value.

Parameters
[in,out]HashContextPointer to the hash context.
[out]HashValuePointer to a buffer that receives the hash digest value.
Return values
TRUEHash digest computation succeeded.
FALSEHash digest computation failed.
FALSEThis interface is not supported.

Definition at line 107 of file FvReportPei.h.

◆ HASH_INIT_METHOD

typedef BOOLEAN(EFIAPI * HASH_INIT_METHOD) (OUT VOID *HashContext)

Initializes user-supplied memory as hash context for subsequent use.

Parameters
[out]HashContextPointer to hash context being initialized.
Return values
TRUEHash context initialization succeeded.
FALSEHash context initialization failed.
FALSEThis interface is not supported.

Definition at line 69 of file FvReportPei.h.

◆ HASH_UPDATE_METHOD

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.

Parameters
[in,out]HashContextPointer to the hash context.
[in]DataPointer to the buffer containing the data to be hashed.
[in]DataSizeSize of Data buffer in bytes.
Return values
TRUEHash data digest succeeded.
FALSEHash data digest failed.
FALSEThis interface is not supported.

Definition at line 87 of file FvReportPei.h.