X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fmd5.c;h=ba8ff563e86d3267703c22dea97299750351d585;hb=b18ffb4f5ef9c5d83d7a3e28c37fabbb7df44be2;hp=d4f8535b3164c83b2851fa39296bc3e54b9fd200;hpb=03846211ba84582b133a985200502a39462dfe66;p=libucw.git diff --git a/lib/md5.c b/lib/md5.c index d4f8535b..ba8ff563 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -15,10 +15,12 @@ * will fill a supplied 16-byte array with the digest. */ +#include "lib/lib.h" +#include "lib/md5.h" + #include /* for memcpy() */ -#include "md5.h" -#ifndef HIGHFIRST +#ifdef CPU_LITTLE_ENDIAN #define byteReverse(buf, len) /* Nothing */ #else void byteReverse(unsigned char *buf, unsigned longs); @@ -102,7 +104,7 @@ void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len) } /* - * Final wrapup - pad to 64-byte boundary with the bit pattern + * Final wrapup - pad to 64-byte boundary with the bit pattern * 1 0* (64-bit count of bits processed, MSB-first) */ void MD5Final(unsigned char digest[16], struct MD5Context *ctx) @@ -165,7 +167,7 @@ void MD5Final(unsigned char digest[16], struct MD5Context *ctx) */ void MD5Transform(uint32 buf[4], uint32 const in[16]) { - register uint32 a, b, c, d; + uint32 a, b, c, d; a = buf[0]; b = buf[1];