From 7a476fa676b8aed1bcae2b261d1eecff644ca627 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 8 Sep 2009 07:27:51 +0000 Subject: [PATCH] stuff --- src/util/crypto_hash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c index bc15113c6..0370d74fb 100644 --- a/src/util/crypto_hash.c +++ b/src/util/crypto_hash.c @@ -283,7 +283,7 @@ sha512_final (struct sha512_ctx *sctx, unsigned char *hash) unsigned long long t2; int i, j; - t = i = j = 0; + i = j = 0; /* Save number of bits */ t = sctx->count[0]; @@ -352,6 +352,7 @@ sha512_final (struct sha512_ctx *sctx, unsigned char *hash) memset (sctx, 0, sizeof (struct sha512_ctx)); } + /** * Hash block of given size. * @@ -364,7 +365,7 @@ GNUNET_CRYPTO_hash (const void *block, unsigned int size, GNUNET_HashCode * ret) { struct sha512_ctx ctx; - + sha512_init (&ctx); sha512_update (&ctx, block, size); sha512_final (&ctx, (unsigned char *) ret); -- 2.25.1