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

Go to the source code of this file.

Data Structures

struct  SECUREBOOT_CONFIGURATION
 

Macros

#define SECUREBOOT_CONFIGURATION_VARSTORE_ID   0x0001
 
#define SECUREBOOT_CONFIGURATION_FORM_ID   0x01
 
#define FORMID_SECURE_BOOT_OPTION_FORM   0x02
 
#define FORMID_SECURE_BOOT_PK_OPTION_FORM   0x03
 
#define FORMID_SECURE_BOOT_KEK_OPTION_FORM   0x04
 
#define FORMID_SECURE_BOOT_DB_OPTION_FORM   0x05
 
#define FORMID_SECURE_BOOT_DBX_OPTION_FORM   0x06
 
#define FORMID_ENROLL_PK_FORM   0x07
 
#define SECUREBOOT_ADD_PK_FILE_FORM_ID   0x08
 
#define FORMID_ENROLL_KEK_FORM   0x09
 
#define FORMID_DELETE_KEK_FORM   0x0a
 
#define SECUREBOOT_ENROLL_SIGNATURE_TO_DB   0x0b
 
#define SECUREBOOT_DELETE_SIGNATURE_FROM_DB   0x0c
 
#define SECUREBOOT_ENROLL_SIGNATURE_TO_DBX   0x0d
 
#define FORMID_SECURE_BOOT_DBT_OPTION_FORM   0x14
 
#define SECUREBOOT_ENROLL_SIGNATURE_TO_DBT   0x15
 
#define SECUREBOOT_DELETE_SIGNATURE_FROM_DBT   0x16
 
#define SECUREBOOT_DELETE_SIGNATURE_LIST_FORM   0x17
 
#define SECUREBOOT_DELETE_SIGNATURE_DATA_FORM   0x18
 
#define SECURE_BOOT_MODE_CUSTOM   0x01
 
#define SECURE_BOOT_MODE_STANDARD   0x00
 
#define KEY_SECURE_BOOT_ENABLE   0x1000
 
#define KEY_SECURE_BOOT_MODE   0x1001
 
#define KEY_VALUE_SAVE_AND_EXIT_DB   0x1002
 
#define KEY_VALUE_NO_SAVE_AND_EXIT_DB   0x1003
 
#define KEY_VALUE_SAVE_AND_EXIT_PK   0x1004
 
#define KEY_VALUE_NO_SAVE_AND_EXIT_PK   0x1005
 
#define KEY_VALUE_SAVE_AND_EXIT_KEK   0x1008
 
#define KEY_VALUE_NO_SAVE_AND_EXIT_KEK   0x1009
 
#define KEY_VALUE_SAVE_AND_EXIT_DBX   0x100a
 
#define KEY_VALUE_NO_SAVE_AND_EXIT_DBX   0x100b
 
#define KEY_HIDE_SECURE_BOOT   0x100c
 
#define KEY_VALUE_SAVE_AND_EXIT_DBT   0x100d
 
#define KEY_VALUE_NO_SAVE_AND_EXIT_DBT   0x100e
 
#define KEY_VALUE_FROM_DBX_TO_LIST_FORM   0x100f
 
#define KEY_SECURE_BOOT_RESET_TO_DEFAULT   0x1010
 
#define KEY_SECURE_BOOT_OPTION   0x1100
 
#define KEY_SECURE_BOOT_PK_OPTION   0x1101
 
#define KEY_SECURE_BOOT_KEK_OPTION   0x1102
 
#define KEY_SECURE_BOOT_DB_OPTION   0x1103
 
#define KEY_SECURE_BOOT_DBX_OPTION   0x1104
 
#define KEY_SECURE_BOOT_DELETE_PK   0x1105
 
#define KEY_ENROLL_PK   0x1106
 
#define KEY_ENROLL_KEK   0x1107
 
#define KEY_DELETE_KEK   0x1108
 
#define KEY_SECURE_BOOT_KEK_GUID   0x110a
 
#define KEY_SECURE_BOOT_SIGNATURE_GUID_DB   0x110b
 
#define KEY_SECURE_BOOT_SIGNATURE_GUID_DBX   0x110c
 
#define KEY_SECURE_BOOT_DBT_OPTION   0x110d
 
#define KEY_SECURE_BOOT_SIGNATURE_GUID_DBT   0x110e
 
#define KEY_SECURE_BOOT_DELETE_ALL_LIST   0x110f
 
#define KEY_SECURE_BOOT_DELETE_ALL_DATA   0x1110
 
#define KEY_SECURE_BOOT_DELETE_CHECK_DATA   0x1111
 
#define LABEL_KEK_DELETE   0x1200
 
#define LABEL_DB_DELETE   0x1201
 
#define LABEL_SIGNATURE_LIST_START   0x1202
 
#define LABEL_DBT_DELETE   0x1203
 
#define LABEL_SIGNATURE_DATA_START   0x1204
 
#define LABEL_DELETE_ALL_LIST_BUTTON   0x1300
 
#define LABEL_END   0xffff
 
#define SECURE_BOOT_MAX_ATTEMPTS_NUM   255
 
#define CONFIG_OPTION_OFFSET   0x2000
 
#define OPTION_CONFIG_QUESTION_ID   0x2000
 
#define OPTION_CONFIG_RANGE   0x1000
 
#define OPTION_DEL_KEK_QUESTION_ID   0x2000
 
#define OPTION_DEL_DB_QUESTION_ID   0x3000
 
#define OPTION_SIGNATURE_LIST_QUESTION_ID   0X4000
 
#define OPTION_SIGNATURE_DATA_QUESTION_ID   0x6000
 
#define OPTION_DEL_DBT_QUESTION_ID   0x5000
 
#define SECURE_BOOT_GUID_SIZE   36
 
#define SECURE_BOOT_GUID_STORAGE_SIZE   37
 
#define UNKNOWN_FILE_TYPE   0
 
#define X509_CERT_FILE_TYPE   1
 
#define PE_IMAGE_FILE_TYPE   2
 
#define AUTHENTICATION_2_FILE_TYPE   3
 

Detailed Description

Header file for NV data structure definition.

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

Definition in file SecureBootConfigNvData.h.

Macro Definition Documentation

◆ AUTHENTICATION_2_FILE_TYPE

#define AUTHENTICATION_2_FILE_TYPE   3

Definition at line 120 of file SecureBootConfigNvData.h.

◆ CONFIG_OPTION_OFFSET

#define CONFIG_OPTION_OFFSET   0x2000

Definition at line 87 of file SecureBootConfigNvData.h.

◆ FORMID_DELETE_KEK_FORM

#define FORMID_DELETE_KEK_FORM   0x0a

Definition at line 28 of file SecureBootConfigNvData.h.

◆ FORMID_ENROLL_KEK_FORM

#define FORMID_ENROLL_KEK_FORM   0x09

Definition at line 27 of file SecureBootConfigNvData.h.

◆ FORMID_ENROLL_PK_FORM

#define FORMID_ENROLL_PK_FORM   0x07

Definition at line 25 of file SecureBootConfigNvData.h.

◆ FORMID_SECURE_BOOT_DB_OPTION_FORM

#define FORMID_SECURE_BOOT_DB_OPTION_FORM   0x05

Definition at line 23 of file SecureBootConfigNvData.h.

◆ FORMID_SECURE_BOOT_DBT_OPTION_FORM

#define FORMID_SECURE_BOOT_DBT_OPTION_FORM   0x14

Definition at line 32 of file SecureBootConfigNvData.h.

◆ FORMID_SECURE_BOOT_DBX_OPTION_FORM

#define FORMID_SECURE_BOOT_DBX_OPTION_FORM   0x06

Definition at line 24 of file SecureBootConfigNvData.h.

◆ FORMID_SECURE_BOOT_KEK_OPTION_FORM

#define FORMID_SECURE_BOOT_KEK_OPTION_FORM   0x04

Definition at line 22 of file SecureBootConfigNvData.h.

◆ FORMID_SECURE_BOOT_OPTION_FORM

#define FORMID_SECURE_BOOT_OPTION_FORM   0x02

Definition at line 20 of file SecureBootConfigNvData.h.

◆ FORMID_SECURE_BOOT_PK_OPTION_FORM

#define FORMID_SECURE_BOOT_PK_OPTION_FORM   0x03

Definition at line 21 of file SecureBootConfigNvData.h.

◆ KEY_DELETE_KEK

#define KEY_DELETE_KEK   0x1108

Definition at line 67 of file SecureBootConfigNvData.h.

◆ KEY_ENROLL_KEK

#define KEY_ENROLL_KEK   0x1107

Definition at line 66 of file SecureBootConfigNvData.h.

◆ KEY_ENROLL_PK

#define KEY_ENROLL_PK   0x1106

Definition at line 65 of file SecureBootConfigNvData.h.

◆ KEY_HIDE_SECURE_BOOT

#define KEY_HIDE_SECURE_BOOT   0x100c

Definition at line 51 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_DB_OPTION

#define KEY_SECURE_BOOT_DB_OPTION   0x1103

Definition at line 62 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_DBT_OPTION

#define KEY_SECURE_BOOT_DBT_OPTION   0x110d

Definition at line 71 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_DBX_OPTION

#define KEY_SECURE_BOOT_DBX_OPTION   0x1104

Definition at line 63 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_DELETE_ALL_DATA

#define KEY_SECURE_BOOT_DELETE_ALL_DATA   0x1110

Definition at line 74 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_DELETE_ALL_LIST

#define KEY_SECURE_BOOT_DELETE_ALL_LIST   0x110f

Definition at line 73 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_DELETE_CHECK_DATA

#define KEY_SECURE_BOOT_DELETE_CHECK_DATA   0x1111

Definition at line 75 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_DELETE_PK

#define KEY_SECURE_BOOT_DELETE_PK   0x1105

Definition at line 64 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_ENABLE

#define KEY_SECURE_BOOT_ENABLE   0x1000

Definition at line 41 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_KEK_GUID

#define KEY_SECURE_BOOT_KEK_GUID   0x110a

Definition at line 68 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_KEK_OPTION

#define KEY_SECURE_BOOT_KEK_OPTION   0x1102

Definition at line 61 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_MODE

#define KEY_SECURE_BOOT_MODE   0x1001

Definition at line 42 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_OPTION

#define KEY_SECURE_BOOT_OPTION   0x1100

Definition at line 59 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_PK_OPTION

#define KEY_SECURE_BOOT_PK_OPTION   0x1101

Definition at line 60 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_RESET_TO_DEFAULT

#define KEY_SECURE_BOOT_RESET_TO_DEFAULT   0x1010

Definition at line 57 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_SIGNATURE_GUID_DB

#define KEY_SECURE_BOOT_SIGNATURE_GUID_DB   0x110b

Definition at line 69 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_SIGNATURE_GUID_DBT

#define KEY_SECURE_BOOT_SIGNATURE_GUID_DBT   0x110e

Definition at line 72 of file SecureBootConfigNvData.h.

◆ KEY_SECURE_BOOT_SIGNATURE_GUID_DBX

#define KEY_SECURE_BOOT_SIGNATURE_GUID_DBX   0x110c

Definition at line 70 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_FROM_DBX_TO_LIST_FORM

#define KEY_VALUE_FROM_DBX_TO_LIST_FORM   0x100f

Definition at line 55 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_NO_SAVE_AND_EXIT_DB

#define KEY_VALUE_NO_SAVE_AND_EXIT_DB   0x1003

Definition at line 44 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_NO_SAVE_AND_EXIT_DBT

#define KEY_VALUE_NO_SAVE_AND_EXIT_DBT   0x100e

Definition at line 53 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_NO_SAVE_AND_EXIT_DBX

#define KEY_VALUE_NO_SAVE_AND_EXIT_DBX   0x100b

Definition at line 50 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_NO_SAVE_AND_EXIT_KEK

#define KEY_VALUE_NO_SAVE_AND_EXIT_KEK   0x1009

Definition at line 48 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_NO_SAVE_AND_EXIT_PK

#define KEY_VALUE_NO_SAVE_AND_EXIT_PK   0x1005

Definition at line 46 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_SAVE_AND_EXIT_DB

#define KEY_VALUE_SAVE_AND_EXIT_DB   0x1002

Definition at line 43 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_SAVE_AND_EXIT_DBT

#define KEY_VALUE_SAVE_AND_EXIT_DBT   0x100d

Definition at line 52 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_SAVE_AND_EXIT_DBX

#define KEY_VALUE_SAVE_AND_EXIT_DBX   0x100a

Definition at line 49 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_SAVE_AND_EXIT_KEK

#define KEY_VALUE_SAVE_AND_EXIT_KEK   0x1008

Definition at line 47 of file SecureBootConfigNvData.h.

◆ KEY_VALUE_SAVE_AND_EXIT_PK

#define KEY_VALUE_SAVE_AND_EXIT_PK   0x1004

Definition at line 45 of file SecureBootConfigNvData.h.

◆ LABEL_DB_DELETE

#define LABEL_DB_DELETE   0x1201

Definition at line 78 of file SecureBootConfigNvData.h.

◆ LABEL_DBT_DELETE

#define LABEL_DBT_DELETE   0x1203

Definition at line 80 of file SecureBootConfigNvData.h.

◆ LABEL_DELETE_ALL_LIST_BUTTON

#define LABEL_DELETE_ALL_LIST_BUTTON   0x1300

Definition at line 82 of file SecureBootConfigNvData.h.

◆ LABEL_END

#define LABEL_END   0xffff

Definition at line 83 of file SecureBootConfigNvData.h.

◆ LABEL_KEK_DELETE

#define LABEL_KEK_DELETE   0x1200

Definition at line 77 of file SecureBootConfigNvData.h.

◆ LABEL_SIGNATURE_DATA_START

#define LABEL_SIGNATURE_DATA_START   0x1204

Definition at line 81 of file SecureBootConfigNvData.h.

◆ LABEL_SIGNATURE_LIST_START

#define LABEL_SIGNATURE_LIST_START   0x1202

Definition at line 79 of file SecureBootConfigNvData.h.

◆ OPTION_CONFIG_QUESTION_ID

#define OPTION_CONFIG_QUESTION_ID   0x2000

Definition at line 89 of file SecureBootConfigNvData.h.

◆ OPTION_CONFIG_RANGE

#define OPTION_CONFIG_RANGE   0x1000

Definition at line 90 of file SecureBootConfigNvData.h.

◆ OPTION_DEL_DB_QUESTION_ID

#define OPTION_DEL_DB_QUESTION_ID   0x3000

Definition at line 99 of file SecureBootConfigNvData.h.

◆ OPTION_DEL_DBT_QUESTION_ID

#define OPTION_DEL_DBT_QUESTION_ID   0x5000

Definition at line 112 of file SecureBootConfigNvData.h.

◆ OPTION_DEL_KEK_QUESTION_ID

#define OPTION_DEL_KEK_QUESTION_ID   0x2000

Definition at line 95 of file SecureBootConfigNvData.h.

◆ OPTION_SIGNATURE_DATA_QUESTION_ID

#define OPTION_SIGNATURE_DATA_QUESTION_ID   0x6000

Definition at line 107 of file SecureBootConfigNvData.h.

◆ OPTION_SIGNATURE_LIST_QUESTION_ID

#define OPTION_SIGNATURE_LIST_QUESTION_ID   0X4000

Definition at line 103 of file SecureBootConfigNvData.h.

◆ PE_IMAGE_FILE_TYPE

#define PE_IMAGE_FILE_TYPE   2

Definition at line 119 of file SecureBootConfigNvData.h.

◆ SECURE_BOOT_GUID_SIZE

#define SECURE_BOOT_GUID_SIZE   36

Definition at line 114 of file SecureBootConfigNvData.h.

◆ SECURE_BOOT_GUID_STORAGE_SIZE

#define SECURE_BOOT_GUID_STORAGE_SIZE   37

Definition at line 115 of file SecureBootConfigNvData.h.

◆ SECURE_BOOT_MAX_ATTEMPTS_NUM

#define SECURE_BOOT_MAX_ATTEMPTS_NUM   255

Definition at line 85 of file SecureBootConfigNvData.h.

◆ SECURE_BOOT_MODE_CUSTOM

#define SECURE_BOOT_MODE_CUSTOM   0x01

Definition at line 38 of file SecureBootConfigNvData.h.

◆ SECURE_BOOT_MODE_STANDARD

#define SECURE_BOOT_MODE_STANDARD   0x00

Definition at line 39 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_ADD_PK_FILE_FORM_ID

#define SECUREBOOT_ADD_PK_FILE_FORM_ID   0x08

Definition at line 26 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_CONFIGURATION_FORM_ID

#define SECUREBOOT_CONFIGURATION_FORM_ID   0x01

Definition at line 19 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_CONFIGURATION_VARSTORE_ID

#define SECUREBOOT_CONFIGURATION_VARSTORE_ID   0x0001

Definition at line 18 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_DELETE_SIGNATURE_DATA_FORM

#define SECUREBOOT_DELETE_SIGNATURE_DATA_FORM   0x18

Definition at line 36 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_DELETE_SIGNATURE_FROM_DB

#define SECUREBOOT_DELETE_SIGNATURE_FROM_DB   0x0c

Definition at line 30 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_DELETE_SIGNATURE_FROM_DBT

#define SECUREBOOT_DELETE_SIGNATURE_FROM_DBT   0x16

Definition at line 34 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_DELETE_SIGNATURE_LIST_FORM

#define SECUREBOOT_DELETE_SIGNATURE_LIST_FORM   0x17

Definition at line 35 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_ENROLL_SIGNATURE_TO_DB

#define SECUREBOOT_ENROLL_SIGNATURE_TO_DB   0x0b

Definition at line 29 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_ENROLL_SIGNATURE_TO_DBT

#define SECUREBOOT_ENROLL_SIGNATURE_TO_DBT   0x15

Definition at line 33 of file SecureBootConfigNvData.h.

◆ SECUREBOOT_ENROLL_SIGNATURE_TO_DBX

#define SECUREBOOT_ENROLL_SIGNATURE_TO_DBX   0x0d

Definition at line 31 of file SecureBootConfigNvData.h.

◆ UNKNOWN_FILE_TYPE

#define UNKNOWN_FILE_TYPE   0

Definition at line 117 of file SecureBootConfigNvData.h.

◆ X509_CERT_FILE_TYPE

#define X509_CERT_FILE_TYPE   1

Definition at line 118 of file SecureBootConfigNvData.h.