From: Vsevolod Stakhov Date: Fri, 12 Jul 2019 08:48:28 +0000 (+0100) Subject: [Minor] Use embedded hcacha for sodium compat X-Git-Tag: 2.0~603^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6acd32efb16da419e7b1c3a618e3cd3473d23e2e;p=thirdparty%2Frspamd.git [Minor] Use embedded hcacha for sodium compat --- diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 0a3939e544..0b4ebe614d 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -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);