projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c45f8
)
Use properly local variables for thread-safety.
author
Bodo Möller
<bodo@openssl.org>
Tue, 22 Dec 2009 11:52:15 +0000
(11:52 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Tue, 22 Dec 2009 11:52:15 +0000
(11:52 +0000)
Submitted by: Martin Rex
engines/ccgost/gosthash.c
patch
|
blob
|
history
diff --git
a/engines/ccgost/gosthash.c
b/engines/ccgost/gosthash.c
index 6365c699982a4eac5dcf9c4f2cdfaf561190ed05..a5c0662ffc32f35ff7d3f8d812d3b8d8fa98b302 100644
(file)
--- a/
engines/ccgost/gosthash.c
+++ b/
engines/ccgost/gosthash.c
@@
-86,7
+86,7
@@
static void xor_blocks (byte *result,const byte *a,const byte *b,size_t len)
*/
static int hash_step(gost_ctx *c,byte *H,const byte *M)
{
-
static
byte U[32],W[32],V[32],S[32],Key[32];
+ byte U[32],W[32],V[32],S[32],Key[32];
int i;
/* Compute first key */
xor_blocks(W,H,M,32);
@@
-253,4
+253,3
@@
int finish_hash(gost_hash_ctx *ctx,byte *hashval)
memcpy(hashval,H,32);
return 1;
}
-