Browse Source

[Minor] Use embedded hcacha for sodium compat

tags/2.0
Vsevolod Stakhov 5 years ago
parent
commit
6acd32efb1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libcryptobox/cryptobox.c

+ 1
- 1
src/libcryptobox/cryptobox.c View 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);

Loading…
Cancel
Save