summaryrefslogtreecommitdiff
path: root/src/contrib/crypt/md5.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:48 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:48 +0200
commitbf5fc4cc4a15e8e57db58c2e065e0f5adbd8e800 (patch)
tree855a98aec6d09361074c9725e08063553044ecfb /src/contrib/crypt/md5.h
parentd9c4a95345bd758e45196b29368bd2ff0f2790e3 (diff)
tagging ychat-0.7.9.3ychat-0.7.9.3
Diffstat (limited to 'src/contrib/crypt/md5.h')
-rw-r--r--src/contrib/crypt/md5.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/contrib/crypt/md5.h b/src/contrib/crypt/md5.h
index 0b9d532..19c782c 100644
--- a/src/contrib/crypt/md5.h
+++ b/src/contrib/crypt/md5.h
@@ -1,22 +1,25 @@
#ifndef MD5_H
#define MD5_H
-namespace md5 {
+namespace md5
+{
#ifdef __alpha
typedef unsigned int uint32;
#else
+
typedef unsigned long uint32;
#endif
-struct MD5Context {
- uint32 buf[4];
- uint32 bits[2];
- unsigned char in[64];
+struct MD5Context
+{
+ uint32 buf[4];
+ uint32 bits[2];
+ unsigned char in[64];
};
void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context, unsigned char const *buf,
- unsigned len);
+ unsigned len);
void MD5Final(unsigned char digest[16], struct MD5Context *context);
void MD5Transform(uint32 buf[4], uint32 const in[16]);