summaryrefslogtreecommitdiffstats
path: root/crypto/ec/build.info
diff options
context:
space:
mode:
authorXu Yizhou <xuyizhou1@huawei.com>2023-08-23 11:30:09 +0200
committerTomas Mraz <tomas@openssl.org>2023-08-24 14:57:35 +0200
commit6399d7856c75abde9ed23782d10960013de03810 (patch)
treed45527466a10cd60f73d5da80752ba9086665bf4 /crypto/ec/build.info
parentQUIC: Rename SSL_set_initial_peer_addr to SSL_set1_initial_peer_addr (diff)
downloadopenssl-6399d7856c75abde9ed23782d10960013de03810.tar.xz
openssl-6399d7856c75abde9ed23782d10960013de03810.zip
Optimize SM2 on aarch64
Signed-off-by: Xu Yizhou <xuyizhou1@huawei.com> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20754)
Diffstat (limited to 'crypto/ec/build.info')
-rw-r--r--crypto/ec/build.info12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/ec/build.info b/crypto/ec/build.info
index 4077bead7b..2f376a39c6 100644
--- a/crypto/ec/build.info
+++ b/crypto/ec/build.info
@@ -31,6 +31,13 @@ IF[{- !$disabled{asm} -}]
$ECDEF_armv4=ECP_NISTZ256_ASM
$ECASM_aarch64=ecp_nistz256.c ecp_nistz256-armv8.S
$ECDEF_aarch64=ECP_NISTZ256_ASM
+ IF[{- !$disabled{'sm2'} -}]
+ $ECASM_aarch64=$ECASM_aarch64 ecp_sm2p256.c ecp_sm2p256-armv8.S
+ IF[{- !$disabled{'sm2-precomp'} -}]
+ $ECASM_aarch64=$ECASM_aarch64 ecp_sm2p256_table.c
+ ENDIF
+ $ECDEF_aarch64=$ECDEF_aarch64 ECP_SM2P256_ASM
+ ENDIF
$ECASM_parisc11=
$ECASM_parisc20_64=
@@ -127,3 +134,8 @@ IF[{- !$disabled{'ecx'} -}]
GENERATE[x25519-x86_64.s]=asm/x25519-x86_64.pl
GENERATE[x25519-ppc64.s]=asm/x25519-ppc64.pl
ENDIF
+
+IF[{- !$disabled{'sm2'} -}]
+ GENERATE[ecp_sm2p256-armv8.S]=asm/ecp_sm2p256-armv8.pl
+ INCLUDE[ecp_sm2p256-armv8.o]=..
+ENDIF