From 1036749883ccf38ed11afe424d69708cfdca99f3 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 12 May 2021 14:21:58 +1000 Subject: ec: Add run time code selection for p521 field operations This is only used if ECP_NISTP521_ASM is defined and this currently only occurs on PPC64. This simply chooses the C reference implementation, which will be the default when custom code is available for certain CPUs. Only the multiplication and squaring operations are handled, since the upcoming assembly code only contains those. This scheme can be easily extended to handle reduction too. Signed-off-by: Martin Schwenke Signed-off-by: Amitay Isaacs Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15401) --- crypto/ec/build.info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/ec/build.info') diff --git a/crypto/ec/build.info b/crypto/ec/build.info index dbe3a52..bfd16b3 100644 --- a/crypto/ec/build.info +++ b/crypto/ec/build.info @@ -31,7 +31,7 @@ IF[{- !$disabled{asm} -}] $ECASM_ppc32= $ECASM_ppc64=ecp_nistz256.c ecp_nistz256-ppc64.s x25519-ppc64.s - $ECDEF_ppc64=ECP_NISTZ256_ASM X25519_ASM + $ECDEF_ppc64=ECP_NISTZ256_ASM ECP_NISTP521_ASM X25519_ASM $ECASM_c64xplus= -- cgit v1.1