diff options
Diffstat (limited to 'whrlpool.cpp')
-rw-r--r-- | whrlpool.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/whrlpool.cpp b/whrlpool.cpp index f2462f2c..7f3195b2 100644 --- a/whrlpool.cpp +++ b/whrlpool.cpp @@ -64,8 +64,7 @@ void Whirlpool_TestInstantiations() void Whirlpool::InitState(HashWordType *state) { - state[0] = state[1] = state[2] = state[3] = - state[4] = state[5] = state[6] = state[7] = 0; + memset(state, 0, 8*sizeof(state[0])); } void Whirlpool::TruncatedFinal(byte *hash, unsigned int size) |