commit 95542ae: [CritFix] Fix usage of crypto_sign it should be crypto_sign_detached!

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jul 30 20:21:09 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-30 21:19:06 +0100
URL: https://github.com/rspamd/rspamd/commit/95542aeae39418b05b3c79768b8af2a41517e12c (HEAD -> master)

[CritFix] Fix usage of crypto_sign it should be crypto_sign_detached!
Issue: #3456

---
 src/libcryptobox/cryptobox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index 4ef366b33..cfb1ca461 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


More information about the Commits mailing list