X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fmd5.c;h=43052b9e9bc28c8e8d28f90d84b722e7ecaca2f2;hb=c5fbc7b75705d1f7a322ad73e6055284a3b94e73;hp=32d2602020395b0d28e8c7b4940328118f02a2af;hpb=5b53087fa5a07ff89d34cf3bf3bc1b28809f05c2;p=libucw.git diff --git a/lib/md5.c b/lib/md5.c index 32d26020..43052b9e 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -15,10 +15,12 @@ * will fill a supplied 16-byte array with the digest. */ -#include /* for memcpy() */ +#include "lib/lib.h" #include "lib/md5.h" -#ifndef HIGHFIRST +#include /* for memcpy() */ + +#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)