]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Use embedded hcacha for sodium compat
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jul 2019 08:48:28 +0000 (09:48 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Jul 2019 14:18:17 +0000 (15:18 +0100)
src/libcryptobox/cryptobox.c

index 0a3939e5449fb985f16d6f80887e84bb80815ff8..0b4ebe614d566e47abc922648dfea9fea488c259 100644 (file)
@@ -440,7 +440,7 @@ rspamd_cryptobox_nm (rspamd_nm_t nm,
                g_assert (len == sizeof (s));
 
                /* Still do hchacha iteration since we are not using SHA1 KDF */
-               crypto_core_hchacha20 (nm, n0, s, NULL);
+               hchacha (s, n0, nm, 20);
 
                EC_KEY_free (lk);
                EC_POINT_free (ec_pub);