diff options
author | miod <> | 2014-05-05 04:44:54 +0000 |
---|---|---|
committer | miod <> | 2014-05-05 04:44:54 +0000 |
commit | 1fd415118d8886c440da16f2725752398ffee5c4 (patch) | |
tree | 9805d874014b05b7f38557f0c6e07f85ddc19e20 | |
parent | cd97ab584496168ea99dfe43e3be997ea086b8e6 (diff) | |
download | openbsd-1fd415118d8886c440da16f2725752398ffee5c4.tar.gz openbsd-1fd415118d8886c440da16f2725752398ffee5c4.tar.bz2 openbsd-1fd415118d8886c440da16f2725752398ffee5c4.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-- | src/lib/libcrypto/arch/sparc/Makefile.inc | 27 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/arch/sparc/Makefile.inc | 27 |
2 files changed, 54 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/sparc/Makefile.inc b/src/lib/libcrypto/arch/sparc/Makefile.inc new file mode 100644 index 0000000000..54dc318737 --- /dev/null +++ b/src/lib/libcrypto/arch/sparc/Makefile.inc | |||
@@ -0,0 +1,27 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/05/05 04:44:54 miod Exp $ | ||
2 | |||
3 | # sparc-specific libcrypto build rules | ||
4 | |||
5 | # aes | ||
6 | SRCS+= aes_core.c aes_cbc.c | ||
7 | # bf | ||
8 | SRCS+= bf_enc.c | ||
9 | # bn | ||
10 | .if 0 # uses `umul' and `udiv' instructions | ||
11 | SRCS+= sparcv8.S | ||
12 | .PATH: ${LCRYPTO_SRC}/bn/asm | ||
13 | .else | ||
14 | SRCS+= bn_asm.c | ||
15 | .endif | ||
16 | # des | ||
17 | SRCS+= fcrypt_b.c | ||
18 | SRCS+= des_enc-sparc.S | ||
19 | GENERATED+= des_enc-sparc.S | ||
20 | des_enc-sparc.S: ${LCRYPTO_SRC}/des/asm/des_enc.m4 | ||
21 | m4 ${LCRYPTO_SRC}/des/asm/des_enc.m4 > ${.TARGET} | ||
22 | # rc4 | ||
23 | SRCS+= rc4_enc.c rc4_skey.c | ||
24 | ## rc5 | ||
25 | #SRCS+= rc5_enc.c | ||
26 | # whrlpool | ||
27 | SRCS+= wp_block.c | ||
diff --git a/src/lib/libcrypto/crypto/arch/sparc/Makefile.inc b/src/lib/libcrypto/crypto/arch/sparc/Makefile.inc new file mode 100644 index 0000000000..54dc318737 --- /dev/null +++ b/src/lib/libcrypto/crypto/arch/sparc/Makefile.inc | |||
@@ -0,0 +1,27 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/05/05 04:44:54 miod Exp $ | ||
2 | |||
3 | # sparc-specific libcrypto build rules | ||
4 | |||
5 | # aes | ||
6 | SRCS+= aes_core.c aes_cbc.c | ||
7 | # bf | ||
8 | SRCS+= bf_enc.c | ||
9 | # bn | ||
10 | .if 0 # uses `umul' and `udiv' instructions | ||
11 | SRCS+= sparcv8.S | ||
12 | .PATH: ${LCRYPTO_SRC}/bn/asm | ||
13 | .else | ||
14 | SRCS+= bn_asm.c | ||
15 | .endif | ||
16 | # des | ||
17 | SRCS+= fcrypt_b.c | ||
18 | SRCS+= des_enc-sparc.S | ||
19 | GENERATED+= des_enc-sparc.S | ||
20 | des_enc-sparc.S: ${LCRYPTO_SRC}/des/asm/des_enc.m4 | ||
21 | m4 ${LCRYPTO_SRC}/des/asm/des_enc.m4 > ${.TARGET} | ||
22 | # rc4 | ||
23 | SRCS+= rc4_enc.c rc4_skey.c | ||
24 | ## rc5 | ||
25 | #SRCS+= rc5_enc.c | ||
26 | # whrlpool | ||
27 | SRCS+= wp_block.c | ||