aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/curve25519.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-20 11:02:52 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-22 18:32:48 +0100
commit7a5ce4ea474ee910bf247d36ccf8f04fffacfd91 (patch)
treeeaa91b097e7ce740fa135db745dab73c208a4953 /src/crypto/curve25519.c
parentchacha20poly1305: import x86_64 primitives from OpenSSL (diff)
downloadwireguard-monolithic-historical-7a5ce4ea474ee910bf247d36ccf8f04fffacfd91.tar.xz
wireguard-monolithic-historical-7a5ce4ea474ee910bf247d36ccf8f04fffacfd91.zip
chacha20poly1305: import ARM primitives from OpenSSL
ARMv4-ARMv8, with NEON for ARMv7 and ARMv8.
Diffstat (limited to 'src/crypto/curve25519.c')
-rw-r--r--src/crypto/curve25519.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/curve25519.c b/src/crypto/curve25519.c
index ddabfdf..38b6488 100644
--- a/src/crypto/curve25519.c
+++ b/src/crypto/curve25519.c
@@ -196,7 +196,7 @@ static void curve25519_sandy2x_base(u8 pub[CURVE25519_POINT_SIZE], const u8 secr
#include <asm/hwcap.h>
#include <asm/neon.h>
#include <asm/simd.h>
-asmlinkage void curve25519_asm_neon(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_POINT_SIZE], const u8 basepoint[CURVE25519_POINT_SIZE]);
+asmlinkage void curve25519_neon(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_POINT_SIZE], const u8 basepoint[CURVE25519_POINT_SIZE]);
static bool curve25519_use_neon __read_mostly;
void __init curve25519_fpu_init(void)
{
@@ -1473,7 +1473,7 @@ bool curve25519(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_P
#if IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && defined(CONFIG_ARM)
if (curve25519_use_neon && may_use_simd()) {
kernel_neon_begin();
- curve25519_asm_neon(mypublic, secret, basepoint);
+ curve25519_neon(mypublic, secret, basepoint);
kernel_neon_end();
} else
#endif
@@ -1652,7 +1652,7 @@ bool curve25519(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_P
#if IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && defined(CONFIG_ARM)
if (curve25519_use_neon && may_use_simd()) {
kernel_neon_begin();
- curve25519_asm_neon(mypublic, secret, basepoint);
+ curve25519_neon(mypublic, secret, basepoint);
kernel_neon_end();
} else
#endif