diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-09-01 20:37:23 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-01 20:37:23 -0400 |
commit | d2ad6751d5c8c8f682aad3a0a4deeb8134c07a8f (patch) | |
tree | 528d059ac915c371c5ea9a5ef676c9b4bfd52ae6 /sha.cpp | |
parent | 602fa05825f9fa9ec892275c2e95565354047918 (diff) | |
download | cryptopp-git-d2ad6751d5c8c8f682aad3a0a4deeb8134c07a8f.tar.gz |
Clear uninitialized variable warnings under xlC
Diffstat (limited to 'sha.cpp')
-rw-r--r-- | sha.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 */
|