2 # Provides initialization of Secure Boot keys and databases.
4 # Copyright (c) 2021, ARM Ltd. All rights reserved.<BR>
5 # Copyright (c) 2021, Semihalf All rights reserved.<BR>
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
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
18 LIBRARY_CLASS = SecureBootVariableProvisionLib|DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION
21 # The following information is for reference only and not required by the build tools.
23 # VALID_ARCHITECTURES = IA32 X64 AARCH64
27 SecureBootVariableProvisionLib.c
31 MdeModulePkg/MdeModulePkg.dec
32 SecurityPkg/SecurityPkg.dec
33 CryptoPkg/CryptoPkg.dec
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
58 ## SOMETIMES_CONSUMES ## Variable:L"DB"
59 ## SOMETIMES_CONSUMES ## Variable:L"DBX"
60 ## SOMETIMES_CONSUMES ## Variable:L"DBT"
61 gEfiImageSecurityDatabaseGuid
63 ## CONSUMES ## Variable:L"SecureBootEnable"
64 ## PRODUCES ## Variable:L"SecureBootEnable"
65 gEfiSecureBootEnableDisableGuid
67 ## CONSUMES ## Variable:L"CustomMode"
68 ## PRODUCES ## Variable:L"CustomMode"
69 gEfiCustomModeEnableGuid
71 gEfiCertTypeRsa2048Sha256Guid ## CONSUMES
72 gEfiCertX509Guid ## CONSUMES
73 gEfiCertPkcs7Guid ## CONSUMES