aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/blake2/blake2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/blake2/blake2.c')
-rw-r--r--src/libcryptobox/blake2/blake2.c1
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 */