]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Include/Ppi/FirmwareVolumeInfoPrehashedFV.h
QuarkSocPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / Include / Ppi / FirmwareVolumeInfoPrehashedFV.h
CommitLineData
dcd70885
LG
1/** @file\r
2PPI to describe all hash digests for a given FV\r
3\r
c8eada5c 4Copyright (c) 2017, Microsoft Corporation\r
dcd70885 5Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
c8eada5c 6\r
dcd70885
LG
7This program and the accompanying materials\r
8are licensed and made available under the terms and conditions of the BSD License\r
9which accompanies this distribution. The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php\r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
dcd70885
LG
15**/\r
16\r
17#ifndef __PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_H__\r
18#define __PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_H__\r
19\r
20#define EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI_GUID \\r
21 { 0x3ce1e631, 0x7008, 0x477c, { 0xad, 0xa7, 0x5d, 0xcf, 0xc7, 0xc1, 0x49, 0x4b } }\r
22\r
23//\r
24// HashAlgoId is TPM_ALG_ID in Tpm20.h\r
25//\r
26typedef struct _HASH_INFO {\r
27 UINT16 HashAlgoId;\r
28 UINT16 HashSize;\r
29 //UINT8 Hash[];\r
30} HASH_INFO;\r
31\r
32//\r
33// This PPI carries prehashsed data for one FV. Platform should ensure 1:1 mapping between pre-hashed PPI and corresponding FV.\r
34// 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.\r
35// TCG module checks TPM required hash algorithms(PcdTpm2HashMask) with each pre-hased PPIs\r
36// For each pre-hashed PPI\r
37// If PPI carries hash generated by equivalent or larger algorithm set than TPM required, directly use PPI\r
38// else, drops PPI data and cacluate all hash again\r
39//\r
40typedef struct {\r
41 UINT32 FvBase;\r
42 UINT32 FvLength;\r
43 UINT32 Count;\r
44 //HASH_INFO HashInfo[];\r
45} EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI;\r
46\r
47extern EFI_GUID gEdkiiPeiFirmwareVolumeInfoPrehashedFvPpiGuid;\r
48\r
49#endif\r
50\r