]>
git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Include/Library/SecureBootVariableProvisionLib.h
2 Provides a functions to enroll keys based on default values.
4 Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
5 (C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
6 Copyright (c) 2021, ARM Ltd. All rights reserved.<BR>
7 Copyright (c) 2021, Semihalf All rights reserved.<BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
12 #ifndef SECURE_BOOT_VARIABLE_PROVISION_LIB_H_
13 #define SECURE_BOOT_VARIABLE_PROVISION_LIB_H_
16 Sets the content of the 'db' variable based on 'dbDefault' variable content.
18 @retval EFI_OUT_OF_RESOURCES If memory allocation for EFI_VARIABLE_AUTHENTICATION_2 fails
19 while VendorGuid is NULL.
20 @retval other Errors from GetVariable2(), GetTime() and SetVariable()
29 Sets the content of the 'dbx' variable based on 'dbxDefault' variable content.
31 @retval EFI_OUT_OF_RESOURCES If memory allocation for EFI_VARIABLE_AUTHENTICATION_2 fails
32 while VendorGuid is NULL.
33 @retval other Errors from GetVariable2(), GetTime() and SetVariable()
37 EnrollDbxFromDefault (
42 Sets the content of the 'dbt' variable based on 'dbtDefault' variable content.
44 @retval EFI_OUT_OF_RESOURCES If memory allocation for EFI_VARIABLE_AUTHENTICATION_2 fails
45 while VendorGuid is NULL.
46 @retval other Errors from GetVariable2(), GetTime() and SetVariable()
50 EnrollDbtFromDefault (
55 Sets the content of the 'KEK' variable based on 'KEKDefault' variable content.
57 @retval EFI_OUT_OF_RESOURCES If memory allocation for EFI_VARIABLE_AUTHENTICATION_2 fails
58 while VendorGuid is NULL.
59 @retval other Errors from GetVariable2(), GetTime() and SetVariable()
63 EnrollKEKFromDefault (
68 Sets the content of the 'PK' variable based on 'PKDefault' variable content.
70 @retval EFI_OUT_OF_RESOURCES If memory allocation for EFI_VARIABLE_AUTHENTICATION_2 fails
71 while VendorGuid is NULL.
72 @retval other Errors from GetVariable2(), GetTime() and SetVariable()
81 Initializes PKDefault variable with data from FFS section.
83 @retval EFI_SUCCESS Variable was initialized successfully.
84 @retval EFI_UNSUPPORTED Variable already exists.
87 SecureBootInitPKDefault (
92 Initializes KEKDefault variable with data from FFS section.
94 @retval EFI_SUCCESS Variable was initialized successfully.
95 @retval EFI_UNSUPPORTED Variable already exists.
98 SecureBootInitKEKDefault (
103 Initializes dbDefault variable with data from FFS section.
105 @retval EFI_SUCCESS Variable was initialized successfully.
106 @retval EFI_UNSUPPORTED Variable already exists.
109 SecureBootInitDbDefault (
114 Initializes dbtDefault variable with data from FFS section.
116 @retval EFI_SUCCESS Variable was initialized successfully.
117 @retval EFI_UNSUPPORTED Variable already exists.
120 SecureBootInitDbtDefault (
125 Initializes dbxDefault variable with data from FFS section.
127 @retval EFI_SUCCESS Variable was initialized successfully.
128 @retval EFI_UNSUPPORTED Variable already exists.
131 SecureBootInitDbxDefault (