From 7e98475477b4579c87bb3d535776c36a31143502 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 29 Jan 2016 14:47:23 +0000 Subject: Cleanup blake2 state on final iteration --- src/libcryptobox/blake2/blake2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libcryptobox') 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 */ -- cgit v1.2.3