]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Uefi/UefiMultiPhase.h
apply for doxgen format comments.
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiMultiPhase.h
index 4fc02197fcf94990ca3b26edb1190d9cb8094d24..87f2fcc7aac7e79cd6e7758dd578dcacd76f9ee8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This includes some definitions introduced in UEFI that will be used in both PEI and DXE phases.\r
 \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -70,38 +70,32 @@ typedef struct {
 #define WIN_CERT_TYPE_EFI_PKCS115   0x0EF0\r
 #define WIN_CERT_TYPE_EFI_GUID      0x0EF1\r
 \r
-/**\r
-   \r
-  The WIN_CERTIFICATE structure is part of the PE/COFF\r
-  specification and has the following definition:\r
-\r
-  @param dwLength   The length of the entire certificate,\r
-                    including the length of the header, in\r
-                    bytes.\r
-\r
-  @param wRevision  The revision level of the WIN_CERTIFICATE\r
-                    structure. The current revision level is\r
-                    0x0200.\r
-\r
-  @param wCertificateType   The certificate type. See\r
-                            WIN_CERT_TYPE_xxx for the UEFI\r
-                            certificate types. The UEFI\r
-                            specification reserves the range of\r
-                            certificate type values from 0x0EF0\r
-                            to 0x0EFF.\r
-\r
-  @param bCertificate   The actual certificate. The format of\r
-                        the certificate depends on\r
-                        wCertificateType. The format of the UEFI\r
-                        certificates is defined below.\r
-\r
-\r
-**/\r
+///\r
+/// The WIN_CERTIFICATE structure is part of the PE/COFF specification.\r
+///\r
 typedef struct _WIN_CERTIFICATE {\r
+  ///\r
+  /// The length of the entire certificate,  \r
+  /// including the length of the header, in bytes.                                \r
+  ///\r
   UINT32  dwLength;\r
+  ///\r
+  /// The revision level of the WIN_CERTIFICATE \r
+  /// structure. The current revision level is 0x0200.                                   \r
+  ///\r
   UINT16  wRevision;\r
+  ///\r
+  /// The certificate type. See WIN_CERT_TYPE_xxx for the UEFI      \r
+  /// certificate types. The UEFI specification reserves the range of \r
+  /// certificate type values from 0x0EF0 to 0x0EFF.                          \r
+  ///\r
   UINT16  wCertificateType;\r
-  //UINT8 bCertificate[ANYSIZE_ARRAY];\r
+  ///\r
+  /// The following is the actual certificate. The format of   \r
+  /// the certificate depends on wCertificateType.\r
+  ///\r
+  /// UINT8 bCertificate[ANYSIZE_ARRAY];\r
+  ///\r
 } WIN_CERTIFICATE;\r
 \r
 ///\r
@@ -110,9 +104,9 @@ typedef struct _WIN_CERTIFICATE {
 #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \\r
   {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } }\r
 \r
-///\r
-/// WIN_CERTIFICATE_UEFI_GUID.CertData\r
-/// \r
+//\r
+// WIN_CERTIFICATE_UEFI_GUID.CertData\r
+// \r
 typedef struct _EFI_CERT_BLOCK_RSA_2048_SHA256 {\r
   UINT32  HashType;\r
   UINT8   PublicKey[256];\r
@@ -120,97 +114,95 @@ typedef struct _EFI_CERT_BLOCK_RSA_2048_SHA256 {
 } EFI_CERT_BLOCK_RSA_2048_SHA256;\r
 \r
 \r
-/**\r
-   \r
-  @param Hdr  This is the standard WIN_CERTIFICATE header, where\r
-              wCertificateType is set to\r
-              WIN_CERT_TYPE_UEFI_GUID.\r
-\r
-  @param CertType   This is the unique id which determines the\r
-                    format of the CertData. In this case, the\r
-                    value is EFI_CERT_TYPE_RSA2048_SHA256_GUID.\r
-\r
-  @param CertData   This is the certificate data. The format of\r
-                    the data is determined by the CertType. In\r
-                    this case the value is\r
-                    EFI_CERT_BLOCK_RSA_2048_SHA256.\r
-\r
-**/\r
+///\r
+/// Certificate which encapsulates a GUID-specific digital signature\r
+///\r
 typedef struct _WIN_CERTIFICATE_UEFI_GUID {\r
+  ///\r
+  /// This is the standard WIN_CERTIFICATE header, where\r
+  /// wCertificateType is set to WIN_CERT_TYPE_UEFI_GUID. \r
+  ///                         \r
   WIN_CERTIFICATE   Hdr;\r
+  ///\r
+  /// This is the unique id which determines the \r
+  /// format of the CertData. In this case, the  \r
+  /// value is EFI_CERT_TYPE_RSA2048_SHA256_GUID.\r
+  ///\r
   EFI_GUID          CertType;\r
-  // UINT8            CertData[ANYSIZE_ARRAY];\r
+  /// \r
+  /// The following is the certificate data. The format of\r
+  /// the data is determined by the CertType. In this case the value is                     \r
+  /// EFI_CERT_BLOCK_RSA_2048_SHA256.            \r
+  ///\r
+  /// UINT8            CertData[ANYSIZE_ARRAY];\r
+  ///\r
 } WIN_CERTIFICATE_UEFI_GUID;\r
 \r
 \r
-/**\r
-   \r
-  Certificate which encapsulates the RSASSA_PKCS1-v1_5 digital\r
-  signature.\r
-  \r
-  The WIN_CERTIFICATE_UEFI_PKCS1_15 structure is derived from\r
-  WIN_CERTIFICATE and encapsulate the information needed to  \r
-  implement the RSASSA-PKCS1-v1_5 digital signature algorithm as  \r
-  specified in RFC2437.  \r
-  \r
-  @param Hdr  This is the standard WIN_CERTIFICATE header, where\r
-              wCertificateType is set to\r
-              WIN_CERT_TYPE_UEFI_PKCS1_15.\r
-  \r
-  @param HashAlgorithm  This is the hashing algorithm which was\r
-                        performed on the UEFI executable when\r
-                        creating the digital signature. It is\r
-                        one of the enumerated values pre-defined\r
-                        in Section 26.4.1. See\r
-                        EFI_HASH_ALGORITHM_x.\r
-  \r
-  @param Signature  This is the actual digital signature. The\r
-                    size of the signature is the same size as\r
-                    the key (1024-bit key is 128 bytes) and can\r
-                    be determined by subtracting the length of\r
-                    the other parts of this header from the\r
-                    total length of the certificate as found in\r
-                    Hdr.dwLength.\r
-\r
-**/\r
-typedef struct _WIN_CERTIFICATE_EFI_PKCS1_15 {\r
+///   \r
+/// Certificate which encapsulates the RSASSA_PKCS1-v1_5 digital signature.\r
+///  \r
+/// The WIN_CERTIFICATE_UEFI_PKCS1_15 structure is derived from\r
+/// WIN_CERTIFICATE and encapsulate the information needed to  \r
+/// implement the RSASSA-PKCS1-v1_5 digital signature algorithm as  \r
+/// specified in RFC2437.  \r
+///  \r
+typedef struct _WIN_CERTIFICATE_EFI_PKCS1_15 {     \r
+  ///\r
+  /// This is the standard WIN_CERTIFICATE header, where \r
+  /// wCertificateType is set to WIN_CERT_TYPE_UEFI_PKCS1_15.                       \r
+  ///\r
   WIN_CERTIFICATE Hdr;\r
+  ///\r
+  /// This is the hashing algorithm which was performed on the\r
+  /// UEFI executable when creating the digital signature. \r
+  ///\r
   EFI_GUID        HashAlgorithm;\r
-  // UINT8 Signature[ANYSIZE_ARRAY];\r
+  ///\r
+  /// The following is the actual digital signature. The   \r
+  /// size of the signature is the same size as the key \r
+  /// (1024-bit key is 128 bytes) and can be determined by \r
+  /// subtracting the length of the other parts of this header\r
+  /// from the total length of the certificate as found in \r
+  /// Hdr.dwLength.                               \r
+  ///\r
+  /// UINT8 Signature[ANYSIZE_ARRAY];\r
+  ///\r
 } WIN_CERTIFICATE_EFI_PKCS1_15;\r
 \r
 \r
-/**\r
-   \r
-  AuthInfo is a WIN_CERTIFICATE using the wCertificateType\r
-  WIN_CERTIFICATE_UEFI_GUID and the CertType\r
-  EFI_CERT_TYPE_RSA2048_SHA256. If the attribute specifies\r
-  authenticated access, then the Data buffer should begin with an\r
-  authentication descriptor prior to the data payload and DataSize\r
-  should reflect the the data.and descriptor size. The caller\r
-  shall digest the Monotonic Count value and the associated data\r
-  for the variable update using the SHA-256 1-way hash algorithm.\r
-  The ensuing the 32-byte digest will be signed using the private\r
-  key associated w/ the public/private 2048-bit RSA key-pair. The\r
-  WIN_CERTIFICATE shall be used to describe the signature of the\r
-  Variable data *Data. In addition, the signature will also\r
-  include the MonotonicCount value to guard against replay attacks\r
-  \r
-  @param  MonotonicCount  Included in the signature of\r
-                          AuthInfo.Used to ensure freshness/no\r
-                          replay. Incremented during each\r
-                          "Write" access.\r
-  \r
-  @param AuthInfo   Provides the authorization for the variable\r
-                    access. It is a signature across the\r
-                    variable data and the  Monotonic Count\r
-                    value. Caller uses Private key that is\r
-                    associated with a public key that has been\r
-                    provisioned via the key exchange.\r
 \r
-**/\r
+///   \r
+/// AuthInfo is a WIN_CERTIFICATE using the wCertificateType\r
+/// WIN_CERTIFICATE_UEFI_GUID and the CertType\r
+/// EFI_CERT_TYPE_RSA2048_SHA256. If the attribute specifies\r
+/// authenticated access, then the Data buffer should begin with an\r
+/// authentication descriptor prior to the data payload and DataSize\r
+/// should reflect the the data.and descriptor size. The caller\r
+/// shall digest the Monotonic Count value and the associated data\r
+/// for the variable update using the SHA-256 1-way hash algorithm.\r
+/// The ensuing the 32-byte digest will be signed using the private\r
+/// key associated w/ the public/private 2048-bit RSA key-pair. The\r
+/// WIN_CERTIFICATE shall be used to describe the signature of the\r
+/// Variable data *Data. In addition, the signature will also\r
+/// include the MonotonicCount value to guard against replay attacks\r
+///  \r
 typedef struct {\r
+  ///\r
+  /// Included in the signature of        \r
+  /// AuthInfo.Used to ensure freshness/no\r
+  /// replay. Incremented during each     \r
+  /// "Write" access.   \r
+  ///                  \r
   UINT64                      MonotonicCount;\r
+  ///\r
+  /// Provides the authorization for the variable \r
+  /// access. It is a signature across the        \r
+  /// variable data and the  Monotonic Count      \r
+  /// value. Caller uses Private key that is      \r
+  /// associated with a public key that has been  \r
+  /// provisioned via the key exchange.           \r
+  ///\r
   WIN_CERTIFICATE_UEFI_GUID   AuthInfo;\r
 } EFI_VARIABLE_AUTHENTICATION;\r
 \r