summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/amd64
diff options
context:
space:
mode:
authorjsing <>2023-01-29 14:00:41 +0000
committerjsing <>2023-01-29 14:00:41 +0000
commitbbe5b1e2c136907ee38f7b612d2562cb2d6704d3 (patch)
tree7e45e2611f536ee754d3ab8b0bc9d5c4e58f4593 /src/lib/libcrypto/arch/amd64
parent2d39bdcb54c63d8e6f9a6cd26fc31ce17907a909 (diff)
downloadopenbsd-bbe5b1e2c136907ee38f7b612d2562cb2d6704d3.tar.gz
openbsd-bbe5b1e2c136907ee38f7b612d2562cb2d6704d3.tar.bz2
openbsd-bbe5b1e2c136907ee38f7b612d2562cb2d6704d3.zip
Use s2n-bignum assembly implementations for libcrypto bignum on amd64.
This switches the core bignum assembly implementations from x86_64-gcc.c to s2n-bignum for amd64. ok miod@ tb@
Diffstat (limited to 'src/lib/libcrypto/arch/amd64')
-rw-r--r--src/lib/libcrypto/arch/amd64/Makefile.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arch/amd64/Makefile.inc b/src/lib/libcrypto/arch/amd64/Makefile.inc
index 1fd9f68919..5e433b572d 100644
--- a/src/lib/libcrypto/arch/amd64/Makefile.inc
+++ b/src/lib/libcrypto/arch/amd64/Makefile.inc
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile.inc,v 1.10 2023/01/21 17:29:56 jsing Exp $ 1# $OpenBSD: Makefile.inc,v 1.11 2023/01/29 14:00:41 jsing Exp $
2 2
3# amd64-specific libcrypto build rules 3# amd64-specific libcrypto build rules
4 4
@@ -29,7 +29,16 @@ SSLASM+= bn x86_64-gf2m
29 29
30# bn s2n-bignum 30# bn s2n-bignum
31SRCS += bn_arch.c 31SRCS += bn_arch.c
32SRCS += bignum_add.S
33SRCS += bignum_cmadd.S
34SRCS += bignum_cmul.S
35SRCS += bignum_mul.S
36SRCS += bignum_mul_4_8_alt.S
37SRCS += bignum_mul_8_16_alt.S
32SRCS += bignum_sqr.S 38SRCS += bignum_sqr.S
39SRCS += bignum_sqr_4_8_alt.S
40SRCS += bignum_sqr_8_16_alt.S
41SRCS += bignum_sub.S
33 42
34# camellia 43# camellia
35SRCS+= cmll_misc.c 44SRCS+= cmll_misc.c
@@ -75,7 +84,7 @@ ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${EXTRA_PL}
75.endfor 84.endfor
76 85
77CFLAGS+= -DOPENSSL_CPUID_OBJ 86CFLAGS+= -DOPENSSL_CPUID_OBJ
78SRCS+= x86_64cpuid.S x86_64-gcc.c 87SRCS+= x86_64cpuid.S
79GENERATED+=x86_64cpuid.S 88GENERATED+=x86_64cpuid.S
80 89
81x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl ${EXTRA_PL} 90x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl ${EXTRA_PL}