]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[CritFix] Fix usage of crypto_sign it should be crypto_sign_detached!
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 30 Jul 2020 20:19:06 +0000 (21:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 30 Jul 2020 20:19:33 +0000 (21:19 +0100)
Issue: #3456

src/libcryptobox/cryptobox.c

index 4ef366b3302410345b37b6ab803864be449e56b8..cfb1ca4611529e34c97f2f14e6443c22b1cbee90 100644 (file)
@@ -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