summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authormiod <>2014-05-01 20:15:06 +0000
committermiod <>2014-05-01 20:15:06 +0000
commit57c484a02924a5d440d8b93723fc12febd430604 (patch)
tree96316dcf4fd3b912db88e93c76f7445cc7b9e665 /src/lib
parenta6c5862b9505a86f8d6f76d0f4cf1ec8c18b63d6 (diff)
downloadopenbsd-57c484a02924a5d440d8b93723fc12febd430604.tar.gz
openbsd-57c484a02924a5d440d8b93723fc12febd430604.tar.bz2
openbsd-57c484a02924a5d440d8b93723fc12febd430604.zip
Enable use of the assembly code for AES, BN, SHA1, SHA256 and SHA512.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/arch/mips64/Makefile.inc36
-rw-r--r--src/lib/libcrypto/crypto/arch/mips64/Makefile.inc36
2 files changed, 72 insertions, 0 deletions
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 @@
1# $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:15:06 miod Exp $
2
3# mips64-specific libcrypto build rules
4
5# aes
6SRCS+= aes_cbc.c
7CFLAGS+= -DAES_ASM
8SSLASM+= aes aes-mips aes-mips
9# bf
10SRCS+= bf_enc.c
11# bn
12SSLASM+= bn mips bn-mips
13SSLASM+= bn mips-mont mips-mont
14# des
15SRCS+= des_enc.c fcrypt_b.c
16# rc4
17SRCS+= rc4_enc.c rc4_skey.c
18## rc5
19#SRCS+= rc5_enc.c
20# sha
21SSLASM+= sha sha1-mips sha1-mips
22CFLAGS+= -DSHA1_ASM
23SSLASM+= sha sha512-mips sha256-mips
24CFLAGS+= -DSHA256_ASM
25SSLASM+= sha sha512-mips sha512-mips
26CFLAGS+= -DSHA512_ASM
27# whrlpool
28SRCS+= wp_block.c
29
30.for dir src dst in ${SSLASM}
31SRCS+= ${dst}.S
32GENERATED+=${dst}.S
33${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl
34 /usr/bin/env CC=${CC} /usr/bin/perl \
35 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET}
36.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 @@
1# $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:15:06 miod Exp $
2
3# mips64-specific libcrypto build rules
4
5# aes
6SRCS+= aes_cbc.c
7CFLAGS+= -DAES_ASM
8SSLASM+= aes aes-mips aes-mips
9# bf
10SRCS+= bf_enc.c
11# bn
12SSLASM+= bn mips bn-mips
13SSLASM+= bn mips-mont mips-mont
14# des
15SRCS+= des_enc.c fcrypt_b.c
16# rc4
17SRCS+= rc4_enc.c rc4_skey.c
18## rc5
19#SRCS+= rc5_enc.c
20# sha
21SSLASM+= sha sha1-mips sha1-mips
22CFLAGS+= -DSHA1_ASM
23SSLASM+= sha sha512-mips sha256-mips
24CFLAGS+= -DSHA256_ASM
25SSLASM+= sha sha512-mips sha512-mips
26CFLAGS+= -DSHA512_ASM
27# whrlpool
28SRCS+= wp_block.c
29
30.for dir src dst in ${SSLASM}
31SRCS+= ${dst}.S
32GENERATED+=${dst}.S
33${dst}.S: ${LCRYPTO_SRC}/${dir}/asm/${src}.pl
34 /usr/bin/env CC=${CC} /usr/bin/perl \
35 ${LCRYPTO_SRC}/${dir}/asm/${src}.pl 64 ${.TARGET} > ${.TARGET}
36.endfor