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