TianoCore EDK2 master
Loading...
Searching...
No Matches
SecureBootConfigImpl.h File Reference

Go to the source code of this file.

Data Structures

struct  SECUREBOOT_MENU_OPTION
 
struct  SECUREBOOT_FILE_CONTEXT
 
struct  EFI_IMAGE_SECURITY_DATA_DIRECTORY
 
struct  HII_VENDOR_DEVICE_PATH
 
struct  SECUREBOOT_CONFIG_PRIVATE_DATA
 
struct  _CPL_KEY_INFO
 
struct  HASH_TABLE
 
struct  WIN_CERTIFICATE_EFI_PKCS
 

Macros

#define MAX_CHAR   480
 
#define TWO_BYTE_ENCODE   0x82
 
#define BUFFER_MAX_SIZE   100
 
#define SHA256_DIGEST_SIZE   32
 
#define SHA384_DIGEST_SIZE   48
 
#define SHA512_DIGEST_SIZE   64
 
#define MAX_DIGEST_SIZE   SHA512_DIGEST_SIZE
 
#define WIN_CERT_UEFI_RSA2048_SIZE   256
 
#define WIN_CERT_UEFI_RSA3072_SIZE   384
 
#define WIN_CERT_UEFI_RSA4096_SIZE   512
 
#define HASHALG_SHA224   0x00000000
 
#define HASHALG_SHA256   0x00000001
 
#define HASHALG_SHA384   0x00000002
 
#define HASHALG_SHA512   0x00000003
 
#define HASHALG_RAW   0x00000004
 
#define HASHALG_MAX   0x00000004
 
#define CER_PUBKEY_MIN_SIZE   256
 
#define KEY_TYPE_RSASSA   0
 
#define SECUREBOOT_FREE_NON_NULL(Pointer)
 
#define SECUREBOOT_FREE_NON_OPCODE(Handle)
 
#define SIGNATURE_DATA_COUNTS(List)    (((List)->SignatureListSize - sizeof(EFI_SIGNATURE_LIST) - (List)->SignatureHeaderSize) / (List)->SignatureSize)
 
#define SECUREBOOT_CONFIG_PRIVATE_DATA_SIGNATURE   SIGNATURE_32 ('S', 'E', 'C', 'B')
 
#define SECUREBOOT_CONFIG_PRIVATE_FROM_THIS(a)   CR (a, SECUREBOOT_CONFIG_PRIVATE_DATA, ConfigAccess, SECUREBOOT_CONFIG_PRIVATE_DATA_SIGNATURE)
 

Typedefs

typedef struct _CPL_KEY_INFO CPL_KEY_INFO
 
typedef EFI_STATUS(EFIAPI * HASH_GET_CONTEXT_SIZE) (VOID)
 
typedef BOOLEAN(EFIAPI * HASH_INIT) (IN OUT VOID *HashContext)
 
typedef BOOLEAN(EFIAPI * HASH_UPDATE) (IN OUT VOID *HashContext, IN CONST VOID *Data, IN UINTN DataLength)
 
typedef BOOLEAN(EFIAPI * HASH_FINAL) (IN OUT VOID *HashContext, OUT UINT8 *HashValue)
 

Enumerations

enum  ENROLL_KEY_ERROR { None_Error = 0 , Unsupported_Type , Unqualified_Key , Enroll_Error_Max }
 
enum  IMAGE_TYPE { ImageType_IA32 , ImageType_X64 }
 
enum  CURRENT_VARIABLE_NAME { Variable_DB , Variable_DBX , Variable_DBT , Variable_MAX }
 
enum  SIGNATURE_DELETE_TYPE { Delete_Signature_List_All , Delete_Signature_List_One , Delete_Signature_Data }
 

Functions

EFI_STATUS InstallSecureBootConfigForm (IN OUT SECUREBOOT_CONFIG_PRIVATE_DATA *PrivateData)
 
VOID UninstallSecureBootConfigForm (IN OUT SECUREBOOT_CONFIG_PRIVATE_DATA *PrivateData)
 
EFI_STATUS EFIAPI SecureBootExtractConfig (IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Request, OUT EFI_STRING *Progress, OUT EFI_STRING *Results)
 
EFI_STATUS EFIAPI SecureBootRouteConfig (IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Configuration, OUT EFI_STRING *Progress)
 
EFI_STATUS EFIAPI SecureBootCallback (IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN EFI_BROWSER_ACTION Action, IN EFI_QUESTION_ID QuestionId, IN UINT8 Type, IN EFI_IFR_TYPE_VALUE *Value, OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest)
 
CHAR16 *EFIAPI DevicePathToStr (IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
 
VOID CleanUpPage (IN UINT16 LabelId, IN SECUREBOOT_CONFIG_PRIVATE_DATA *PrivateData)
 
EFI_STATUS ReadFileContent (IN EFI_FILE_HANDLE FileHandle, IN OUT VOID **BufferPtr, OUT UINTN *FileSize, IN UINTN AdditionAllocateSize)
 
VOID CloseFile (IN EFI_FILE_HANDLE FileHandle)
 
EFI_STATUS EFIAPI Int2OctStr (IN CONST UINTN *Integer, IN UINTN IntSizeInWords, OUT UINT8 *OctetString, IN UINTN OSSizeInBytes)
 
UINTN GuidToString (IN EFI_GUID *Guid, IN CHAR16 *Buffer, IN UINTN BufferSize)
 
BOOLEAN EFIAPI UpdatePKFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 
BOOLEAN EFIAPI UpdateKEKFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 
BOOLEAN EFIAPI UpdateDBFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 
BOOLEAN EFIAPI UpdateDBXFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 
BOOLEAN EFIAPI UpdateDBTFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
 

Variables

UINT8 SecureBootConfigBin []
 
UINT8 SecureBootConfigDxeStrings []
 
VOID * mStartOpCodeHandle
 
VOID * mEndOpCodeHandle
 
EFI_IFR_GUID_LABELmStartLabel
 
EFI_IFR_GUID_LABELmEndLabel
 
SECUREBOOT_CONFIG_PRIVATE_DATA mSecureBootConfigPrivateDateTemplate
 
SECUREBOOT_CONFIG_PRIVATE_DATAgSecureBootPrivateData
 

Detailed Description

The header file of HII Config Access protocol implementation of SecureBoot configuration module.

Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SecureBootConfigImpl.h.

Macro Definition Documentation

◆ BUFFER_MAX_SIZE

#define BUFFER_MAX_SIZE   100

Definition at line 64 of file SecureBootConfigImpl.h.

◆ CER_PUBKEY_MIN_SIZE

#define CER_PUBKEY_MIN_SIZE   256

Definition at line 101 of file SecureBootConfigImpl.h.

◆ HASHALG_MAX

#define HASHALG_MAX   0x00000004

Definition at line 96 of file SecureBootConfigImpl.h.

◆ HASHALG_RAW

#define HASHALG_RAW   0x00000004

Definition at line 95 of file SecureBootConfigImpl.h.

◆ HASHALG_SHA224

#define HASHALG_SHA224   0x00000000

Definition at line 91 of file SecureBootConfigImpl.h.

◆ HASHALG_SHA256

#define HASHALG_SHA256   0x00000001

Definition at line 92 of file SecureBootConfigImpl.h.

◆ HASHALG_SHA384

#define HASHALG_SHA384   0x00000002

Definition at line 93 of file SecureBootConfigImpl.h.

◆ HASHALG_SHA512

#define HASHALG_SHA512   0x00000003

Definition at line 94 of file SecureBootConfigImpl.h.

◆ KEY_TYPE_RSASSA

#define KEY_TYPE_RSASSA   0

Definition at line 106 of file SecureBootConfigImpl.h.

◆ MAX_CHAR

#define MAX_CHAR   480

Definition at line 62 of file SecureBootConfigImpl.h.

◆ MAX_DIGEST_SIZE

#define MAX_DIGEST_SIZE   SHA512_DIGEST_SIZE

Definition at line 82 of file SecureBootConfigImpl.h.

◆ SECUREBOOT_CONFIG_PRIVATE_DATA_SIGNATURE

#define SECUREBOOT_CONFIG_PRIVATE_DATA_SIGNATURE   SIGNATURE_32 ('S', 'E', 'C', 'B')

Definition at line 209 of file SecureBootConfigImpl.h.

◆ SECUREBOOT_CONFIG_PRIVATE_FROM_THIS

#define SECUREBOOT_CONFIG_PRIVATE_FROM_THIS (   a)    CR (a, SECUREBOOT_CONFIG_PRIVATE_DATA, ConfigAccess, SECUREBOOT_CONFIG_PRIVATE_DATA_SIGNATURE)

Definition at line 210 of file SecureBootConfigImpl.h.

◆ SECUREBOOT_FREE_NON_NULL

#define SECUREBOOT_FREE_NON_NULL (   Pointer)
Value:
do { \
if ((Pointer) != NULL) { \
FreePool((Pointer)); \
(Pointer) = NULL; \
} \
} while (FALSE)
#define NULL
Definition: Base.h:319
#define FALSE
Definition: Base.h:307

Definition at line 137 of file SecureBootConfigImpl.h.

◆ SECUREBOOT_FREE_NON_OPCODE

#define SECUREBOOT_FREE_NON_OPCODE (   Handle)
Value:
do{ \
if ((Handle) != NULL) { \
HiiFreeOpCodeHandle((Handle)); \
} \
} while (FALSE)

Definition at line 145 of file SecureBootConfigImpl.h.

◆ SHA256_DIGEST_SIZE

#define SHA256_DIGEST_SIZE   32

Definition at line 69 of file SecureBootConfigImpl.h.

◆ SHA384_DIGEST_SIZE

#define SHA384_DIGEST_SIZE   48

Definition at line 73 of file SecureBootConfigImpl.h.

◆ SHA512_DIGEST_SIZE

#define SHA512_DIGEST_SIZE   64

Definition at line 77 of file SecureBootConfigImpl.h.

◆ SIGNATURE_DATA_COUNTS

#define SIGNATURE_DATA_COUNTS (   List)     (((List)->SignatureListSize - sizeof(EFI_SIGNATURE_LIST) - (List)->SignatureHeaderSize) / (List)->SignatureSize)

Definition at line 152 of file SecureBootConfigImpl.h.

◆ TWO_BYTE_ENCODE

#define TWO_BYTE_ENCODE   0x82

Definition at line 63 of file SecureBootConfigImpl.h.

◆ WIN_CERT_UEFI_RSA2048_SIZE

#define WIN_CERT_UEFI_RSA2048_SIZE   256

Definition at line 84 of file SecureBootConfigImpl.h.

◆ WIN_CERT_UEFI_RSA3072_SIZE

#define WIN_CERT_UEFI_RSA3072_SIZE   384

Definition at line 85 of file SecureBootConfigImpl.h.

◆ WIN_CERT_UEFI_RSA4096_SIZE

#define WIN_CERT_UEFI_RSA4096_SIZE   512

Definition at line 86 of file SecureBootConfigImpl.h.

Typedef Documentation

◆ HASH_FINAL

typedef BOOLEAN(EFIAPI * HASH_FINAL) (IN OUT VOID *HashContext, OUT UINT8 *HashValue)

Completes hash computation and retrieves the digest value into the specified memory. After this function has been called, the context cannot be used again.

If HashContext is NULL, then ASSERT(). If HashValue is NULL, then ASSERT().

Parameters
[in,out]HashContextPointer to the MD5 context
[out]HashValuePointer to a buffer that receives the HASH digest value (16 bytes).
Return values
TRUEHASH digest computation succeeded.
FALSEHASH digest computation failed.

Definition at line 295 of file SecureBootConfigImpl.h.

◆ HASH_GET_CONTEXT_SIZE

typedef EFI_STATUS(EFIAPI * HASH_GET_CONTEXT_SIZE) (VOID)

Retrieves the size, in bytes, of the context buffer required for hash operations.

Returns
The size, in bytes, of the context buffer required for hash operations.

Definition at line 233 of file SecureBootConfigImpl.h.

◆ HASH_INIT

typedef BOOLEAN(EFIAPI * HASH_INIT) (IN OUT VOID *HashContext)

Initializes user-supplied memory pointed by HashContext as hash context for subsequent use.

If HashContext is NULL, then ASSERT().

Parameters
[in,out]HashContextPointer to Context being initialized.
Return values
TRUEHASH context initialization succeeded.
FALSEHASH context initialization failed.

Definition at line 251 of file SecureBootConfigImpl.h.

◆ HASH_UPDATE

typedef BOOLEAN(EFIAPI * HASH_UPDATE) (IN OUT VOID *HashContext, IN CONST VOID *Data, IN UINTN DataLength)

Performs digest on a data buffer of the specified length. This function can be called multiple times to compute the digest of long or discontinuous data streams.

If HashContext is NULL, then ASSERT().

Parameters
[in,out]HashContextPointer to the MD5 context.
[in]DataPointer to the buffer containing the data to be hashed.
[in]DataLengthLength of Data buffer in bytes.
Return values
TRUEHASH data digest succeeded.
FALSEInvalid HASH context. After HashFinal function has been called, the HASH context cannot be reused.

Definition at line 272 of file SecureBootConfigImpl.h.

Enumeration Type Documentation

◆ CURRENT_VARIABLE_NAME

enum CURRENT_VARIABLE_NAME

Definition at line 176 of file SecureBootConfigImpl.h.

◆ ENROLL_KEY_ERROR

enum ENROLL_KEY_ERROR

Definition at line 111 of file SecureBootConfigImpl.h.

◆ IMAGE_TYPE

enum IMAGE_TYPE

Definition at line 163 of file SecureBootConfigImpl.h.

◆ SIGNATURE_DELETE_TYPE

enum SIGNATURE_DELETE_TYPE

Definition at line 183 of file SecureBootConfigImpl.h.

Function Documentation

◆ CleanUpPage()

VOID CleanUpPage ( IN UINT16  LabelId,
IN SECUREBOOT_CONFIG_PRIVATE_DATA PrivateData 
)

Clean up the dynamic opcode at label and form specified by both LabelId.

Parameters
[in]LabelIdIt is both the Form ID and Label ID for opcode deletion.
[in]PrivateDataModule private data.

Definition at line 57 of file SecureBootConfigFileExplorer.c.

◆ CloseFile()

VOID CloseFile ( IN EFI_FILE_HANDLE  FileHandle)

Close an open file handle.

Parameters
[in]FileHandleThe file handle to close.

Definition at line 95 of file SecureBootConfigMisc.c.

◆ DevicePathToStr()

CHAR16 *EFIAPI DevicePathToStr ( IN EFI_DEVICE_PATH_PROTOCOL DevPath)

This function converts an input device structure to a Unicode string.

Parameters
[in]DevPathA pointer to the device path structure.
Returns
A new allocated Unicode string that represents the device path.

Converting a given device to an unicode string.

Parameters
DevPathGiven device path instance
Returns
Converted string from given device path.
Return values
L"?"Converting failed.

Definition at line 109 of file PlatDriOverrideDxe.c.

◆ GuidToString()

UINTN GuidToString ( IN EFI_GUID Guid,
IN CHAR16 *  Buffer,
IN UINTN  BufferSize 
)

Worker function that prints an EFI_GUID into specified Buffer.

Parameters
[in]GuidPointer to GUID to print.
[in]BufferBuffer to print Guid into.
[in]BufferSizeSize of Buffer.
Return values
Numberof characters printed.

Definition at line 90 of file TlsAuthConfigImpl.c.

◆ InstallSecureBootConfigForm()

EFI_STATUS InstallSecureBootConfigForm ( IN OUT SECUREBOOT_CONFIG_PRIVATE_DATA PrivateData)

This function publish the SecureBoot configuration Form.

Parameters
[in,out]PrivateDataPoints to SecureBoot configuration private data.
Return values
EFI_SUCCESSHII Form is installed successfully.
EFI_OUT_OF_RESOURCESNot enough resource for HII Form installation.
OthersOther errors as indicated.

Definition at line 5218 of file SecureBootConfigImpl.c.

◆ Int2OctStr()

EFI_STATUS EFIAPI Int2OctStr ( IN CONST UINTN Integer,
IN UINTN  IntSizeInWords,
OUT UINT8 *  OctetString,
IN UINTN  OSSizeInBytes 
)

Converts a nonnegative integer to an octet string of a specified length.

Parameters
[in]IntegerPointer to the nonnegative integer to be converted
[in]IntSizeInWordsLength of integer buffer in words
[out]OctetStringConverted octet string of the specified length
[in]OSSizeInBytesIntended length of resulting octet string in bytes

Returns:

Return values
EFI_SUCCESSData conversion successfully
EFI_BUFFER_TOOL_SMALLBuffer is too small for output string

Convert a nonnegative integer to an octet string of a specified length.

Parameters
[in]IntegerPointer to the nonnegative integer to be converted
[in]IntSizeInWordsLength of integer buffer in words
[out]OctetStringConverted octet string of the specified length
[in]OSSizeInBytesIntended length of resulting octet string in bytes

Returns:

Return values
EFI_SUCCESSData conversion successfully
EFI_BUFFER_TOOL_SMALLBuffer is too small for output string

Definition at line 120 of file SecureBootConfigMisc.c.

◆ ReadFileContent()

EFI_STATUS ReadFileContent ( IN EFI_FILE_HANDLE  FileHandle,
IN OUT VOID **  BufferPtr,
OUT UINTN FileSize,
IN UINTN  AdditionAllocateSize 
)

Read file content into BufferPtr, the size of the allocate buffer is *FileSize plus AdditionAllocateSize.

Parameters
[in]FileHandleThe file to be read.
[in,out]BufferPtrPointers to the pointer of allocated buffer.
[out]FileSizeSize of input file
[in]AdditionAllocateSizeAddition size the buffer need to be allocated. In case the buffer need to contain others besides the file content.
Return values
EFI_SUCCESSThe file was read into the buffer.
EFI_INVALID_PARAMETERA parameter was invalid.
EFI_OUT_OF_RESOURCESA memory allocation failed.
othersUnexpected error.

Read file content into BufferPtr, the size of the allocate buffer is *FileSize plus AddtionAllocateSize.

Parameters
[in]FileHandleThe file to be read.
[in,out]BufferPtrPointers to the pointer of allocated buffer.
[out]FileSizeSize of input file
[in]AddtionAllocateSizeAddtion size the buffer need to be allocated. In case the buffer need to contain others besides the file content.
Return values
EFI_SUCCESSThe file was read into the buffer.
EFI_INVALID_PARAMETERA parameter was invalid.
EFI_OUT_OF_RESOURCESA memory allocation failed.
othersUnexpected error.

Definition at line 512 of file TlsAuthConfigImpl.c.

◆ SecureBootCallback()

EFI_STATUS EFIAPI SecureBootCallback ( IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL This,
IN EFI_BROWSER_ACTION  Action,
IN EFI_QUESTION_ID  QuestionId,
IN UINT8  Type,
IN EFI_IFR_TYPE_VALUE Value,
OUT EFI_BROWSER_ACTION_REQUEST *  ActionRequest 
)

This function processes the results of changes in configuration.

Parameters
[in]ThisPoints to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
[in]ActionSpecifies the type of action taken by the browser.
[in]QuestionIdA unique value which is sent to the original exporting driver so that it can identify the type of data to expect.
[in]TypeThe type of value for the question.
[in]ValueA pointer to the data being sent to the original exporting driver.
[out]ActionRequestOn return, points to the action requested by the callback function.
Return values
EFI_SUCCESSThe callback successfully handled the action.
EFI_OUT_OF_RESOURCESNot enough storage is available to hold the variable and its data.
EFI_DEVICE_ERRORThe variable could not be saved.
EFI_UNSUPPORTEDThe specified Action is not supported by the callback.

This function is called to provide results data to the driver.

Parameters
[in]ThisPoints to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
[in]ActionSpecifies the type of action taken by the browser.
[in]QuestionIdA unique value which is sent to the original exporting driver so that it can identify the type of data to expect.
[in]TypeThe type of value for the question.
[in]ValueA pointer to the data being sent to the original exporting driver.
[out]ActionRequestOn return, points to the action requested by the callback function.
Return values
EFI_SUCCESSThe callback successfully handled the action.
EFI_OUT_OF_RESOURCESNot enough storage is available to hold the variable and its data.
EFI_DEVICE_ERRORThe variable could not be saved.
EFI_UNSUPPORTEDThe specified Action is not supported by the callback.

Definition at line 4516 of file SecureBootConfigImpl.c.

◆ SecureBootExtractConfig()

EFI_STATUS EFIAPI SecureBootExtractConfig ( IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL This,
IN CONST EFI_STRING  Request,
OUT EFI_STRING *  Progress,
OUT EFI_STRING *  Results 
)

This function allows a caller to extract the current configuration for one or more named elements from the target driver.

Parameters
[in]ThisPoints to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
[in]RequestA null-terminated Unicode string in <ConfigRequest> format.
[out]ProgressOn return, points to a character in the Request string. Points to the string's null terminator if request was successful. Points to the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) if the request was not successful.
[out]ResultsA null-terminated Unicode string in <ConfigAltResp> format which has all values filled in for the names in the Request string. String to be allocated by the called function.
Return values
EFI_SUCCESSThe Results is filled with the requested values.
EFI_OUT_OF_RESOURCESNot enough memory to store the results.
EFI_INVALID_PARAMETERRequest is illegal syntax, or unknown name.
EFI_NOT_FOUNDRouting data doesn't match any storage in this driver.

Definition at line 3461 of file SecureBootConfigImpl.c.

◆ SecureBootRouteConfig()

EFI_STATUS EFIAPI SecureBootRouteConfig ( IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL This,
IN CONST EFI_STRING  Configuration,
OUT EFI_STRING *  Progress 
)

This function processes the results of changes in configuration.

Parameters
[in]ThisPoints to the EFI_HII_CONFIG_ACCESS_PROTOCOL.
[in]ConfigurationA null-terminated Unicode string in <ConfigResp> format.
[out]ProgressA pointer to a string filled in with the offset of the most recent '&' before the first failing name/value pair (or the beginning of the string if the failure is in the first name/value pair) or the terminating NULL if all was successful.
Return values
EFI_SUCCESSThe Results is processed successfully.
EFI_INVALID_PARAMETERConfiguration is NULL.
EFI_NOT_FOUNDRouting data doesn't match any storage in this driver.

Definition at line 3568 of file SecureBootConfigImpl.c.

◆ UninstallSecureBootConfigForm()

VOID UninstallSecureBootConfigForm ( IN OUT SECUREBOOT_CONFIG_PRIVATE_DATA PrivateData)

This function removes SecureBoot configuration Form.

Parameters
[in,out]PrivateDataPoints to SecureBoot configuration private data.

Definition at line 5322 of file SecureBootConfigImpl.c.

◆ UpdateDBFromFile()

BOOLEAN EFIAPI UpdateDBFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the DB form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 236 of file SecureBootConfigFileExplorer.c.

◆ UpdateDBTFromFile()

BOOLEAN EFIAPI UpdateDBTFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the DBT form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 270 of file SecureBootConfigFileExplorer.c.

◆ UpdateDBXFromFile()

BOOLEAN EFIAPI UpdateDBXFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the DBX form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 253 of file SecureBootConfigFileExplorer.c.

◆ UpdateKEKFromFile()

BOOLEAN EFIAPI UpdateKEKFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the KEK form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 219 of file SecureBootConfigFileExplorer.c.

◆ UpdatePKFromFile()

BOOLEAN EFIAPI UpdatePKFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the PK form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 202 of file SecureBootConfigFileExplorer.c.

Variable Documentation

◆ gSecureBootPrivateData

SECUREBOOT_CONFIG_PRIVATE_DATA* gSecureBootPrivateData
extern

Definition at line 113 of file SecureBootConfigImpl.c.

◆ mEndLabel

EFI_IFR_GUID_LABEL* mEndLabel
extern

Definition at line 14 of file Data.c.

◆ mEndOpCodeHandle

VOID* mEndOpCodeHandle
extern

Definition at line 12 of file Data.c.

◆ mSecureBootConfigPrivateDateTemplate

SECUREBOOT_CONFIG_PRIVATE_DATA mSecureBootConfigPrivateDateTemplate
extern

Definition at line 20 of file SecureBootConfigImpl.c.

◆ mStartLabel

EFI_IFR_GUID_LABEL* mStartLabel
extern

Definition at line 13 of file Data.c.

◆ mStartOpCodeHandle

VOID* mStartOpCodeHandle
extern

Definition at line 11 of file Data.c.