diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:46 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:46 +0200 |
| commit | eab0b1c2d649fa16707b24cd2a91f195078167b0 (patch) | |
| tree | e960f351655305e3911089ff75677caef364a280 /src/contrib/crypt/md5.h | |
| parent | 07706f56cd421bf8b101a5c0fe44674d36e161a0 (diff) | |
tagging ychat-0.7.2ychat-0.7.2
Diffstat (limited to 'src/contrib/crypt/md5.h')
| -rw-r--r-- | src/contrib/crypt/md5.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/contrib/crypt/md5.h b/src/contrib/crypt/md5.h index 19c782c..0b9d532 100644 --- a/src/contrib/crypt/md5.h +++ b/src/contrib/crypt/md5.h @@ -1,25 +1,22 @@ #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]); |
