summaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/cryptobox.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-08 13:32:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-08 13:32:53 +0100
commit4cc70328cf728643450ad25eb4c8718942a19e1d (patch)
treed724a566b7e4dbcbecf6118194f05f854389976e /src/libcryptobox/cryptobox.c
parentf33dfad9746ac11d187fc2b1d6330106c8d59d17 (diff)
downloadrspamd-4cc70328cf728643450ad25eb4c8718942a19e1d.tar.gz
rspamd-4cc70328cf728643450ad25eb4c8718942a19e1d.zip
Use new siphash implementation.
Diffstat (limited to 'src/libcryptobox/cryptobox.c')
-rw-r--r--src/libcryptobox/cryptobox.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index 847f005f1..e1a3a2b8f 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -243,3 +243,12 @@ rspamd_cryptobox_encrypt_inplace (guchar *data, gsize len,
rspamd_cryptobox_encrypt_nm_inplace (data, len, nonce, nm, sig);
rspamd_explicit_memzero (nm, sizeof (nm));
}
+
+
+void
+rspamd_cryptobox_siphash (unsigned char *out, const unsigned char *in,
+ unsigned long long inlen,
+ const rspamd_sipkey_t k)
+{
+ siphash24 (out, in, inlen, k);
+}