]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Eap.h
MdePkg/ProcessorBind: add defines for page allocation granularity
[mirror_edk2.git] / MdePkg / Include / Protocol / Eap.h
index f1c45d495c29c3b2215c86dc76d284af33ff9c74..eac2d5e5642a601039336fee8f9714dadb3d760d 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 - 2015, 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,18 @@ 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
+// Definitions are kept for backward compatibility.\r
+//\r
+#define EFI_EAP_TYPE_MD5                4\r
+#define EFI_EAP_TYPE_OTP                5\r
+#define EFI_EAP_TYPE_TOKEN_CARD         6\r
 \r
 /**\r
   One user provided EAP authentication method.\r
@@ -85,7 +90,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