]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update header file to match UEFI231B mantis 771, 850, 853 and 857.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jul 2012 04:52:43 +0000 (04:52 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 5 Jul 2012 04:52:43 +0000 (04:52 +0000)
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Hot Tian <hot.tian@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13504 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Protocol/AbsolutePointer.h
MdePkg/Include/Protocol/Eap.h
MdePkg/Include/Protocol/Hash.h
MdePkg/MdePkg.dec

index f863a302681c4a1317b726e5f78831a3da6951fd..a4efea221fc5696f5911c619d5f9ddc3ba78ca4e 100644 (file)
@@ -2,7 +2,7 @@
   The file provides services that allow information about an\r
   absolute pointer device to be retrieved.\r
   \r
-  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -116,7 +116,7 @@ typedef struct {
   UINT64 CurrentX;\r
   \r
   ///\r
-  /// The unsigned position of the activation on the x axis. If the AboluteMinY \r
+  /// The unsigned position of the activation on the y axis. If the AboluteMinY \r
   /// and the AboluteMaxY fields of the EFI_ABSOLUTE_POINTER_MODE structure are \r
   /// both 0, then this pointer device does not support an y-axis, and this field\r
   /// must be ignored.  \r
@@ -124,7 +124,7 @@ typedef struct {
   UINT64 CurrentY;\r
   \r
   ///\r
-  /// The unsigned position of the activation on the x axis, or the pressure \r
+  /// The unsigned position of the activation on the z axis, or the pressure \r
   /// measurement. If the AboluteMinZ and the AboluteMaxZ fields of the \r
   /// EFI_ABSOLUTE_POINTER_MODE structure are both 0, then this pointer device \r
   /// does not support an z-axis, and this field must be ignored.  \r
index f1c45d495c29c3b2215c86dc76d284af33ff9c74..9b445e25a0c857b1fca72624064739eaed09f19c 100644 (file)
@@ -2,10 +2,10 @@
   EFI EAP(Extended Authenticaton Protocol) Protocol Definition\r
   The EFI EAP Protocol is used to abstract the ability to configure and extend the\r
   EAP framework. \r
-  The definitions in this file are defined in UEFI Specification 2.3, which have\r
+  The definitions in this file are defined in UEFI Specification 2.3.1B, which have\r
   not been verified by one implementation yet.\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -37,13 +37,17 @@ typedef struct _EFI_EAP_PROTOCOL EFI_EAP_PROTOCOL;
 typedef VOID *  EFI_PORT_HANDLE;\r
 \r
 ///\r
-/// EAP Authentication Method Type (RFC 2284 Section 3)\r
+/// EAP Authentication Method Type (RFC 3748)\r
 ///@{\r
-#define EFI_EAP_TYPE_MD5                0x4   ///< REQUIRED\r
-#define EFI_EAP_TYPE_OTP                0x5   ///< OPTIONAL\r
-#define EFI_EAP_TYPE_TOKEN_CARD         0x6   ///< OPTIONAL\r
+#define EFI_EAP_TYPE_TLS 13 ///< REQUIRED - RFC 5216\r
 ///@}\r
 \r
+//\r
+// EAP_TYPE MD5, OTP and TOEKN_CARD has been removed from UEFI2.3.1B.\r
+//\r
+#define EFI_EAP_TYPE_MD5                0x4\r
+#define EFI_EAP_TYPE_OTP                0x5\r
+#define EFI_EAP_TYPE_TOKEN_CARD         0x6\r
 \r
 /**\r
   One user provided EAP authentication method.\r
@@ -85,7 +89,9 @@ EFI_STATUS
   returned.\r
   If the EAP authentication method of EapAuthType is unsupported by the Ports, then it will\r
   return EFI_UNSUPPORTED.\r
-\r
+  The cryptographic strength of EFI_EAP_TYPE_TLS shall be at least of hash strength \r
+  SHA-256 and RSA key length of at least 2048 bits.\r
+  \r
   @param[in] This                A pointer to the EFI_EAP_PROTOCOL instance that indicates \r
                                  the calling context.\r
   @param[in] EapAuthType         The type of the EAP authentication method to register. It should \r
index 2034b0a378406190c5ed49de6c32e92e63199562..9299c96699407873e64ddd3c4ed81818144989ad 100644 (file)
@@ -5,7 +5,7 @@
   provided by a driver and to create and destroy instances of the EFI Hash Protocol \r
   so that a multiple drivers can use the underlying hashing services.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -59,6 +59,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     0xaf7c79c, 0x65b5, 0x4319, {0xb0, 0xae, 0x44, 0xec, 0x48, 0x4e, 0x4a, 0xd7 } \\r
   }\r
 \r
+#define EFI_HASH_ALGORITHM_SHA1_NOPAD_GUID \\r
+  { \\r
+    0x24c5dc2f, 0x53e2, 0x40ca, {0x9e, 0xd6, 0xa5, 0xd9, 0xa4, 0x9f, 0x46, 0x3b } \\r
+  }\r
+\r
+#define EFI_HASH_ALGORITHM_SHA256_NOPAD_GUID \\r
+  { \\r
+    0x8628752a, 0x6cb7, 0x4814, {0x96, 0xfc, 0x24, 0xa8, 0x15, 0xac, 0x22, 0x26 } \\r
+  }\r
+\r
 typedef struct _EFI_HASH_PROTOCOL EFI_HASH_PROTOCOL;\r
 \r
 typedef UINT8  EFI_MD5_HASH[16];\r
@@ -99,7 +109,7 @@ EFI_STATUS
   );      \r
 \r
 /**\r
-  Returns the size of the hash which results from a specific algorithm.\r
+  Creates a hash for the specified message text.\r
 \r
   @param[in]  This          Points to this instance of EFI_HASH_PROTOCOL.\r
   @param[in]  HashAlgorithm Points to the EFI_GUID which identifies the algorithm to use.\r
@@ -107,9 +117,13 @@ EFI_STATUS
                             existing hash (TRUE).\r
   @param[in]  Message       Points to the start of the message.\r
   @param[in]  MessageSize   The size of Message, in bytes.\r
-  @param[in,out]  Hash      On input, if Extend is TRUE, then this holds the hash to extend. On\r
-                            output, holds the resulting hash computed from the message.\r
-\r
+  @param[in,out]  Hash      On input, if Extend is TRUE, then this parameter holds a pointer \r
+                            to a pointer to an array containing the hash to extend. If Extend \r
+                            is FALSE, then this parameter holds a pointer to a pointer to a \r
+                            caller-allocated array that will receive the result of the hash \r
+                            computation. On output (regardless of the value of Extend), the \r
+                            array will contain the result of the hash computation.\r
+  \r
   @retval EFI_SUCCESS           Hash returned successfully.\r
   @retval EFI_INVALID_PARAMETER Message or Hash is NULL\r
   @retval EFI_UNSUPPORTED       The algorithm specified by HashAlgorithm is not supported by this\r
@@ -144,5 +158,7 @@ extern EFI_GUID gEfiHashAlgorithmSha256Guid;
 extern EFI_GUID gEfiHashAlgorithmSha384Guid;\r
 extern EFI_GUID gEfiHashAlgorithmSha512Guid;\r
 extern EFI_GUID gEfiHashAlgorithmMD5Guid;\r
+extern EFI_GUID gEfiHashAlgorithmSha1NoPadGuid;\r
+extern EFI_GUID gEfiHashAlgorithmSha256NoPadGuid;\r
 \r
 #endif\r
index 70553fe81513a4b68bdcfecce38c3a5ac35ea9b4..59b7ac4838d8c8d715b39c04c4d8765a825d2923 100644 (file)
   gEfiCertSha512Guid             = { 0x93e0fae,  0xa6c4, 0x4f50, {0x9f, 0x1b, 0xd4, 0x1e, 0x2b, 0x89, 0xc1, 0x9a }}\r
   gEfiCertPkcs7Guid              = { 0x4aafd29d, 0x68df, 0x49ee, {0x8a, 0xa9, 0x34, 0x7d, 0x37, 0x56, 0x65, 0xa7 }}\r
 \r
+  ## Include/Protocol/Hash.h\r
+  gEfiHashAlgorithmSha1NoPadGuid = { 0x24c5dc2f, 0x53e2, 0x40ca, { 0x9e, 0xd6, 0xa5, 0xd9, 0xa4, 0x9f, 0x46, 0x3b }}\r
+  gEfiHashAlgorithmSha256NoPadGuid = { 0x8628752a, 0x6cb7, 0x4814, { 0x96, 0xfc, 0x24, 0xa8, 0x15, 0xac, 0x22, 0x26 }}\r
+\r
   #\r
   # GUID defined in PI1.0\r
   #\r