]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Include/Ppi/FirmwareVolumeInfoPrehashedFV.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / SecurityPkg / Include / Ppi / FirmwareVolumeInfoPrehashedFV.h
1 /** @file
2 PPI to describe all hash digests for a given FV
3
4 Copyright (c) 2017, Microsoft Corporation
5 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 **/
10
11 #ifndef __PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_H__
12 #define __PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_H__
13
14 #define EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI_GUID \
15 { 0x3ce1e631, 0x7008, 0x477c, { 0xad, 0xa7, 0x5d, 0xcf, 0xc7, 0xc1, 0x49, 0x4b } }
16
17 //
18 // HashAlgoId is TPM_ALG_ID in Tpm20.h
19 //
20 typedef struct _HASH_INFO {
21 UINT16 HashAlgoId;
22 UINT16 HashSize;
23 // UINT8 Hash[];
24 } HASH_INFO;
25
26 //
27 // This PPI carries prehashsed data for one FV. Platform should ensure 1:1 mapping between pre-hashed PPI and corresponding FV.
28 // The Count field in PPI is followed by Count number of FV hash info entries, which can be extended to PCR and logged to TCG event log directly by TCG modules.
29 // TCG module checks TPM required hash algorithms(PcdTpm2HashMask) with each pre-hashed PPIs
30 // For each pre-hashed PPI
31 // If PPI carries hash generated by equivalent or larger algorithm set than TPM required, directly use PPI
32 // else, drops PPI data and calculate all hash again
33 //
34 typedef struct {
35 UINT32 FvBase;
36 UINT32 FvLength;
37 UINT32 Count;
38 // HASH_INFO HashInfo[];
39 } EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI;
40
41 extern EFI_GUID gEdkiiPeiFirmwareVolumeInfoPrehashedFvPpiGuid;
42
43 #endif