summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-05-05 04:44:54 +0000
committermiod <miod@openbsd.org>2014-05-05 04:44:54 +0000
commit52885a610330d6bb17f10a625791a0cebc4edc8e (patch)
treeebe7f94f0ac20d46fbcfb93fdafac71a96dcbef3
parentRedirecting stderr to /dev/null suppresses all errors. Instead use (diff)
downloadwireguard-openbsd-52885a610330d6bb17f10a625791a0cebc4edc8e.tar.xz
wireguard-openbsd-52885a610330d6bb17f10a625791a0cebc4edc8e.zip
Enable assembler code for DES. Assembler code for BN is commented out as it
uses the `umul' and `udiv' instructions directly, which are not supported on v7 processors.
-rw-r--r--lib/libcrypto/arch/sparc/Makefile.inc27
-rw-r--r--lib/libcrypto/crypto/arch/sparc/Makefile.inc27
2 files changed, 54 insertions, 0 deletions
diff --git a/lib/libcrypto/arch/sparc/Makefile.inc b/lib/libcrypto/arch/sparc/Makefile.inc
new file mode 100644
index 00000000000..54dc3187376
--- /dev/null
+++ b/lib/libcrypto/arch/sparc/Makefile.inc
@@ -0,0 +1,27 @@
+# $OpenBSD: Makefile.inc,v 1.1 2014/05/05 04:44:54 miod Exp $
+
+# sparc-specific libcrypto build rules
+
+# aes
+SRCS+= aes_core.c aes_cbc.c
+# bf
+SRCS+= bf_enc.c
+# bn
+.if 0 # uses `umul' and `udiv' instructions
+SRCS+= sparcv8.S
+.PATH: ${LCRYPTO_SRC}/bn/asm
+.else
+SRCS+= bn_asm.c
+.endif
+# des
+SRCS+= fcrypt_b.c
+SRCS+= des_enc-sparc.S
+GENERATED+= des_enc-sparc.S
+des_enc-sparc.S: ${LCRYPTO_SRC}/des/asm/des_enc.m4
+ m4 ${LCRYPTO_SRC}/des/asm/des_enc.m4 > ${.TARGET}
+# rc4
+SRCS+= rc4_enc.c rc4_skey.c
+## rc5
+#SRCS+= rc5_enc.c
+# whrlpool
+SRCS+= wp_block.c
diff --git a/lib/libcrypto/crypto/arch/sparc/Makefile.inc b/lib/libcrypto/crypto/arch/sparc/Makefile.inc
new file mode 100644
index 00000000000..54dc3187376
--- /dev/null
+++ b/lib/libcrypto/crypto/arch/sparc/Makefile.inc
@@ -0,0 +1,27 @@
+# $OpenBSD: Makefile.inc,v 1.1 2014/05/05 04:44:54 miod Exp $
+
+# sparc-specific libcrypto build rules
+
+# aes
+SRCS+= aes_core.c aes_cbc.c
+# bf
+SRCS+= bf_enc.c
+# bn
+.if 0 # uses `umul' and `udiv' instructions
+SRCS+= sparcv8.S
+.PATH: ${LCRYPTO_SRC}/bn/asm
+.else
+SRCS+= bn_asm.c
+.endif
+# des
+SRCS+= fcrypt_b.c
+SRCS+= des_enc-sparc.S
+GENERATED+= des_enc-sparc.S
+des_enc-sparc.S: ${LCRYPTO_SRC}/des/asm/des_enc.m4
+ m4 ${LCRYPTO_SRC}/des/asm/des_enc.m4 > ${.TARGET}
+# rc4
+SRCS+= rc4_enc.c rc4_skey.c
+## rc5
+#SRCS+= rc5_enc.c
+# whrlpool
+SRCS+= wp_block.c