UefiSecureBoot.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /** @file
  2. Provides a Secure Boot related data structure definitions.
  3. Copyright (c) Microsoft Corporation.
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef UEFI_SECURE_BOOT_H_
  7. #define UEFI_SECURE_BOOT_H_
  8. #pragma pack (push, 1)
  9. /*
  10. Data structure to provide certificates to setup authenticated secure
  11. boot variables ('db', 'dbx', 'dbt', 'pk', etc.).
  12. */
  13. typedef struct {
  14. //
  15. // The size, in number of bytes, of supplied certificate in 'Data' field.
  16. //
  17. UINTN DataSize;
  18. //
  19. // The pointer to the certificates in DER-encoded format.
  20. // Note: This certificate data should not contain the EFI_VARIABLE_AUTHENTICATION_2
  21. // for authenticated variables.
  22. //
  23. CONST VOID *Data;
  24. } SECURE_BOOT_CERTIFICATE_INFO;
  25. /*
  26. Data structure to provide all Secure Boot related certificates.
  27. */
  28. typedef struct {
  29. //
  30. // The human readable name for this set of Secure Boot key sets.
  31. //
  32. CONST CHAR16 *SecureBootKeyName;
  33. //
  34. // The size, in number of bytes, of supplied certificate in 'DbPtr' field.
  35. //
  36. UINTN DbSize;
  37. //
  38. // The pointer to the DB certificates in signature list format.
  39. // Note: This DB certificates should not contain the EFI_VARIABLE_AUTHENTICATION_2
  40. // for authenticated variables.
  41. //
  42. CONST VOID *DbPtr;
  43. //
  44. // The size, in number of bytes, of supplied certificate in 'DbxPtr' field.
  45. //
  46. UINTN DbxSize;
  47. //
  48. // The pointer to the DBX certificates in signature list format.
  49. // Note: This DBX certificates should not contain the EFI_VARIABLE_AUTHENTICATION_2
  50. // for authenticated variables.
  51. //
  52. CONST VOID *DbxPtr;
  53. //
  54. // The size, in number of bytes, of supplied certificate in 'DbtPtr' field.
  55. //
  56. UINTN DbtSize;
  57. //
  58. // The pointer to the DBT certificates in signature list format.
  59. // Note: This DBT certificates should not contain the EFI_VARIABLE_AUTHENTICATION_2
  60. // for authenticated variables.
  61. //
  62. CONST VOID *DbtPtr;
  63. //
  64. // The size, in number of bytes, of supplied certificate in 'KekPtr' field.
  65. //
  66. UINTN KekSize;
  67. //
  68. // The pointer to the KEK certificates in signature list format.
  69. // Note: This KEK certificates should not contain the EFI_VARIABLE_AUTHENTICATION_2
  70. // for authenticated variables.
  71. //
  72. CONST VOID *KekPtr;
  73. //
  74. // The size, in number of bytes, of supplied certificate in 'PkPtr' field.
  75. //
  76. UINTN PkSize;
  77. //
  78. // The pointer to the PK certificates in signature list format.
  79. // Note: This PK certificates should not contain the EFI_VARIABLE_AUTHENTICATION_2
  80. // for authenticated variables.
  81. //
  82. CONST VOID *PkPtr;
  83. } SECURE_BOOT_PAYLOAD_INFO;
  84. #pragma pack (pop)
  85. #endif // UEFI_SECURE_BOOT_H_