Add a crude hash calculation debugging facility

This commit is contained in:
Joel Rosdahl 2010-06-03 20:24:44 +02:00
parent 5f51702442
commit 0eec63e208

View File

@ -139,6 +139,12 @@ void mdfour_update(struct mdfour *md, const unsigned char *in, size_t n)
{
uint32_t M[16];
#ifdef CCACHE_DEBUG_HASH
FILE* f = fopen("ccache-debug-hash.bin", "a");
fwrite(in, 1, n, f);
fclose(f);
#endif
m = md;
if (in == NULL) {