diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-05 14:47:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-05 14:47:25 +0000 |
commit | 1e0332c701c7ecc79c8ec2f94b2a2700a47b9133 (patch) | |
tree | c3fe11a950c1e2784974d11befb96b08b626f10d /src/libcryptobox/ed25519 | |
parent | ce62c022fc1d51a8a3f042ac08e7b48820d401a8 (diff) | |
download | rspamd-1e0332c701c7ecc79c8ec2f94b2a2700a47b9133.tar.gz rspamd-1e0332c701c7ecc79c8ec2f94b2a2700a47b9133.zip |
Add flexible x25519/nist modes for cryptobox
Diffstat (limited to 'src/libcryptobox/ed25519')
-rw-r--r-- | src/libcryptobox/ed25519/ed25519.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcryptobox/ed25519/ed25519.c b/src/libcryptobox/ed25519/ed25519.c index e5355a673..b022c16cc 100644 --- a/src/libcryptobox/ed25519/ed25519.c +++ b/src/libcryptobox/ed25519/ed25519.c @@ -269,7 +269,8 @@ ed25519_test (const ed25519_impl_t *impl) impl->sign (sig, NULL, msg, strlen (test_vectors[i].message) / 2, joint_sk); - if (memcmp (sig, expected, rspamd_cryptobox_signature_bytes ()) != 0) { + if (memcmp (sig, expected, + rspamd_cryptobox_signature_bytes (RSPAMD_CRYPTOBOX_MODE_25519)) != 0) { return false; } |