diff options
-rw-r--r-- | md5.h | 9 | ||||
-rw-r--r-- | md5c.c | 8 |
2 files changed, 8 insertions, 9 deletions
@@ -1,6 +1,7 @@ -#ifndef _MD5_H_ -#define _MD5_H_ +#ifndef MD5_H +#define MD5_H +#include "compiler.h" #include <inttypes.h> #define MD5_HASHBYTES 16 @@ -17,7 +18,5 @@ extern void MD5Update(MD5_CTX *context, unsigned char const *buf, extern void MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context); extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]); extern char * MD5End(MD5_CTX *, char *); -extern char * MD5File(const char *, char *); -extern char * MD5Data (const unsigned char *, unsigned int, char *); -#endif /* !_MD5_H_ */ +#endif /* !MD5_H */ @@ -15,18 +15,18 @@ * will fill a supplied 16-byte array with the digest. */ -#include <string.h> /* for memcpy() */ #include "md5.h" +#include <string.h> /* for memcpy() */ -#if __BYTE_ORDER == 1234 +#ifdef WORDS_LITTEENDIAN #define byteReverse(buf, len) /* Nothing */ #else -void byteReverse(unsigned char *buf, unsigned longs); +static void byteReverse(unsigned char *buf, unsigned longs); /* * Note: this code is harmless on little-endian machines. */ -void byteReverse(unsigned char *buf, unsigned longs) +static void byteReverse(unsigned char *buf, unsigned longs) { uint32_t t; do { |