diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 14:47:23 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 14:47:23 +0000 |
commit | 7e98475477b4579c87bb3d535776c36a31143502 (patch) | |
tree | 50067247f34c2089eb98c9cd53049453afd5a6b0 /src/libcryptobox | |
parent | 91e5c50dc434293dc778919d35f2d8a1c961d1b4 (diff) | |
download | rspamd-7e98475477b4579c87bb3d535776c36a31143502.tar.gz rspamd-7e98475477b4579c87bb3d535776c36a31143502.zip |
Cleanup blake2 state on final iteration
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/blake2/blake2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcryptobox/blake2/blake2.c b/src/libcryptobox/blake2/blake2.c index ecc465b35..7d3b281f4 100644 --- a/src/libcryptobox/blake2/blake2.c +++ b/src/libcryptobox/blake2/blake2.c @@ -242,6 +242,7 @@ blake2b_final (blake2b_state *S, unsigned char *hash) state->leftover, BLAKE2B_STRIDE_NONE); blake2b_store_hash (state, hash); + rspamd_explicit_memzero (state, sizeof (*state)); } /* one-shot hash inlen bytes from in */ |