2 Definition of Pei Core Structures and Services
4 Copyright (c) 2013 Intel Corporation.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _PEI_FV_SECURITY_H_
11 #define _PEI_FV_SECURITY_H_
13 #include <Ppi/FirmwareVolume.h>
14 #include <Ppi/FirmwareVolumeInfo.h>
15 #include <Library/DebugLib.h>
16 #include <Library/PeiServicesLib.h>
17 #include <Library/MemoryAllocationLib.h>
20 Callback function to perform FV security checking on a FV Info PPI.
22 @param PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation
23 @param NotifyDescriptor Address of the notification descriptor data structure.
24 @param Ppi Address of the PPI that was installed.
31 FirmwareVolmeInfoPpiNotifySecurityCallback (
32 IN EFI_PEI_SERVICES
**PeiServices
,
33 IN EFI_PEI_NOTIFY_DESCRIPTOR
*NotifyDescriptor
,
38 Authenticates the Firmware Volume
40 @param CurrentFvAddress Pointer to the current Firmware Volume under consideration
42 @retval EFI_SUCCESS Firmware Volume is legal
47 IN EFI_FIRMWARE_VOLUME_HEADER
*CurrentFvAddress
52 Entry point for the PEI Security PEIM
53 Sets up a notification to perform PEI security checking
55 @param FfsHeader Not used.
56 @param PeiServices General purpose services available to every PEIM.
58 @return EFI_SUCCESS PEI Security notification installed successfully.
59 All others: PEI Security notification failed to install.
63 PeiInitializeFvSecurity (