From be53f76279d158aa3e5fb2960f9ae4da52201857 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Sat, 11 May 2013 01:43:50 +0200 Subject: replace self-defined uint32 with uint32_t from stdint.h unsigned int is not guaranteed to have 32 bits --- md5.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'md5.h') diff --git a/md5.h b/md5.h index 103f168..b48edea 100644 --- a/md5.h +++ b/md5.h @@ -2,22 +2,22 @@ #ifndef MD5_H #define MD5_H -typedef unsigned int uint32; +#include struct MD5Context { - uint32 buf[4]; - uint32 bits[2]; + uint32_t buf[4]; + uint32_t bits[2]; unsigned char in[64]; }; void GoodMD5Init(struct MD5Context *); void GoodMD5Update(struct MD5Context *, unsigned const char *, unsigned); void GoodMD5Final(unsigned char digest[16], struct MD5Context *); -void GoodMD5Transform(uint32 buf[4], uint32 const in[16]); +void GoodMD5Transform(uint32_t buf[4], uint32_t const in[16]); void BrokenMD5Init(struct MD5Context *); void BrokenMD5Update(struct MD5Context *, unsigned const char *, unsigned); void BrokenMD5Final(unsigned char digest[16], struct MD5Context *); -void BrokenMD5Transform(uint32 buf[4], uint32 const in[16]); +void BrokenMD5Transform(uint32_t buf[4], uint32_t const in[16]); char *Goodcrypt_md5(const char *pw, const char *salt); char *Brokencrypt_md5(const char *pw, const char *salt); -- cgit v1.2.3