diff options
author | Bodo Möller <bodo@openssl.org> | 2009-12-22 11:52:15 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2009-12-22 11:52:15 +0000 |
commit | 8bbd0e826cc798db4c5b06e95dbb961ad0552a78 (patch) | |
tree | 549b1e7a3af89bde411144e704a3183cb8b3d3a8 /engines/ccgost | |
parent | 40c45f86d4cd38a7c0150fa42fd2a2b445880f6c (diff) |
Use properly local variables for thread-safety.
Submitted by: Martin Rex
Diffstat (limited to 'engines/ccgost')
-rw-r--r-- | engines/ccgost/gosthash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/ccgost/gosthash.c b/engines/ccgost/gosthash.c index 6365c69998..a5c0662ffc 100644 --- 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; } - |