Initial commit

This commit is contained in:
Brian Harris
2012-11-26 12:58:24 -06:00
parent a5214f79ef
commit 5016f605b8
1115 changed files with 587266 additions and 0 deletions

24
neo/idlib/hashing/MD5.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef __MD5_H__
#define __MD5_H__
/*
===============================================================================
Calculates a checksum for a block of data
using the MD5 message-digest algorithm.
===============================================================================
*/
struct MD5_CTX {
unsigned int state[4];
unsigned int bits[2];
unsigned char in[64];
};
void MD5_Init( MD5_CTX *ctx );
void MD5_Update( MD5_CTX *context, unsigned char const *input, size_t inputLen );
void MD5_Final( MD5_CTX *context, unsigned char digest[16] );
unsigned int MD5_BlockChecksum( const void *data, size_t length );
#endif /* !__MD5_H__ */