projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97ae3eb
)
stuff
author
Christian Grothoff
<christian@grothoff.org>
Tue, 8 Sep 2009 07:27:51 +0000
(07:27 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 8 Sep 2009 07:27:51 +0000
(07:27 +0000)
src/util/crypto_hash.c
patch
|
blob
|
history
diff --git
a/src/util/crypto_hash.c
b/src/util/crypto_hash.c
index bc15113c64037481fa9fd0aca08f06394e03b2a7..0370d74fbe0b6cf87e2648584907520ca5ccf411 100644
(file)
--- 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);