diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-22 14:05:11 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-22 14:05:11 +0000 |
commit | 8ebb57a8352974d1236582ceabab44806fa8e93e (patch) | |
tree | e959143c77828d5ff638fed673534a63a681e70d /src/libcryptobox/cryptobox.c | |
parent | e0e7601c62ed7f06b4cc47288a29e77f87a49d59 (diff) | |
download | rspamd-8ebb57a8352974d1236582ceabab44806fa8e93e.tar.gz rspamd-8ebb57a8352974d1236582ceabab44806fa8e93e.zip |
Faster curve25519 key generation via Edwards isomorphism
Diffstat (limited to 'src/libcryptobox/cryptobox.c')
-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 038c94adb..37b8704df 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -255,7 +255,7 @@ rspamd_cryptobox_keypair (rspamd_pk_t pk, rspamd_sk_t sk) sk[31] &= 127; sk[31] |= 64; - curve25519 (pk, sk, curve25519_basepoint); + curve25519_base (pk, sk); } else { #ifndef HAVE_USABLE_OPENSSL |