7d0656145179566289653fb49bf66a60873fe282 angie Wed Oct 9 10:39:22 2013 -0700 Added md5HexForString. diff --git src/inc/md5.h src/inc/md5.h index 3e08234..4a3c409 100644 --- src/inc/md5.h +++ src/inc/md5.h @@ -15,21 +15,24 @@ void md5_starts( struct md5_context *ctx ); void md5_update( struct md5_context *ctx, uint8 *input, uint32 length ); void md5_finish( struct md5_context *ctx, uint8 digest[16] ); #define MD5READBUFSIZE 256 * 1024 void md5ForFile(char * fileName, unsigned char md5[16]); /* read f in buffer pieces and update md5 hash */ char *md5ToHex(unsigned char md5[16]); /* return md5 as hex string */ char *md5HexForFile(char * fileName); /* read f in buffer pieces and return hex string for md5sum */ +char *md5HexForString(char *string); +/* Return hex string for md5sum of string. */ + struct hash *md5FileHash(char *fileName); /* Read md5sum file and return a hash keyed by file names with md5sum values. */ #endif /* MD5_H */