From: Joel Rosdahl Date: Thu, 3 Jun 2010 18:24:44 +0000 (+0200) Subject: Add a crude hash calculation debugging facility X-Git-Tag: v3.0~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0eec63e2089e96fa4125852fe6ebecaf9fa57930;p=thirdparty%2Fccache.git Add a crude hash calculation debugging facility --- diff --git a/mdfour.c b/mdfour.c index 5fee4f0e3..78fca282d 100644 --- a/mdfour.c +++ b/mdfour.c @@ -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) {