summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc/curve25519/curve25519.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-17 18:55:12 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-17 23:40:54 +0200
commit1906c279fbe3420e31a5a48a19b6daac5fbf1904 (patch)
tree7eed52ac4d5c9abc0fa67392d11f681c50cf46e6 /src/crypto/zinc/curve25519/curve25519.c
parent61450db1388ad8ef0936c114da8cbd2192fc2dc6 (diff)
crypto: do not use -include trick
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/curve25519/curve25519.c')
-rw-r--r--src/crypto/zinc/curve25519/curve25519.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crypto/zinc/curve25519/curve25519.c b/src/crypto/zinc/curve25519/curve25519.c
index a20b295..7d19fb9 100644
--- a/src/crypto/zinc/curve25519/curve25519.c
+++ b/src/crypto/zinc/curve25519/curve25519.c
@@ -17,7 +17,11 @@
#include <linux/random.h>
#include <crypto/algapi.h>
-#ifndef HAVE_CURVE25519_ARCH_IMPLEMENTATION
+#if defined(CONFIG_ZINC_ARCH_X86_64)
+#include "curve25519-x86_64-glue.h"
+#elif defined(CONFIG_ZINC_ARCH_ARM)
+#include "curve25519-arm-glue.h"
+#else
void __init curve25519_fpu_init(void)
{
}