X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=mdfour.h;h=5a141755a2cb396f80ff2369fc6086470c00101b;hb=refs%2Fheads%2FCloudwalk%2Ffix-353;hp=3ef654c87e157456fe4e41a0899f9a24d5056a7d;hpb=1ea860909ea670451b5200ccd30aa19241cd081a;p=xonotic%2Fdarkplaces.git diff --git a/mdfour.h b/mdfour.h index 3ef654c8..5a141755 100644 --- a/mdfour.h +++ b/mdfour.h @@ -28,26 +28,16 @@ #ifndef _MDFOUR_H #define _MDFOUR_H -#ifndef int32 -#define int32 int -#endif +#include -#if SIZEOF_INT > 4 -#define LARGE_INT32 -#endif - -#ifndef uint32 -#define uint32 unsigned int32 -#endif - -struct mdfour { - uint32 A, B, C, D; - uint32 totalN; +struct mdfour_s { + uint32_t A, B, C, D; + uint32_t totalN; }; -void mdfour_begin(struct mdfour *md); // old: MD4Init -void mdfour_update(struct mdfour *md, const unsigned char *in, int n); //old: MD4Update -void mdfour_result(struct mdfour *md, unsigned char *out); // old: MD4Final +void mdfour_begin(struct mdfour_s *md); // old: MD4Init +void mdfour_update(struct mdfour_s *md, const unsigned char *in, int n); //old: MD4Update +void mdfour_result(struct mdfour_s *md, unsigned char *out); // old: MD4Final void mdfour(unsigned char *out, const unsigned char *in, int n); #endif // _MDFOUR_H