From: Vsevolod Stakhov Date: Fri, 29 Jan 2016 14:47:23 +0000 (+0000) Subject: Cleanup blake2 state on final iteration X-Git-Tag: 1.1.2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e98475477b4579c87bb3d535776c36a31143502;p=rspamd.git Cleanup blake2 state on final iteration --- 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 */