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.
|
|
|
|
|
2021-05-06 14:48:15 +08:00
|
|
|
$DH_GOAL=../../libdefault.a ../../libfips.a
|
|
|
|
$DSA_GOAL=../../libdefault.a ../../libfips.a
|
|
|
|
$EC_GOAL=../../libdefault.a ../../libfips.a
|
|
|
|
$ECX_GOAL=../../libdefault.a ../../libfips.a
|
|
|
|
$KDF_GOAL=../../libdefault.a ../../libfips.a
|
|
|
|
$MAC_GOAL=../../libdefault.a ../../libfips.a
|
|
|
|
$RSA_GOAL=../../libdefault.a ../../libfips.a
|
2019-10-04 16:24:09 +08:00
|
|
|
|
|
|
|
IF[{- !$disabled{dh} -}]
|
2021-05-06 14:48:15 +08:00
|
|
|
SOURCE[$DH_GOAL]=dh_kmgmt.c
|
2019-10-04 16:24:09 +08:00
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{dsa} -}]
|
2021-05-06 14:48:15 +08:00
|
|
|
SOURCE[$DSA_GOAL]=dsa_kmgmt.c
|
2019-10-04 16:24:09 +08:00
|
|
|
ENDIF
|
2019-12-15 06:20:53 +08:00
|
|
|
IF[{- !$disabled{ec} -}]
|
2021-05-06 14:48:15 +08:00
|
|
|
SOURCE[$EC_GOAL]=ec_kmgmt.c
|
2019-12-15 06:20:53 +08:00
|
|
|
ENDIF
|
2020-03-18 07:25:33 +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_kmgmt.c
|
2020-03-18 07:25:33 +08:00
|
|
|
DEFINE[$ECX_GOAL]=$ECDEF
|
2020-02-12 17:19:41 +08:00
|
|
|
ENDIF
|
2020-04-01 13:51:18 +08:00
|
|
|
|
2021-05-06 14:48:15 +08:00
|
|
|
SOURCE[$RSA_GOAL]=rsa_kmgmt.c
|
2020-07-03 23:18:03 +08:00
|
|
|
|
|
|
|
SOURCE[$KDF_GOAL]=kdf_legacy_kmgmt.c
|
2020-08-07 23:40:25 +08:00
|
|
|
|
2021-05-06 14:48:15 +08:00
|
|
|
SOURCE[$MAC_GOAL]=mac_legacy_kmgmt.c
|