2019-10-04 16:24:09 +08:00
|
|
|
# We make separate GOAL variables for each algorithm, to make it easy to
|
|
|
|
# switch each to the Legacy provider when needed.
|
|
|
|
|
|
|
|
$DH_GOAL=../../libimplementations.a
|
2020-01-25 01:13:40 +08:00
|
|
|
$ECX_GOAL=../../libimplementations.a
|
2019-12-15 06:20:53 +08:00
|
|
|
$ECDH_GOAL=../../libimplementations.a
|
2020-07-03 23:18:03 +08:00
|
|
|
$KDF_GOAL=../../libimplementations.a
|
2019-10-04 16:24:09 +08:00
|
|
|
|
|
|
|
IF[{- !$disabled{dh} -}]
|
|
|
|
SOURCE[$DH_GOAL]=dh_exch.c
|
|
|
|
ENDIF
|
2020-01-25 01:13:40 +08:00
|
|
|
|
2020-02-05 00:41:19 +08:00
|
|
|
IF[{- !$disabled{asm} -}]
|
|
|
|
$ECDEF_s390x=S390X_EC_ASM
|
|
|
|
|
|
|
|
# Now that we have defined all the arch specific variables, use the
|
|
|
|
# appropriate one, and define the appropriate macros
|
|
|
|
IF[$ECASM_{- $target{asm_arch} -}]
|
|
|
|
$ECDEF=$ECDEF_{- $target{asm_arch} -}
|
|
|
|
ENDIF
|
|
|
|
ENDIF
|
|
|
|
|
2020-02-12 17:19:41 +08:00
|
|
|
IF[{- !$disabled{ec} -}]
|
|
|
|
SOURCE[$ECX_GOAL]=ecx_exch.c
|
|
|
|
DEFINE[$ECX_GOAL]=$ECDEF
|
2020-02-20 14:16:21 +08:00
|
|
|
SOURCE[../../libfips.a]=ecdh_exch.c
|
|
|
|
SOURCE[../../libnonfips.a]=ecdh_exch.c
|
2020-02-12 17:19:41 +08:00
|
|
|
ENDIF
|
2020-07-03 23:18:03 +08:00
|
|
|
|
|
|
|
SOURCE[$KDF_GOAL]=kdf_exch.c
|