DOOM-3-BFG

DOOM 3 BFG Edition
Log | Files | Refs

MD5.h (648B)


      1 #ifndef __MD5_H__
      2 #define __MD5_H__
      3 
      4 /*
      5 ===============================================================================
      6 
      7 	Calculates a checksum for a block of data
      8 	using the MD5 message-digest algorithm.
      9 
     10 ===============================================================================
     11 */
     12 struct MD5_CTX {
     13 	unsigned int	state[4];
     14 	unsigned int	bits[2];
     15 	unsigned char	in[64];
     16 };
     17 
     18 void MD5_Init( MD5_CTX *ctx );
     19 void MD5_Update( MD5_CTX *context, unsigned char const *input, size_t inputLen );
     20 void MD5_Final( MD5_CTX *context, unsigned char digest[16] );
     21 
     22 unsigned int MD5_BlockChecksum( const void *data, size_t length );
     23 
     24 #endif /* !__MD5_H__ */