4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync EFI PEI Core Security services
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCopyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncThis program and the accompanying materials
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncare licensed and made available under the terms and conditions of the BSD License
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncwhich accompanies this distribution. The full text of the license may be found at
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync EFI_PEI_PPI_DESCRIPTOR_NOTIFY_DISPATCH | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Initialize the security services.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param OldCoreData Pointer to the old core data.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync NULL if being run in non-permament memory mode.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Provide a callback for when the security PPI is installed.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This routine will cache installed security PPI into PeiCore's private data.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param NotifyDescriptor The descriptor for the notification event.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param Ppi Pointer to the PPI in question.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return Always success
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // Get PEI Core private data
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync PrivateData = PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices);
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // If there isn't a security PPI installed, use the one from notification
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync PrivateData->PrivateSecurityPpi = (EFI_PEI_SECURITY2_PPI *)Ppi;
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Provide a callout to the security verification service.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param PrivateData PeiCore's private data structure
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param VolumeHandle Handle of FV
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param FileHandle Handle of PEIM's ffs
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Image is OK
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SECURITY_VIOLATION Image is illegal
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_NOT_FOUND If security PPI is not installed.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // Set a default authentication state
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // Check to see if the image is OK
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Status = PrivateData->PrivateSecurityPpi->AuthenticationState (
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Verify a Firmware volume.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param CurrentFvAddress Pointer to the current Firmware Volume under consideration
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS Firmware Volume is legal
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // Right now just pass the test. Future can authenticate and/or check the
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // FV-header or other metric for goodness of binary.