From: Vsevolod Stakhov Date: Thu, 30 Jul 2020 20:19:06 +0000 (+0100) Subject: [CritFix] Fix usage of crypto_sign it should be crypto_sign_detached! X-Git-Tag: 2.6~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95542aeae39418b05b3c79768b8af2a41517e12c;p=thirdparty%2Frspamd.git [CritFix] Fix usage of crypto_sign it should be crypto_sign_detached! Issue: #3456 --- diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 4ef366b330..cfb1ca4611 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -467,7 +467,7 @@ rspamd_cryptobox_sign (guchar *sig, unsigned long long *siglen_p, enum rspamd_cryptobox_mode mode) { if (G_LIKELY (mode == RSPAMD_CRYPTOBOX_MODE_25519)) { - crypto_sign (sig, siglen_p, m, mlen, sk); + crypto_sign_detached (sig, siglen_p, m, mlen, sk); } else { #ifndef HAVE_USABLE_OPENSSL