]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
SecurityPkg: SecureBootVariableProvisionLib: Updated implementation
[mirror_edk2.git] / SecurityPkg / Library / SecureBootVariableProvisionLib / SecureBootVariableProvisionLib.inf
1 ## @file
2 # Provides initialization of Secure Boot keys and databases.
3 #
4 # Copyright (c) 2021, ARM Ltd. All rights reserved.<BR>
5 # Copyright (c) 2021, Semihalf All rights reserved.<BR>
6 #
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 #
9 ##
10
11 [Defines]
12 INF_VERSION = 0x00010005
13 BASE_NAME = SecureBootVariableLib
14 MODULE_UNI_FILE = SecureBootVariableLib.uni
15 FILE_GUID = 18192DD0-9430-45F1-80C7-5C52061CD183
16 MODULE_TYPE = DXE_DRIVER
17 VERSION_STRING = 1.0
18 LIBRARY_CLASS = SecureBootVariableProvisionLib|DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION
19
20 #
21 # The following information is for reference only and not required by the build tools.
22 #
23 # VALID_ARCHITECTURES = IA32 X64 AARCH64
24 #
25
26 [Sources]
27 SecureBootVariableProvisionLib.c
28
29 [Packages]
30 MdePkg/MdePkg.dec
31 MdeModulePkg/MdeModulePkg.dec
32 SecurityPkg/SecurityPkg.dec
33 CryptoPkg/CryptoPkg.dec
34
35 [LibraryClasses]
36 BaseLib
37 BaseMemoryLib
38 DebugLib
39 MemoryAllocationLib
40 BaseCryptLib
41 DxeServicesLib
42 SecureBootVariableLib
43
44 [Guids]
45 ## CONSUMES ## Variable:L"SetupMode"
46 ## PRODUCES ## Variable:L"SetupMode"
47 ## CONSUMES ## Variable:L"SecureBoot"
48 ## PRODUCES ## Variable:L"SecureBoot"
49 ## PRODUCES ## Variable:L"PK"
50 ## PRODUCES ## Variable:L"KEK"
51 ## CONSUMES ## Variable:L"PKDefault"
52 ## CONSUMES ## Variable:L"KEKDefault"
53 ## CONSUMES ## Variable:L"dbDefault"
54 ## CONSUMES ## Variable:L"dbxDefault"
55 ## CONSUMES ## Variable:L"dbtDefault"
56 gEfiGlobalVariableGuid
57
58 ## SOMETIMES_CONSUMES ## Variable:L"DB"
59 ## SOMETIMES_CONSUMES ## Variable:L"DBX"
60 ## SOMETIMES_CONSUMES ## Variable:L"DBT"
61 gEfiImageSecurityDatabaseGuid
62
63 ## CONSUMES ## Variable:L"SecureBootEnable"
64 ## PRODUCES ## Variable:L"SecureBootEnable"
65 gEfiSecureBootEnableDisableGuid
66
67 ## CONSUMES ## Variable:L"CustomMode"
68 ## PRODUCES ## Variable:L"CustomMode"
69 gEfiCustomModeEnableGuid
70
71 gEfiCertTypeRsa2048Sha256Guid ## CONSUMES
72 gEfiCertX509Guid ## CONSUMES
73 gEfiCertPkcs7Guid ## CONSUMES
74
75 gDefaultPKFileGuid
76 gDefaultKEKFileGuid
77 gDefaultdbFileGuid
78 gDefaultdbxFileGuid
79 gDefaultdbtFileGuid