summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-01 20:37:23 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-01 20:37:23 -0400
commitd2ad6751d5c8c8f682aad3a0a4deeb8134c07a8f (patch)
tree528d059ac915c371c5ea9a5ef676c9b4bfd52ae6 /sha.cpp
parent602fa05825f9fa9ec892275c2e95565354047918 (diff)
downloadcryptopp-git-d2ad6751d5c8c8f682aad3a0a4deeb8134c07a8f.tar.gz
Clear uninitialized variable warnings under xlC
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/sha.cpp b/sha.cpp
index 114b1b76..d384b1fd 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -261,7 +261,7 @@ ANONYMOUS_NAMESPACE_BEGIN
void SHA256_HashBlock_CXX(word32 *state, const word32 *data)
{
- word32 W[16], T[8];
+ word32 W[16]={0}, T[8];
/* Copy context->state[] to working vars */
memcpy(T, state, sizeof(T));
/* 64 operations, partially loop unrolled */
@@ -1043,8 +1043,7 @@ void SHA512_HashBlock_CXX(word64 *state, const word64 *data)
CRYPTOPP_ASSERT(state);
CRYPTOPP_ASSERT(data);
- word64 W[16];
- word64 T[8];
+ word64 W[16]={0}, T[8];
/* Copy context->state[] to working vars */
memcpy(T, state, sizeof(T));
/* 80 operations, partially loop unrolled */