2010-01-28 09:19:25 +01:00
|
|
|
## @file
|
2009-08-24 17:31:04 +02:00
|
|
|
# EFI/PI Reference Module Package for All Architectures
|
|
|
|
#
|
2014-12-04 01:32:24 +01:00
|
|
|
# (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
|
2021-03-12 06:25:35 +01:00
|
|
|
# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
|
2020-11-09 07:45:11 +01:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
2023-06-17 23:51:47 +02:00
|
|
|
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
2009-08-24 17:31:04 +02:00
|
|
|
#
|
2019-04-04 01:05:13 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2009-08-24 17:31:04 +02:00
|
|
|
#
|
2010-01-28 09:19:25 +01:00
|
|
|
##
|
2009-08-24 17:31:04 +02:00
|
|
|
|
|
|
|
[Defines]
|
|
|
|
PLATFORM_NAME = MdeModule
|
|
|
|
PLATFORM_GUID = 587CE499-6CBE-43cd-94E2-186218569478
|
2018-01-22 02:09:45 +01:00
|
|
|
PLATFORM_VERSION = 0.98
|
2009-08-24 17:31:04 +02:00
|
|
|
DSC_SPECIFICATION = 0x00010005
|
|
|
|
OUTPUT_DIRECTORY = Build/MdeModule
|
2021-10-28 04:49:01 +02:00
|
|
|
SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
|
2016-01-19 05:05:51 +01:00
|
|
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
2009-08-24 17:31:04 +02:00
|
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
|
|
|
2021-03-12 06:25:35 +01:00
|
|
|
!include MdePkg/MdeLibs.dsc.inc
|
|
|
|
|
2010-02-24 01:21:16 +01:00
|
|
|
[LibraryClasses]
|
2010-05-21 04:49:29 +02:00
|
|
|
#
|
|
|
|
# Entry point
|
|
|
|
#
|
2009-08-24 17:31:04 +02:00
|
|
|
PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
|
|
|
|
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
|
|
|
DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
|
|
|
|
UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
|
|
|
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
#
|
|
|
|
# Basic
|
|
|
|
#
|
|
|
|
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
|
|
|
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
|
|
|
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
|
|
|
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
|
|
|
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
|
|
|
PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
|
|
|
|
PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
|
2016-01-18 05:50:18 +01:00
|
|
|
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
|
2024-07-18 10:30:45 +02:00
|
|
|
PeCoffLib2|MdePkg/Library/BasePeCoffLib2/BasePeCoffLib2.inf
|
|
|
|
UefiImageLib|MdePkg/Library/BaseUefiImageLib/BaseUefiImageLibPeCoff.inf
|
2015-05-11 06:51:38 +02:00
|
|
|
SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
#
|
|
|
|
# UEFI & PI
|
|
|
|
#
|
2009-08-24 17:31:04 +02:00
|
|
|
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
|
|
|
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
|
|
|
UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
|
|
|
UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
|
|
|
|
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
|
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
|
|
|
UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
|
|
|
|
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
|
|
|
PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
|
|
|
DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
|
|
|
|
DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
|
2015-05-06 06:48:56 +02:00
|
|
|
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
|
2020-11-09 07:45:11 +01:00
|
|
|
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
#
|
|
|
|
# Generic Modules
|
|
|
|
#
|
2009-08-24 17:31:04 +02:00
|
|
|
UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
2009-11-26 02:31:48 +01:00
|
|
|
SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
|
2009-12-25 09:09:48 +01:00
|
|
|
SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
|
|
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
2013-08-12 04:19:56 +02:00
|
|
|
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
2016-06-30 07:01:56 +02:00
|
|
|
FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
#
|
|
|
|
# Misc
|
|
|
|
#
|
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
2018-06-27 15:08:52 +02:00
|
|
|
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
|
|
|
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
2024-07-18 10:30:45 +02:00
|
|
|
UefiImageExtraActionLib|MdePkg/Library/BaseUefiImageExtraActionLibNull/BaseUefiImageExtraActionLibNull.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
|
2010-02-26 06:38:04 +01:00
|
|
|
DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
|
2010-12-29 19:28:38 +01:00
|
|
|
PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
|
2011-07-01 02:40:46 +02:00
|
|
|
ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
|
2011-08-30 00:18:19 +02:00
|
|
|
SmbusLib|MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf
|
|
|
|
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
2012-03-15 06:20:41 +01:00
|
|
|
CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
|
2015-05-06 06:48:56 +02:00
|
|
|
PlatformBootManagerLib|MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootManagerLibNull.inf
|
2016-01-18 05:49:54 +01:00
|
|
|
PciHostBridgeLib|MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf
|
2015-07-01 05:01:34 +02:00
|
|
|
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
2015-07-01 05:04:18 +02:00
|
|
|
AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
|
2015-08-25 05:01:56 +02:00
|
|
|
VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
|
2015-11-23 06:41:28 +01:00
|
|
|
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
2016-10-31 15:58:18 +01:00
|
|
|
NonDiscoverableDeviceRegistrationLib|MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf
|
2023-11-03 16:29:42 +01:00
|
|
|
ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
2016-09-21 04:44:16 +02:00
|
|
|
FmpAuthenticationLib|MdeModulePkg/Library/FmpAuthenticationLibNull/FmpAuthenticationLibNull.inf
|
|
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
|
2017-12-28 01:09:31 +01:00
|
|
|
BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
|
|
|
|
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
2018-03-22 19:39:04 +01:00
|
|
|
DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
|
2020-11-09 07:45:12 +01:00
|
|
|
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
2021-03-05 05:14:11 +01:00
|
|
|
MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
|
2022-04-08 17:53:29 +02:00
|
|
|
VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
|
2022-12-26 08:07:17 +01:00
|
|
|
IpmiCommandLib|MdeModulePkg/Library/BaseIpmiCommandLibNull/BaseIpmiCommandLibNull.inf
|
2024-04-29 22:50:53 +02:00
|
|
|
SpiHcPlatformLib|MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHcPlatformLibNull.inf
|
2016-09-21 04:44:16 +02:00
|
|
|
|
2009-08-24 17:31:04 +02:00
|
|
|
[LibraryClasses.EBC.PEIM]
|
|
|
|
IoLib|MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf
|
|
|
|
|
|
|
|
[LibraryClasses.common.PEI_CORE]
|
|
|
|
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
|
|
|
|
|
|
|
[LibraryClasses.common.PEIM]
|
|
|
|
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
|
|
|
ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
|
2011-08-02 23:06:13 +02:00
|
|
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
|
2022-08-01 19:00:09 +02:00
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_CORE]
|
|
|
|
HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
|
|
|
|
MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
|
|
|
|
ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
|
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_DRIVER]
|
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
2011-07-19 22:47:28 +02:00
|
|
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg.
The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID.
MdePkg/Include/Guid/WinCertificate.h
=================================
//
// WIN_CERTIFICATE_UEFI_GUID.CertType
//
#define EFI_CERT_TYPE_RSA2048_SHA256_GUID \
{0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } }
///
/// WIN_CERTIFICATE_UEFI_GUID.CertData
///
typedef struct {
EFI_GUID HashType;
UINT8 PublicKey[256];
UINT8 Signature[256];
} EFI_CERT_BLOCK_RSA_2048_SHA256;
MdePkg/Include/Protocol/Hash.h
=================================
#define EFI_HASH_ALGORITHM_SHA256_GUID \
{ \
0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \
}
The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region.
While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase.
I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers.
Patch Summary
==============
1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH
c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section
Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256Sign -e|-d [options] <input_file>
positional arguments:
input_file specify the input filename
optional arguments:
-e encode file
-d decode file
-o filename, --output filename
specify the output filename
--private-key PRIVATEKEYFILE
specify the private key filename. If not specified, a
test signing key is used.
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities.
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH
Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256GenerateKeys [options]
optional arguments:
-o [filename [filename ...]], --output [filename [filename ...]]
specify the output private key filename in PEM format
-i [filename [filename ...]], --input [filename [filename ...]]
specify the input private key filename in PEM format
--public-key-hash PUBLICKEYHASHFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in binary format
--public-key-hash-c PUBLICKEYHASHCFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in C structure format
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
3) BaseTools\Conf\tools_def.template
a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key
b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID
c. Tool is Rsa2049Sha256Sign
4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib
a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components
5) MdeModulePkg\Universal\SectionExtractionPei
a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs
6) MdeModulePkg\Universal\SectionExtractionDxe
a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols.
7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15799 6f19259b-4bc3-4df7-8a09-765794883524
2014-08-14 08:29:07 +02:00
|
|
|
ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
|
2016-09-21 04:44:16 +02:00
|
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_RUNTIME_DRIVER]
|
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
2011-07-19 22:47:28 +02:00
|
|
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
|
2016-09-21 04:44:16 +02:00
|
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf
|
2020-11-09 07:45:11 +01:00
|
|
|
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
2010-02-26 00:42:27 +01:00
|
|
|
[LibraryClasses.common.SMM_CORE]
|
2014-12-10 03:24:50 +01:00
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
2010-02-26 00:42:27 +01:00
|
|
|
MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
|
2018-06-27 15:08:52 +02:00
|
|
|
SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
|
2015-02-02 15:42:22 +01:00
|
|
|
SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
|
2011-08-16 04:58:20 +02:00
|
|
|
|
2009-08-24 17:31:04 +02:00
|
|
|
[LibraryClasses.common.DXE_SMM_DRIVER]
|
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
2019-04-10 03:17:23 +02:00
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
2010-05-21 04:49:29 +02:00
|
|
|
MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
2019-01-09 16:00:35 +01:00
|
|
|
MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
|
2009-12-23 07:51:36 +01:00
|
|
|
SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
2011-07-19 22:47:28 +02:00
|
|
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
2015-02-02 15:42:22 +01:00
|
|
|
SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.UEFI_DRIVER]
|
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
2011-07-19 22:47:28 +02:00
|
|
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.UEFI_APPLICATION]
|
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
|
2019-01-29 08:29:58 +01:00
|
|
|
FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
2019-01-14 13:19:08 +01:00
|
|
|
[LibraryClasses.common.MM_STANDALONE]
|
|
|
|
HobLib|MdeModulePkg/Library/BaseHobLibNull/BaseHobLibNull.inf
|
|
|
|
MemoryAllocationLib|MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
|
|
|
|
StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
|
|
|
|
MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
|
2020-12-17 22:18:51 +01:00
|
|
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxStandaloneMmLib.inf
|
2020-12-17 23:15:13 +01:00
|
|
|
MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
|
2019-01-14 13:19:08 +01:00
|
|
|
|
2014-12-04 01:32:24 +01:00
|
|
|
[LibraryClasses.ARM, LibraryClasses.AARCH64]
|
2019-03-18 15:56:25 +01:00
|
|
|
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
|
2016-09-27 03:15:52 +02:00
|
|
|
|
2011-03-10 23:15:38 +01:00
|
|
|
#
|
2014-12-04 01:32:24 +01:00
|
|
|
# It is not possible to prevent ARM compiler calls to generic intrinsic functions.
|
|
|
|
# This library provides the instrinsic functions generated by a given compiler.
|
2011-03-10 23:15:38 +01:00
|
|
|
# [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
|
|
|
|
#
|
|
|
|
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
2010-12-15 22:06:24 +01:00
|
|
|
|
2016-09-27 03:15:52 +02:00
|
|
|
#
|
|
|
|
# Since software stack checking may be heuristically enabled by the compiler
|
|
|
|
# include BaseStackCheckLib unconditionally.
|
|
|
|
#
|
|
|
|
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
|
|
|
|
2021-10-28 04:49:01 +02:00
|
|
|
[LibraryClasses.EBC, LibraryClasses.RISCV64, LibraryClasses.LOONGARCH64]
|
2013-05-13 04:36:09 +02:00
|
|
|
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
|
2010-12-15 22:06:24 +01:00
|
|
|
|
2010-02-24 01:21:16 +01:00
|
|
|
[PcdsFeatureFlag]
|
2009-08-24 17:31:04 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
|
2010-05-21 04:49:29 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
|
2009-08-24 17:31:04 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|FALSE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|FALSE
|
|
|
|
|
2010-02-24 01:21:16 +01:00
|
|
|
[PcdsFixedAtBuild]
|
2009-08-24 17:31:04 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|0x0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule|0x0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries|28
|
|
|
|
|
2019-06-24 08:53:18 +02:00
|
|
|
[PcdsDynamicExDefault]
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName|L"FVMAIN.FV"
|
|
|
|
|
2010-02-24 01:21:16 +01:00
|
|
|
[Components]
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Application/HelloWorld/HelloWorld.inf
|
2019-05-07 07:55:05 +02:00
|
|
|
MdeModulePkg/Application/DumpDynPcd/DumpDynPcd.inf
|
2014-11-12 04:27:48 +01:00
|
|
|
MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
2019-05-20 07:50:35 +02:00
|
|
|
MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
|
|
|
MdeModulePkg/Logo/Logo.inf
|
|
|
|
MdeModulePkg/Logo/LogoDxe.inf
|
|
|
|
MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
|
2021-08-02 14:18:35 +02:00
|
|
|
MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf
|
2019-05-20 07:50:35 +02:00
|
|
|
MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
|
|
|
|
MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
|
|
|
|
MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
|
|
|
MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
|
|
|
|
MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
|
|
|
|
MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
|
|
|
|
MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf
|
|
|
|
MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
|
|
|
|
MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
|
|
|
|
MdeModulePkg/Library/BaseHobLibNull/BaseHobLibNull.inf
|
|
|
|
MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
|
2020-11-09 07:45:12 +01:00
|
|
|
MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
2023-11-03 16:29:42 +01:00
|
|
|
MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
|
2019-05-20 07:50:35 +02:00
|
|
|
|
2016-01-18 05:50:18 +01:00
|
|
|
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
2015-12-10 03:47:16 +01:00
|
|
|
MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
|
2009-10-20 05:43:40 +02:00
|
|
|
MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/Pci/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupportDxe.inf
|
2013-08-12 08:13:54 +02:00
|
|
|
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
2018-05-21 07:28:24 +02:00
|
|
|
MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.inf
|
2016-03-23 03:47:05 +01:00
|
|
|
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
|
|
|
|
MdeModulePkg/Bus/Pci/SdMmcPciHcPei/SdMmcPciHcPei.inf
|
|
|
|
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcBlockIoPei.inf
|
|
|
|
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdBlockIoPei.inf
|
|
|
|
MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
|
|
|
|
MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
|
2015-04-29 04:42:58 +02:00
|
|
|
MdeModulePkg/Bus/Pci/UfsPciHcDxe/UfsPciHcDxe.inf
|
|
|
|
MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe.inf
|
|
|
|
MdeModulePkg/Bus/Pci/UfsPciHcPei/UfsPciHcPei.inf
|
|
|
|
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsBlockIoPei.inf
|
2011-08-23 16:36:33 +02:00
|
|
|
MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
|
|
|
MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
2011-06-28 01:30:55 +02:00
|
|
|
MdeModulePkg/Bus/Pci/UhciPei/UhciPei.inf
|
|
|
|
MdeModulePkg/Bus/Pci/EhciPei/EhciPei.inf
|
2014-07-02 05:20:49 +02:00
|
|
|
MdeModulePkg/Bus/Pci/XhciPei/XhciPei.inf
|
2011-06-28 01:31:21 +02:00
|
|
|
MdeModulePkg/Bus/Pci/IdeBusPei/IdeBusPei.inf
|
2011-06-28 01:30:55 +02:00
|
|
|
MdeModulePkg/Bus/Usb/UsbBusPei/UsbBusPei.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbBotPei/UsbBotPei.inf
|
2016-07-19 07:57:49 +02:00
|
|
|
MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
|
2009-12-22 08:35:49 +01:00
|
|
|
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
2010-10-12 04:28:34 +02:00
|
|
|
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
2018-06-22 10:53:28 +02:00
|
|
|
MdeModulePkg/Bus/Ata/AhciPei/AhciPei.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
|
2023-07-13 08:20:31 +02:00
|
|
|
MdeModulePkg/Bus/Usb/UsbNetwork/NetworkCommon/NetworkCommon.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/UsbCdcEcm.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcNcm/UsbCdcNcm.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbNetwork/UsbRndis/UsbRndis.inf
|
2013-08-14 03:16:06 +02:00
|
|
|
MdeModulePkg/Bus/I2c/I2cDxe/I2cBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/I2c/I2cDxe/I2cHostDxe.inf
|
|
|
|
MdeModulePkg/Bus/I2c/I2cDxe/I2cDxe.inf
|
2015-05-26 04:48:42 +02:00
|
|
|
MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
|
2015-07-17 11:39:00 +02:00
|
|
|
MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
2015-07-17 11:40:15 +02:00
|
|
|
MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
|
2016-10-31 16:36:50 +01:00
|
|
|
MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
|
2023-06-17 23:51:47 +02:00
|
|
|
MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJedecSfdpDxe.inf
|
|
|
|
MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlashJedecSfdpSmm.inf
|
2024-04-29 22:38:35 +02:00
|
|
|
MdeModulePkg/Bus/Spi/SpiBus/SpiBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/Spi/SpiBus/SpiBusSmm.inf
|
2024-04-29 23:02:52 +02:00
|
|
|
MdeModulePkg/Bus/Spi/SpiHc/SpiHcDxe.inf
|
|
|
|
MdeModulePkg/Bus/Spi/SpiHc/SpiHcSmm.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
|
|
|
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
|
|
|
MdeModulePkg/Core/Pei/PeiMain.inf
|
|
|
|
MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
|
|
|
|
|
|
|
MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
|
2016-06-18 03:31:28 +02:00
|
|
|
MdeModulePkg/Library/UefiMemoryAllocationProfileLib/UefiMemoryAllocationProfileLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
|
2016-06-23 16:33:55 +02:00
|
|
|
MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationProfileLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
|
|
|
|
MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
|
|
|
|
MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
|
2017-09-01 10:16:50 +02:00
|
|
|
MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Library/DxePrintLibPrint2Protocol/DxePrintLibPrint2Protocol.inf
|
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg.
The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID.
MdePkg/Include/Guid/WinCertificate.h
=================================
//
// WIN_CERTIFICATE_UEFI_GUID.CertType
//
#define EFI_CERT_TYPE_RSA2048_SHA256_GUID \
{0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } }
///
/// WIN_CERTIFICATE_UEFI_GUID.CertData
///
typedef struct {
EFI_GUID HashType;
UINT8 PublicKey[256];
UINT8 Signature[256];
} EFI_CERT_BLOCK_RSA_2048_SHA256;
MdePkg/Include/Protocol/Hash.h
=================================
#define EFI_HASH_ALGORITHM_SHA256_GUID \
{ \
0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \
}
The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region.
While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase.
I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers.
Patch Summary
==============
1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH
c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section
Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256Sign -e|-d [options] <input_file>
positional arguments:
input_file specify the input filename
optional arguments:
-e encode file
-d decode file
-o filename, --output filename
specify the output filename
--private-key PRIVATEKEYFILE
specify the private key filename. If not specified, a
test signing key is used.
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities.
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH
Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256GenerateKeys [options]
optional arguments:
-o [filename [filename ...]], --output [filename [filename ...]]
specify the output private key filename in PEM format
-i [filename [filename ...]], --input [filename [filename ...]]
specify the input private key filename in PEM format
--public-key-hash PUBLICKEYHASHFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in binary format
--public-key-hash-c PUBLICKEYHASHCFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in C structure format
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
3) BaseTools\Conf\tools_def.template
a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key
b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID
c. Tool is Rsa2049Sha256Sign
4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib
a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components
5) MdeModulePkg\Universal\SectionExtractionPei
a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs
6) MdeModulePkg\Universal\SectionExtractionDxe
a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols.
7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15799 6f19259b-4bc3-4df7-8a09-765794883524
2014-08-14 08:29:07 +02:00
|
|
|
MdeModulePkg/Library/PeiCrc32GuidedSectionExtractLib/PeiCrc32GuidedSectionExtractLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
|
2017-09-01 10:16:50 +02:00
|
|
|
MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
|
2017-09-01 10:16:50 +02:00
|
|
|
MdeModulePkg/Library/ResetUtilityLib/ResetUtilityLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
|
2009-11-26 02:31:48 +01:00
|
|
|
MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
|
2009-12-29 08:50:42 +01:00
|
|
|
MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
|
|
|
|
MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
|
|
|
MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
2009-12-29 09:50:51 +01:00
|
|
|
MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
2019-02-21 01:59:44 +01:00
|
|
|
MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.inf
|
2010-12-18 02:02:59 +01:00
|
|
|
MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
|
|
|
|
MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
|
2011-03-11 18:46:36 +01:00
|
|
|
MdeModulePkg/Library/DxeDebugPrintErrorLevelLib/DxeDebugPrintErrorLevelLib.inf
|
2011-08-30 00:17:27 +02:00
|
|
|
MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
2011-10-08 23:00:13 +02:00
|
|
|
MdeModulePkg/Library/PeiDebugPrintHobLib/PeiDebugPrintHobLib.inf
|
2012-03-15 06:20:41 +01:00
|
|
|
MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
|
2014-08-11 08:23:51 +02:00
|
|
|
MdeModulePkg/Library/PlatformHookLibSerialPortPpi/PlatformHookLibSerialPortPpi.inf
|
2015-04-03 04:50:57 +02:00
|
|
|
MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
2019-03-14 10:03:51 +01:00
|
|
|
MdeModulePkg/Library/PeiDebugLibDebugPpi/PeiDebugLibDebugPpi.inf
|
2015-05-11 06:51:38 +02:00
|
|
|
MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
|
2015-05-06 06:48:56 +02:00
|
|
|
MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootManagerLibNull.inf
|
2015-11-12 06:23:25 +01:00
|
|
|
MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
|
2015-07-01 05:01:34 +02:00
|
|
|
MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
2015-07-01 05:04:18 +02:00
|
|
|
MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
|
2020-11-09 07:45:11 +01:00
|
|
|
MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
|
|
|
|
MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
|
2020-11-09 07:45:13 +01:00
|
|
|
MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
|
2020-12-21 07:17:34 +01:00
|
|
|
MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.inf
|
2015-08-25 05:01:56 +02:00
|
|
|
MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
|
2015-08-25 05:10:04 +02:00
|
|
|
MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
|
2015-08-25 05:10:32 +02:00
|
|
|
MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
|
2015-08-25 05:11:06 +02:00
|
|
|
MdeModulePkg/Library/PlatformVarCleanupLib/PlatformVarCleanupLib.inf
|
2015-11-23 06:41:28 +01:00
|
|
|
MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
2015-11-23 06:42:50 +01:00
|
|
|
MdeModulePkg/Library/DxeFileExplorerProtocol/DxeFileExplorerProtocol.inf
|
2015-12-23 09:18:36 +01:00
|
|
|
MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.inf
|
|
|
|
MdeModulePkg/Library/DxeIpmiLibIpmiProtocol/DxeIpmiLibIpmiProtocol.inf
|
|
|
|
MdeModulePkg/Library/PeiIpmiLibIpmiPpi/PeiIpmiLibIpmiPpi.inf
|
|
|
|
MdeModulePkg/Library/SmmIpmiLibSmmIpmiProtocol/SmmIpmiLibSmmIpmiProtocol.inf
|
2022-12-26 08:07:17 +01:00
|
|
|
MdeModulePkg/Library/BaseIpmiCommandLibNull/BaseIpmiCommandLibNull.inf
|
2016-07-07 07:31:27 +02:00
|
|
|
MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
|
2016-10-31 15:58:18 +01:00
|
|
|
MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf
|
2017-12-22 20:24:38 +01:00
|
|
|
MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
|
2018-03-22 19:39:04 +01:00
|
|
|
MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
|
|
|
|
MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.inf
|
2023-08-11 16:33:02 +02:00
|
|
|
MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
2015-05-06 06:48:56 +02:00
|
|
|
MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
2015-05-06 06:49:30 +02:00
|
|
|
MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
|
2015-11-23 10:37:24 +01:00
|
|
|
MdeModulePkg/Application/UiApp/UiApp.inf{
|
|
|
|
<LibraryClasses>
|
2016-01-19 04:31:15 +01:00
|
|
|
NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
|
2021-08-02 14:18:35 +02:00
|
|
|
NULL|MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf
|
2016-01-19 04:31:15 +01:00
|
|
|
NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
|
2015-11-23 10:37:24 +01:00
|
|
|
}
|
2015-05-06 06:50:56 +02:00
|
|
|
MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
|
2015-05-11 08:34:53 +02:00
|
|
|
MdeModulePkg/Universal/BootManagerPolicyDxe/BootManagerPolicyDxe.inf
|
2011-07-12 22:35:46 +02:00
|
|
|
MdeModulePkg/Universal/CapsulePei/CapsulePei.inf
|
2019-06-24 08:53:18 +02:00
|
|
|
MdeModulePkg/Universal/CapsuleOnDiskLoadPei/CapsuleOnDiskLoadPei.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
|
|
|
MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
|
|
|
MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
|
|
|
MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
2016-06-30 07:01:56 +02:00
|
|
|
MdeModulePkg/Universal/Console/GraphicsOutputDxe/GraphicsOutputDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
|
|
|
MdeModulePkg/Universal/DebugPortDxe/DebugPortDxe.inf
|
|
|
|
MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
|
|
|
MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
|
|
|
|
MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
|
|
|
MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
2017-09-13 09:36:58 +02:00
|
|
|
MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
2011-07-12 22:36:05 +02:00
|
|
|
MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
|
|
|
|
MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
2011-07-01 02:40:26 +02:00
|
|
|
MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/GenericMemoryTestDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
|
|
|
|
MdeModulePkg/Universal/Metronome/Metronome.inf
|
|
|
|
MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
2017-09-04 10:50:14 +02:00
|
|
|
MdeModulePkg/Universal/ResetSystemPei/ResetSystemPei.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
|
|
|
|
}
|
2018-06-01 09:11:50 +02:00
|
|
|
MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
|
|
|
|
}
|
2009-11-20 05:01:32 +01:00
|
|
|
MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
2015-10-27 05:46:50 +01:00
|
|
|
MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
|
|
|
MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PcatSingleSegmentPciCfg2Pei.inf
|
|
|
|
MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
|
|
|
MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
|
|
|
MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
|
2009-11-03 03:39:10 +01:00
|
|
|
|
|
|
|
MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
|
|
|
|
MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
|
|
|
|
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
|
|
|
MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
2013-08-12 04:19:56 +02:00
|
|
|
MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Application/VariableInfo/VariableInfo.inf
|
2013-07-03 11:08:40 +02:00
|
|
|
MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
|
2023-06-28 01:14:20 +02:00
|
|
|
MdeModulePkg/Universal/Variable/MmVariablePei/MmVariablePei.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
2013-09-29 07:51:12 +02:00
|
|
|
MdeModulePkg/Universal/TimestampDxe/TimestampDxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
|
|
|
|
|
|
|
MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
|
|
|
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
2009-11-11 07:17:18 +01:00
|
|
|
MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSampleDxe.inf
|
2009-11-25 09:31:37 +01:00
|
|
|
MdeModulePkg/Universal/LegacyRegion2Dxe/LegacyRegion2Dxe.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
2009-12-25 08:26:06 +01:00
|
|
|
MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
|
|
|
|
MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
|
|
|
|
|
2011-12-01 02:57:27 +01:00
|
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTablePei/FirmwarePerformancePei.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
|
|
|
|
}
|
|
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
|
|
|
|
MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg.
The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID.
MdePkg/Include/Guid/WinCertificate.h
=================================
//
// WIN_CERTIFICATE_UEFI_GUID.CertType
//
#define EFI_CERT_TYPE_RSA2048_SHA256_GUID \
{0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } }
///
/// WIN_CERTIFICATE_UEFI_GUID.CertData
///
typedef struct {
EFI_GUID HashType;
UINT8 PublicKey[256];
UINT8 Signature[256];
} EFI_CERT_BLOCK_RSA_2048_SHA256;
MdePkg/Include/Protocol/Hash.h
=================================
#define EFI_HASH_ALGORITHM_SHA256_GUID \
{ \
0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \
}
The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region.
While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase.
I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers.
Patch Summary
==============
1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH
c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section
Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256Sign -e|-d [options] <input_file>
positional arguments:
input_file specify the input filename
optional arguments:
-e encode file
-d decode file
-o filename, --output filename
specify the output filename
--private-key PRIVATEKEYFILE
specify the private key filename. If not specified, a
test signing key is used.
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities.
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH
Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256GenerateKeys [options]
optional arguments:
-o [filename [filename ...]], --output [filename [filename ...]]
specify the output private key filename in PEM format
-i [filename [filename ...]], --input [filename [filename ...]]
specify the input private key filename in PEM format
--public-key-hash PUBLICKEYHASHFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in binary format
--public-key-hash-c PUBLICKEYHASHCFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in C structure format
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
3) BaseTools\Conf\tools_def.template
a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key
b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID
c. Tool is Rsa2049Sha256Sign
4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib
a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components
5) MdeModulePkg\Universal\SectionExtractionPei
a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs
6) MdeModulePkg\Universal\SectionExtractionDxe
a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols.
7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15799 6f19259b-4bc3-4df7-8a09-765794883524
2014-08-14 08:29:07 +02:00
|
|
|
MdeModulePkg/Universal/SectionExtractionDxe/SectionExtractionDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
|
|
|
|
}
|
|
|
|
MdeModulePkg/Universal/SectionExtractionPei/SectionExtractionPei.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|MdeModulePkg/Library/PeiCrc32GuidedSectionExtractLib/PeiCrc32GuidedSectionExtractLib.inf
|
|
|
|
}
|
2014-12-23 04:18:04 +01:00
|
|
|
|
|
|
|
MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
|
2015-05-13 10:30:45 +02:00
|
|
|
MdeModulePkg/Universal/EsrtDxe/EsrtDxe.inf
|
2018-01-05 00:25:35 +01:00
|
|
|
MdeModulePkg/Universal/EsrtFmpDxe/EsrtFmpDxe.inf
|
2018-06-27 15:08:52 +02:00
|
|
|
|
2015-11-23 06:42:21 +01:00
|
|
|
MdeModulePkg/Universal/FileExplorerDxe/FileExplorerDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
|
|
|
}
|
2014-12-23 04:18:04 +01:00
|
|
|
|
2015-11-26 09:48:10 +01:00
|
|
|
MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
|
2016-07-25 16:00:26 +02:00
|
|
|
MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.inf
|
2015-11-26 09:48:10 +01:00
|
|
|
|
2019-03-14 10:03:51 +01:00
|
|
|
MdeModulePkg/Universal/DebugServicePei/DebugServicePei.inf
|
|
|
|
|
2016-09-21 04:44:16 +02:00
|
|
|
MdeModulePkg/Application/CapsuleApp/CapsuleApp.inf
|
|
|
|
MdeModulePkg/Library/FmpAuthenticationLibNull/FmpAuthenticationLibNull.inf
|
|
|
|
MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf
|
|
|
|
MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf
|
2022-04-08 17:53:29 +02:00
|
|
|
MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
|
2016-09-21 04:44:16 +02:00
|
|
|
|
2018-06-29 05:27:00 +02:00
|
|
|
[Components.IA32, Components.X64, Components.AARCH64]
|
2009-08-24 17:31:04 +02:00
|
|
|
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
2016-11-16 14:24:09 +01:00
|
|
|
MdeModulePkg/Universal/EbcDxe/EbcDebugger.inf
|
2016-11-24 18:00:18 +01:00
|
|
|
MdeModulePkg/Universal/EbcDxe/EbcDebuggerConfig.inf
|
2009-08-24 17:31:04 +02:00
|
|
|
|
2018-06-29 05:27:00 +02:00
|
|
|
[Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
|
2018-10-11 07:53:01 +02:00
|
|
|
MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf
|
2019-12-04 01:43:24 +01:00
|
|
|
MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
|
2018-01-30 06:33:16 +01:00
|
|
|
MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
|
|
|
|
MdeModulePkg/Core/Dxe/DxeMain.inf {
|
2015-08-25 05:01:56 +02:00
|
|
|
<LibraryClasses>
|
2018-01-30 06:33:16 +01:00
|
|
|
NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
|
2015-08-25 05:01:56 +02:00
|
|
|
}
|
2018-01-30 06:33:16 +01:00
|
|
|
|
2019-01-25 09:12:05 +01:00
|
|
|
!if $(TOOL_CHAIN_TAG) != "XCODE5"
|
|
|
|
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandaloneMm.inf
|
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
|
|
|
|
!endif
|
|
|
|
|
2010-02-26 00:42:27 +01:00
|
|
|
[Components.IA32, Components.X64]
|
2019-01-14 13:16:23 +01:00
|
|
|
MdeModulePkg/Universal/DebugSupportDxe/DebugSupportDxe.inf
|
2017-01-30 15:44:43 +01:00
|
|
|
MdeModulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.inf
|
2010-02-26 00:42:27 +01:00
|
|
|
MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
|
|
|
MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
2015-08-25 05:01:56 +02:00
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
|
|
|
|
<LibraryClasses>
|
2020-11-09 07:45:13 +01:00
|
|
|
NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
|
2015-08-25 05:01:56 +02:00
|
|
|
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
|
2015-08-25 05:10:04 +02:00
|
|
|
NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
|
2015-08-25 05:10:32 +02:00
|
|
|
NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
|
2015-08-25 05:01:56 +02:00
|
|
|
}
|
2018-01-30 06:33:16 +01:00
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
|
|
|
|
}
|
2010-12-10 10:27:54 +01:00
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
|
2010-02-26 00:42:27 +01:00
|
|
|
MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
|
2020-12-17 22:38:50 +01:00
|
|
|
MdeModulePkg/Library/SmmReportStatusCodeLib/StandaloneMmReportStatusCodeLib.inf
|
2010-02-26 00:42:27 +01:00
|
|
|
MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerSmm.inf
|
2020-12-31 10:56:51 +01:00
|
|
|
MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerStandaloneMm.inf
|
2010-02-26 00:42:27 +01:00
|
|
|
MdeModulePkg/Universal/ReportStatusCodeRouter/Smm/ReportStatusCodeRouterSmm.inf
|
2020-12-17 23:28:57 +01:00
|
|
|
MdeModulePkg/Universal/ReportStatusCodeRouter/Smm/ReportStatusCodeRouterStandaloneMm.inf
|
2011-07-19 22:47:28 +02:00
|
|
|
MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
2016-06-18 03:05:22 +02:00
|
|
|
MdeModulePkg/Library/SmmMemoryAllocationProfileLib/SmmMemoryAllocationProfileLib.inf
|
2016-06-23 16:45:14 +02:00
|
|
|
MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationProfileLib.inf
|
|
|
|
MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
|
2011-03-10 08:39:51 +01:00
|
|
|
MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.inf
|
|
|
|
MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf
|
2011-08-10 02:02:58 +02:00
|
|
|
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
|
2013-05-13 04:36:09 +02:00
|
|
|
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
|
|
|
|
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
2020-12-17 22:18:51 +01:00
|
|
|
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxStandaloneMmLib.inf
|
2011-08-16 04:58:20 +02:00
|
|
|
MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
|
2017-01-30 15:44:43 +01:00
|
|
|
MdeModulePkg/Library/SmmSmiHandlerProfileLib/SmmSmiHandlerProfileLib.inf
|
2021-01-26 08:10:21 +01:00
|
|
|
MdeModulePkg/Library/SmmSmiHandlerProfileLib/StandaloneMmSmiHandlerProfileLib.inf
|
2015-04-03 04:50:57 +02:00
|
|
|
MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaArchCustomDecompressLib.inf
|
2011-08-30 00:18:19 +02:00
|
|
|
MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
|
2011-08-30 00:19:48 +02:00
|
|
|
MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
|
|
|
|
MdeModulePkg/Universal/Acpi/SmmS3SaveState/SmmS3SaveState.inf
|
2011-12-01 02:57:27 +01:00
|
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf
|
2020-12-17 23:15:13 +01:00
|
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceStandaloneMm.inf
|
2015-02-05 07:10:07 +01:00
|
|
|
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
|
|
|
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmmDxe.inf
|
2015-09-09 08:28:32 +02:00
|
|
|
MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf
|
2016-04-22 09:04:45 +02:00
|
|
|
MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferDxe.inf
|
2016-05-23 05:40:30 +02:00
|
|
|
MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
|
2023-05-10 04:15:35 +02:00
|
|
|
MdeModulePkg/Library/TraceHubDebugSysTLib/BaseTraceHubDebugSysTLib.inf
|
|
|
|
MdeModulePkg/Library/TraceHubDebugSysTLib/PeiTraceHubDebugSysTLib.inf
|
|
|
|
MdeModulePkg/Library/TraceHubDebugSysTLib/DxeSmmTraceHubDebugSysTLib.inf
|
2024-04-29 22:50:53 +02:00
|
|
|
MdeModulePkg/Library/BaseSpiHcPlatformLibNull/BaseSpiHcPlatformLibNull.inf
|
2015-07-29 07:58:20 +02:00
|
|
|
|
|
|
|
[Components.X64]
|
|
|
|
MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf
|
|
|
|
|
2016-08-01 08:08:54 +02:00
|
|
|
[BuildOptions]
|
|
|
|
|