summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authormiod <>2014-05-01 20:42:59 +0000
committermiod <>2014-05-01 20:42:59 +0000
commit3821531bfd38f99bdb3ad6179975b4659aba4505 (patch)
tree4b0d37d85ff39face070d380c7150dcfa6d28778 /src/lib
parentb50ffe0abb81ba96ef17c8c01090ec62b6cf6827 (diff)
downloadopenbsd-3821531bfd38f99bdb3ad6179975b4659aba4505.tar.gz
openbsd-3821531bfd38f99bdb3ad6179975b4659aba4505.tar.bz2
openbsd-3821531bfd38f99bdb3ad6179975b4659aba4505.zip
Enable use of the assembly code for BN (Montgomery) and SHA1.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/arch/alpha/Makefile.inc40
-rw-r--r--src/lib/libcrypto/crypto/arch/alpha/Makefile.inc40
2 files changed, 80 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/alpha/Makefile.inc b/src/lib/libcrypto/arch/alpha/Makefile.inc
new file mode 100644
index 0000000000..a13726e8cc
--- /dev/null
+++ b/src/lib/libcrypto/arch/alpha/Makefile.inc
@@ -0,0 +1,40 @@
1# $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:42:59 miod Exp $
2
3# alpha-specific libcrypto build rules
4
5# aes
6SRCS+= aes_core.c aes_cbc.c
7# bf
8SRCS+= bf_enc.c
9# bn
10SRCS+= bn_asm.c
11SSLASM+= bn alpha-mont
12# des
13SRCS+= des_enc.c fcrypt_b.c
14# modes
15CFLAGS+= -DGHASH_ASM
16SSLASM+= modes ghash-alpha
17# rc4
18SRCS+= rc4_enc.c rc4_skey.c
19## rc5
20#SRCS+= rc5_enc.c
21# sha
22CFLAGS+= -DSHA1_ASM
23SSLASM+= sha sha1-alpha
24# whrlpool
25SRCS+= wp_block.c
26
27.for dir f in ${SSLASM}
28SRCS+= ${f}.S
29GENERATED+=${f}.S
30${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl
31 /usr/bin/perl \
32 ${LCRYPTO_SRC}/${dir}/asm/${f}.pl > ${.TARGET}
33.endfor
34
35CFLAGS+= -DOPENSSL_CPUID_OBJ
36SRCS+= alphacpuid.S
37GENERATED+=alphacpuid.S
38alphacpuid.S: ${LCRYPTO_SRC}/alphacpuid.pl
39 /usr/bin/perl \
40 ${LCRYPTO_SRC}/alphacpuid.pl > ${.TARGET}
diff --git a/src/lib/libcrypto/crypto/arch/alpha/Makefile.inc b/src/lib/libcrypto/crypto/arch/alpha/Makefile.inc
new file mode 100644
index 0000000000..a13726e8cc
--- /dev/null
+++ b/src/lib/libcrypto/crypto/arch/alpha/Makefile.inc
@@ -0,0 +1,40 @@
1# $OpenBSD: Makefile.inc,v 1.1 2014/05/01 20:42:59 miod Exp $
2
3# alpha-specific libcrypto build rules
4
5# aes
6SRCS+= aes_core.c aes_cbc.c
7# bf
8SRCS+= bf_enc.c
9# bn
10SRCS+= bn_asm.c
11SSLASM+= bn alpha-mont
12# des
13SRCS+= des_enc.c fcrypt_b.c
14# modes
15CFLAGS+= -DGHASH_ASM
16SSLASM+= modes ghash-alpha
17# rc4
18SRCS+= rc4_enc.c rc4_skey.c
19## rc5
20#SRCS+= rc5_enc.c
21# sha
22CFLAGS+= -DSHA1_ASM
23SSLASM+= sha sha1-alpha
24# whrlpool
25SRCS+= wp_block.c
26
27.for dir f in ${SSLASM}
28SRCS+= ${f}.S
29GENERATED+=${f}.S
30${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl
31 /usr/bin/perl \
32 ${LCRYPTO_SRC}/${dir}/asm/${f}.pl > ${.TARGET}
33.endfor
34
35CFLAGS+= -DOPENSSL_CPUID_OBJ
36SRCS+= alphacpuid.S
37GENERATED+=alphacpuid.S
38alphacpuid.S: ${LCRYPTO_SRC}/alphacpuid.pl
39 /usr/bin/perl \
40 ${LCRYPTO_SRC}/alphacpuid.pl > ${.TARGET}