00001 #ifndef MD5_H 00002 #define MD5_H 00003 00004 #define uint8 unsigned char 00005 #define uint32 unsigned long int 00006 #define uint64 unsigned long long int 00007 00008 struct md5_context 00009 { 00010 uint64 total; 00011 uint32 state[4]; 00012 uint8 buffer[64]; 00013 }; 00014 00015 void md5_starts( struct md5_context *ctx ); 00016 void md5_update( struct md5_context *ctx, uint8 *input, uint32 length ); 00017 void md5_finish( struct md5_context *ctx, uint8 digest[16] ); 00018 00019 #endif /* MD5_H */ 00020 00021
1.5.2