1e1051a39Sopenharmony_ci# We make separate GOAL variables for each algorithm, to make it easy to
2e1051a39Sopenharmony_ci# switch each to the Legacy provider when needed.
3e1051a39Sopenharmony_ci
4e1051a39Sopenharmony_ci$DH_GOAL=../../libdefault.a ../../libfips.a
5e1051a39Sopenharmony_ci$ECDH_GOAL=../../libdefault.a ../../libfips.a
6e1051a39Sopenharmony_ci$ECX_GOAL=../../libdefault.a ../../libfips.a
7e1051a39Sopenharmony_ci$KDF_GOAL=../../libdefault.a ../../libfips.a
8e1051a39Sopenharmony_ci
9e1051a39Sopenharmony_ciIF[{- !$disabled{dh} -}]
10e1051a39Sopenharmony_ci  SOURCE[$DH_GOAL]=dh_exch.c
11e1051a39Sopenharmony_ciENDIF
12e1051a39Sopenharmony_ci
13e1051a39Sopenharmony_ciIF[{- !$disabled{asm} -}]
14e1051a39Sopenharmony_ci  $ECDEF_s390x=S390X_EC_ASM
15e1051a39Sopenharmony_ci
16e1051a39Sopenharmony_ci  # Now that we have defined all the arch specific variables, use the
17e1051a39Sopenharmony_ci  # appropriate one, and define the appropriate macros
18e1051a39Sopenharmony_ci  IF[$ECASM_{- $target{asm_arch} -}]
19e1051a39Sopenharmony_ci    $ECDEF=$ECDEF_{- $target{asm_arch} -}
20e1051a39Sopenharmony_ci  ENDIF
21e1051a39Sopenharmony_ciENDIF
22e1051a39Sopenharmony_ci
23e1051a39Sopenharmony_ciIF[{- !$disabled{ec} -}]
24e1051a39Sopenharmony_ci  SOURCE[$ECX_GOAL]=ecx_exch.c
25e1051a39Sopenharmony_ci  DEFINE[$ECX_GOAL]=$ECDEF
26e1051a39Sopenharmony_ci  SOURCE[$ECDH_GOAL]=ecdh_exch.c
27e1051a39Sopenharmony_ciENDIF
28e1051a39Sopenharmony_ci
29e1051a39Sopenharmony_ciSOURCE[$KDF_GOAL]=kdf_exch.c
30