1 /** @file 2 The variable data structures are related to EDKII-specific 3 implementation of UEFI authenticated variables. 4 AuthenticatedVariableFormat.h defines variable data headers 5 and variable storage region headers that has been moved to 6 VariableFormat.h. 7 8 Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR> 9 This program and the accompanying materials 10 are licensed and made available under the terms and conditions of the BSD License 11 which accompanies this distribution. The full text of the license may be found at 12 http://opensource.org/licenses/bsd-license.php 13 14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 16 17 **/ 18 19 #ifndef __AUTHENTICATED_VARIABLE_FORMAT_H__ 20 #define __AUTHENTICATED_VARIABLE_FORMAT_H__ 21 22 #include <Guid/VariableFormat.h> 23 24 #define EFI_SECURE_BOOT_ENABLE_DISABLE \ 25 { 0xf0a30bc7, 0xaf08, 0x4556, { 0x99, 0xc4, 0x0, 0x10, 0x9, 0xc9, 0x3a, 0x44 } } 26 27 extern EFI_GUID gEfiSecureBootEnableDisableGuid; 28 extern EFI_GUID gEfiCertDbGuid; 29 extern EFI_GUID gEfiCustomModeEnableGuid; 30 extern EFI_GUID gEfiVendorKeysNvGuid; 31 32 /// 33 /// "SecureBootEnable" variable for the Secure Boot feature enable/disable. 34 /// This variable is used for allowing a physically present user to disable 35 /// Secure Boot via firmware setup without the possession of PKpriv. 36 /// 37 /// GUID: gEfiSecureBootEnableDisableGuid 38 /// 39 /// Format: UINT8 40 /// 41 #define EFI_SECURE_BOOT_ENABLE_NAME L"SecureBootEnable" 42 #define SECURE_BOOT_ENABLE 1 43 #define SECURE_BOOT_DISABLE 0 44 45 /// 46 /// "CustomMode" variable for two Secure Boot modes feature: "Custom" and "Standard". 47 /// Standard Secure Boot mode is the default mode as UEFI Spec's description. 48 /// Custom Secure Boot mode allows for more flexibility as specified in the following: 49 /// Can enroll or delete PK without existing PK's private key. 50 /// Can enroll or delete KEK without existing PK's private key. 51 /// Can enroll or delete signature from DB/DBX without KEK's private key. 52 /// 53 /// GUID: gEfiCustomModeEnableGuid 54 /// 55 /// Format: UINT8 56 /// 57 #define EFI_CUSTOM_MODE_NAME L"CustomMode" 58 #define CUSTOM_SECURE_BOOT_MODE 1 59 #define STANDARD_SECURE_BOOT_MODE 0 60 61 /// 62 /// "VendorKeysNv" variable to record the out of band secure boot keys modification. 63 /// This variable is a read-only NV varaible that indicates whether someone other than 64 /// the platform vendor has used a mechanism not defined by the UEFI Specification to 65 /// transition the system to setup mode or to update secure boot keys. 66 /// 67 /// GUID: gEfiVendorKeysNvGuid 68 /// 69 /// Format: UINT8 70 /// 71 #define EFI_VENDOR_KEYS_NV_VARIABLE_NAME L"VendorKeysNv" 72 #define VENDOR_KEYS_VALID 1 73 #define VENDOR_KEYS_MODIFIED 0 74 75 #endif // __AUTHENTICATED_VARIABLE_FORMAT_H__ 76