From 0eec63e2089e96fa4125852fe6ebecaf9fa57930 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 3 Jun 2010 20:24:44 +0200 Subject: [PATCH] Add a crude hash calculation debugging facility --- mdfour.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mdfour.c b/mdfour.c index 5fee4f0..78fca28 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) {