aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/cryptobox.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-07 16:08:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-07 16:08:12 +0000
commit088a15bf1d41164dc90794764422c96c6b0d9578 (patch)
tree0417ae54a52457da25004528554f446582f16f2f /src/libcryptobox/cryptobox.c
parentca93090f76b1c4b5536489d6c42fc983802b4c49 (diff)
downloadrspamd-088a15bf1d41164dc90794764422c96c6b0d9578.tar.gz
rspamd-088a15bf1d41164dc90794764422c96c6b0d9578.zip
Use libcryptobox in http.
Diffstat (limited to 'src/libcryptobox/cryptobox.c')
-rw-r--r--src/libcryptobox/cryptobox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index 62ba3a907..b2ec6aec8 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -145,6 +145,9 @@ void rspamd_cryptobox_encrypt_nm_inplace (guchar *data, gsize len,
poly1305_init (&mac_ctx, subkey);
poly1305_update (&mac_ctx, data, len);
poly1305_finish (&mac_ctx, sig);
+
+ rspamd_explicit_memzero (&mac_ctx, sizeof (mac_ctx));
+ rspamd_explicit_memzero (subkey, sizeof (subkey));
}
gboolean