[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-commits] Changes to mldonkey/src/utils/lib/md4.c
From: |
mldonkey-commits |
Subject: |
[Mldonkey-commits] Changes to mldonkey/src/utils/lib/md4.c |
Date: |
Sun, 09 Oct 2005 11:53:40 -0400 |
Index: mldonkey/src/utils/lib/md4.c
diff -u mldonkey/src/utils/lib/md4.c:1.1 mldonkey/src/utils/lib/md4.c:1.2
--- mldonkey/src/utils/lib/md4.c:1.1 Tue Apr 22 22:33:40 2003
+++ mldonkey/src/utils/lib/md4.c Sun Oct 9 15:53:36 2005
@@ -17,6 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "md4.h"
+#include <memory.h>
/* Constants for MD4Transform routine.
*/
@@ -34,10 +35,8 @@
#define S34 15
static void MD4Transform PROTO_LIST ((UINT4 [4], unsigned char [64]));
-static void Encode PROTO_LIST
- ((unsigned char *, UINT4 *, unsigned int));
-static void Decode PROTO_LIST
- ((UINT4 *, unsigned char *, unsigned int));
+static void Encode PROTO_LIST ((unsigned char *, UINT4 *, unsigned int));
+static void Decode PROTO_LIST ((UINT4 *, unsigned char *, unsigned int));
static unsigned char PADDING[64] = {
@@ -111,8 +110,7 @@
/* Transform as many times as possible.
*/
if (inputLen >= partLen) {
- memcpy
- ((POINTER)&context->buffer[index], (POINTER)input, partLen);
+ memcpy ((POINTER)&context->buffer[index], (POINTER)input, partLen);
MD4Transform (context->state, context->buffer);
for (i = partLen; i + 63 < inputLen; i += 64)
@@ -124,9 +122,7 @@
i = 0;
/* Buffer remaining input */
- memcpy
- ((POINTER)&context->buffer[index], (POINTER)&input[i],
- inputLen-i);
+ memcpy ((POINTER)&context->buffer[index], (POINTER)&input[i], inputLen-i);
}
/* MD4 finalization. Ends an MD4 message-digest operation, writing the
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Mldonkey-commits] Changes to mldonkey/src/utils/lib/md4.c,
mldonkey-commits <=