diff options
| author | jsing <> | 2023-01-29 14:00:41 +0000 |
|---|---|---|
| committer | jsing <> | 2023-01-29 14:00:41 +0000 |
| commit | 4e1fab63a267fba43456f4cf3909f8d17ca6aee7 (patch) | |
| tree | 7e45e2611f536ee754d3ab8b0bc9d5c4e58f4593 /src/lib/libcrypto/arch/amd64 | |
| parent | b0c52cade702e80c112f011dcb416a6b713592c2 (diff) | |
| download | openbsd-4e1fab63a267fba43456f4cf3909f8d17ca6aee7.tar.gz openbsd-4e1fab63a267fba43456f4cf3909f8d17ca6aee7.tar.bz2 openbsd-4e1fab63a267fba43456f4cf3909f8d17ca6aee7.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.inc | 13 |
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 |
| 31 | SRCS += bn_arch.c | 31 | SRCS += bn_arch.c |
| 32 | SRCS += bignum_add.S | ||
| 33 | SRCS += bignum_cmadd.S | ||
| 34 | SRCS += bignum_cmul.S | ||
| 35 | SRCS += bignum_mul.S | ||
| 36 | SRCS += bignum_mul_4_8_alt.S | ||
| 37 | SRCS += bignum_mul_8_16_alt.S | ||
| 32 | SRCS += bignum_sqr.S | 38 | SRCS += bignum_sqr.S |
| 39 | SRCS += bignum_sqr_4_8_alt.S | ||
| 40 | SRCS += bignum_sqr_8_16_alt.S | ||
| 41 | SRCS += bignum_sub.S | ||
| 33 | 42 | ||
| 34 | # camellia | 43 | # camellia |
| 35 | SRCS+= cmll_misc.c | 44 | SRCS+= cmll_misc.c |
| @@ -75,7 +84,7 @@ ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${EXTRA_PL} | |||
| 75 | .endfor | 84 | .endfor |
| 76 | 85 | ||
| 77 | CFLAGS+= -DOPENSSL_CPUID_OBJ | 86 | CFLAGS+= -DOPENSSL_CPUID_OBJ |
| 78 | SRCS+= x86_64cpuid.S x86_64-gcc.c | 87 | SRCS+= x86_64cpuid.S |
| 79 | GENERATED+=x86_64cpuid.S | 88 | GENERATED+=x86_64cpuid.S |
| 80 | 89 | ||
| 81 | x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl ${EXTRA_PL} | 90 | x86_64cpuid.S: ${LCRYPTO_SRC}/x86_64cpuid.pl ${EXTRA_PL} |
