summaryrefslogtreecommitdiff
path: root/md5.h
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-05-11 01:43:50 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-05-12 18:44:18 +0200
commitbe53f76279d158aa3e5fb2960f9ae4da52201857 (patch)
tree3141fc41a434875f3c833dafc9f3d641a45f5a0f /md5.h
parentce9367b3202477b3cc914cabfe0cb2a856f3a51d (diff)
downloadlibpam-pwdfile-be53f76279d158aa3e5fb2960f9ae4da52201857.tar.gz
replace self-defined uint32 with uint32_t from stdint.h
unsigned int is not guaranteed to have 32 bits
Diffstat (limited to 'md5.h')
-rw-r--r--md5.h10
1 files changed, 5 insertions, 5 deletions
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 <stdint.h>
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);