From 57c484a02924a5d440d8b93723fc12febd430604 Mon Sep 17 00:00:00 2001
From: miod <>
Date: Thu, 1 May 2014 20:15:06 +0000
Subject: Enable use of the assembly code for AES, BN, SHA1, SHA256 and SHA512.

---
 src/lib/libcrypto/arch/mips64/Makefile.inc        | 36 +++++++++++++++++++++++
 src/lib/libcrypto/crypto/arch/mips64/Makefile.inc | 36 +++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 src/lib/libcrypto/arch/mips64/Makefile.inc
 create mode 100644 src/lib/libcrypto/crypto/arch/mips64/Makefile.inc

(limited to 'src/lib')

diff --git a/src/lib/libcrypto/arch/mips64/Makefile.inc b/src/lib/libcrypto/arch/mips64/Makefile.inc
new file mode 100644
index 0000000000..eacac79e63
--- /dev/null
+++ b/src/lib/libcrypto/arch/mips64/Makefile.inc
@@ -0,0 +1,36 @@
+# $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:15:06 miod Exp $
+
+# mips64-specific libcrypto build rules
+
+# aes
+SRCS+= aes_cbc.c 
+CFLAGS+= -DAES_ASM
+SSLASM+= aes aes-mips aes-mips
+# bf
+SRCS+= bf_enc.c
+# bn
+SSLASM+= bn mips bn-mips
+SSLASM+= bn mips-mont mips-mont
+# des
+SRCS+= des_enc.c fcrypt_b.c
+# rc4
+SRCS+= rc4_enc.c rc4_skey.c
+## rc5
+#SRCS+= rc5_enc.c 
+# sha
+SSLASM+= sha sha1-mips sha1-mips
+CFLAGS+= -DSHA1_ASM
+SSLASM+= sha sha512-mips sha256-mips
+CFLAGS+= -DSHA256_ASM
+SSLASM+= sha sha512-mips sha512-mips
+CFLAGS+= -DSHA512_ASM
+# whrlpool
+SRCS+= wp_block.c
+
+.for dir src dst in ${SSLASM}
+SRCS+=	${dst}.S
+GENERATED+=${dst}.S
+${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl
+	/usr/bin/env CC=${CC} /usr/bin/perl \
+		${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET}
+.endfor
diff --git a/src/lib/libcrypto/crypto/arch/mips64/Makefile.inc b/src/lib/libcrypto/crypto/arch/mips64/Makefile.inc
new file mode 100644
index 0000000000..eacac79e63
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/mips64/Makefile.inc
@@ -0,0 +1,36 @@
+# $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:15:06 miod Exp $
+
+# mips64-specific libcrypto build rules
+
+# aes
+SRCS+= aes_cbc.c 
+CFLAGS+= -DAES_ASM
+SSLASM+= aes aes-mips aes-mips
+# bf
+SRCS+= bf_enc.c
+# bn
+SSLASM+= bn mips bn-mips
+SSLASM+= bn mips-mont mips-mont
+# des
+SRCS+= des_enc.c fcrypt_b.c
+# rc4
+SRCS+= rc4_enc.c rc4_skey.c
+## rc5
+#SRCS+= rc5_enc.c 
+# sha
+SSLASM+= sha sha1-mips sha1-mips
+CFLAGS+= -DSHA1_ASM
+SSLASM+= sha sha512-mips sha256-mips
+CFLAGS+= -DSHA256_ASM
+SSLASM+= sha sha512-mips sha512-mips
+CFLAGS+= -DSHA512_ASM
+# whrlpool
+SRCS+= wp_block.c
+
+.for dir src dst in ${SSLASM}
+SRCS+=	${dst}.S
+GENERATED+=${dst}.S
+${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl
+	/usr/bin/env CC=${CC} /usr/bin/perl \
+		${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET}
+.endfor
-- 
cgit v1.2.3-55-g6feb