]> git.proxmox.com Git - mirror_edk2.git/commitdiff
delete #include <Uefi/UefiBaseType.h>
authorywu21 <ywu21@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Dec 2008 06:21:28 +0000 (06:21 +0000)
committerywu21 <ywu21@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Dec 2008 06:21:28 +0000 (06:21 +0000)
add #include <Uefi.h>
update file header
update function header

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6970 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/IScsiDxe/Md5.h

index fca782ce3435b5965f80208f13627427146e09bf..2804d4e189ade9c01f1749d858d2718b7b792b55 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  Header file for Md5\r
+  Header file for Md5.\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation\r
+Copyright (c) 2004 - 2008, Intel Corporation.<BR>\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
@@ -10,23 +10,15 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Md5.h\r
-\r
-Abstract:\r
-\r
-  Header file for Md5\r
-\r
 **/\r
 \r
 #ifndef _MD5_H_\r
 #define _MD5_H_\r
 \r
-#include <Uefi/UefiBaseType.h>\r
+#include <Uefi.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/NetLib.h>\r
-\r
\r
 #define MD5_HASHSIZE  16\r
 \r
 typedef struct _MD5_CTX {\r
@@ -40,10 +32,9 @@ typedef struct _MD5_CTX {
 /**\r
   Initialize four 32-bits chaining variables and use them to do the Md5 transform.\r
 \r
-  @param  Md5Ctx[in]  the data structure of Md5\r
-\r
-  @retval EFI_SUCCESS initialization is ok\r
+  @param[in]  Md5Ctx The data structure of Md5.\r
 \r
+  @retval EFI_SUCCESS Initialization is ok.\r
 **/\r
 EFI_STATUS\r
 MD5Init (\r
@@ -53,34 +44,31 @@ MD5Init (
 /**\r
   the external interface of Md5 algorithm\r
 \r
-  @param  Md5Ctx[in]  the data structure of storing the original data\r
+  @param[in]  Md5Ctx  The data structure of storing the original data\r
                       segment and the final result.\r
+  @param[in]  Data    The data wanted to be transformed.\r
+  @param[in]  DataLen The length of data.\r
 \r
-  @param  Data[in]    the data wanted to be transformed.\r
-\r
-  @param  DataLen[in] the length of data.\r
-\r
-  @retval EFI_SUCCESS the transform is ok.\r
-\r
+  @retval EFI_SUCCESS The transform is ok.\r
+  @retval Others      Some unexpected errors happened.\r
 **/\r
 EFI_STATUS\r
 MD5Update (\r
-  IN MD5_CTX  *Md5Ctx,\r
-  IN VOID     *Data,\r
-  IN UINTN    DataLen\r
+  IN  MD5_CTX  *Md5Ctx,\r
+  IN  VOID     *Data,\r
+  IN  UINTN    DataLen\r
   );\r
 \r
 /**\r
-  accumulate the MD5 value of every data segment and generate the finial\r
-  result according to MD5 algorithm\r
+  Accumulate the MD5 value of every data segment and generate the finial\r
+  result according to MD5 algorithm.\r
 \r
-  @param  Md5Ctx[in]   the data structure of storing the original data\r
+  @param[in]   Md5Ctx  The data structure of storing the original data\r
                        segment and the final result.\r
+  @param[out]  HashVal The final 128-bits output.\r
 \r
-  @param  HashVal[out] the final 128-bits output.\r
-\r
-  @retval EFI_SUCCESS  the transform is ok.\r
-\r
+  @retval EFI_SUCCESS  The transform is ok.\r
+  @retval Others       Some unexpected errors happened.\r
 **/\r
 EFI_STATUS\r
 MD5Final (\r
@@ -88,4 +76,4 @@ MD5Final (
   OUT UINT8    *HashVal\r
   );\r
 \r
-#endif // _MD5_H\r
+#endif \r