diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-09-08 07:27:51 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-09-08 07:27:51 +0000 |
commit | f2d19a262b35006f6bca0bba930af46ffc87c549 (patch) | |
tree | 977b75ab74e99a8c0c3d42b931f58eaef84dc476 /src/util/crypto_hash.c | |
parent | 800ab2f7c124ffc584671326844481e516d35123 (diff) |
stuff
git-svn-id: https://gnunet.org/svn/gnunet@8965 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/util/crypto_hash.c')
-rw-r--r-- | src/util/crypto_hash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c index bc15113c64..0370d74fbe 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); |