aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/chacha20/ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/chacha20/ref.c')
-rw-r--r--src/libcryptobox/chacha20/ref.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcryptobox/chacha20/ref.c b/src/libcryptobox/chacha20/ref.c
index bd6a44a82..905e76c83 100644
--- a/src/libcryptobox/chacha20/ref.c
+++ b/src/libcryptobox/chacha20/ref.c
@@ -228,8 +228,7 @@ hchacha_ref(const unsigned char key[32], const unsigned char iv[16], unsigned ch
void
chacha_clear_state_ref(chacha_state_internal *state) {
- void * (* volatile safe_memset)(void *s, int c, size_t n) = memset;
- safe_memset(state, 0, 48);
+ rspamd_explicit_memzero (state, 48);
}
void