diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-30 21:19:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-30 21:19:33 +0100 |
commit | 95542aeae39418b05b3c79768b8af2a41517e12c (patch) | |
tree | 16b93468ec732560c24050acb9afe15eeb537c75 /src/libcryptobox | |
parent | ec8ec4c6d0daf956f58a5c26d9a5bd8be082fa3f (diff) | |
download | rspamd-95542aeae39418b05b3c79768b8af2a41517e12c.tar.gz rspamd-95542aeae39418b05b3c79768b8af2a41517e12c.zip |
[CritFix] Fix usage of crypto_sign it should be crypto_sign_detached!
Issue: #3456
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/cryptobox.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |