diff options
author | Juergen Christ <jchrist@linux.ibm.com> | 2022-07-13 11:15:43 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-07-14 14:03:31 +0200 |
commit | 2af7ec5997730d4624d19814be1131ce5dd14304 (patch) | |
tree | dc7fb518e19d7fccc2d06368a7c3545ccadba456 /crypto/ec | |
parent | cf56f4425708a1ad8af8aede104a5e1c0294aafd (diff) |
Fix EC ASM flag passing
Flags for ASM implementations of EC curves were only passed to the FIPS
provider and not to the default or legacy provider. This left some potential
for optimization. Pass the correct flags also to these providers.
Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18791)
(cherry picked from commit 12186377cb987c4527d286e91e735e8261a45669)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/build.info | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/ec/build.info b/crypto/ec/build.info index 70ec25079d..a511e887a9 100644 --- a/crypto/ec/build.info +++ b/crypto/ec/build.info @@ -71,6 +71,14 @@ SOURCE[../../providers/libfips.a]=$COMMON # need to be applied to all affected libraries and modules. DEFINE[../../libcrypto]=$ECDEF DEFINE[../../providers/libfips.a]=$ECDEF +DEFINE[../../providers/libdefault.a]=$ECDEF +# We only need to include the ECDEF stuff in the legacy provider when +# it's a separate module and it's dynamically linked with libcrypto. +# Otherwise, it already gets everything that the static libcrypto.a +# has, and doesn't need it added again. +IF[{- !$disabled{module} && !$disabled{shared} -}] + DEFINE[../providers/liblegacy.a]=$ECDEF +ENDIF GENERATE[ecp_nistz256-x86.S]=asm/ecp_nistz256-x86.pl |