summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-15 16:31:53 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-15 16:31:53 -0800
commit991ee63b24d6ae6e73ebe1fa00b72c3b904303ca (patch)
tree415fed62b2ae658b15a627aebe36b45970f9a129 /src/crypto/zinc
parentcf5a4c700607ad05bff1e7f6587003ff65ea9146 (diff)
poly1305: only export neon symbols when in use
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc')
-rw-r--r--src/crypto/zinc/poly1305/poly1305-arm.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crypto/zinc/poly1305/poly1305-arm.pl b/src/crypto/zinc/poly1305/poly1305-arm.pl
index 30a2005..468f41b 100644
--- a/src/crypto/zinc/poly1305/poly1305-arm.pl
+++ b/src/crypto/zinc/poly1305/poly1305-arm.pl
@@ -53,8 +53,6 @@ $code.=<<___;
# define poly1305_init poly1305_init_arm
# define poly1305_blocks poly1305_blocks_arm
# define poly1305_emit poly1305_emit_arm
-.globl poly1305_emit_neon
-.globl poly1305_blocks_neon
#endif
.text
@@ -678,6 +676,9 @@ poly1305_init_neon:
ret @ bx lr
.size poly1305_init_neon,.-poly1305_init_neon
+#ifdef __KERNEL__
+.globl poly1305_blocks_neon
+#endif
.type poly1305_blocks_neon,%function
.align 5
poly1305_blocks_neon:
@@ -1164,6 +1165,9 @@ poly1305_blocks_neon:
ret @ bx lr
.size poly1305_blocks_neon,.-poly1305_blocks_neon
+#ifdef __KERNEL__
+.globl poly1305_emit_neon
+#endif
.type poly1305_emit_neon,%function
.align 5
poly1305_emit_neon: