summaryrefslogtreecommitdiff
path: root/md5.h
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-05-28 19:16:37 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-05-28 19:16:37 +0200
commitc7344fa5ca42b3203ce7fc2ff8cb93b42bf78123 (patch)
treec4790500e80a2d34c4040ba21aae878a21223ee8 /md5.h
parent9316590e28c0087f65b220c492188871637aa424 (diff)
parent201e799f7a2fcba3af2c9214f25545460ef9b08a (diff)
downloadlibpam-pwdfile-c7344fa5ca42b3203ce7fc2ff8cb93b42bf78123.tar.gz
Merge tag 'v0.100' into debian
release 0.100 Conflicts: contrib/README.txt
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);