2020-08-17 03:25:08 +08:00
|
|
|
# We make separate GOAL variables for each algorithm, to make it easy to
|
|
|
|
# switch each to the Legacy provider when needed.
|
|
|
|
|
|
|
|
$ENCODER_GOAL=../../libimplementations.a
|
|
|
|
$DECODER_GOAL=../../libimplementations.a
|
|
|
|
$RSA_GOAL=../../libimplementations.a
|
|
|
|
$FFC_GOAL=../../libimplementations.a
|
|
|
|
$DH_GOAL=../../libimplementations.a
|
|
|
|
$DSA_GOAL=../../libimplementations.a
|
|
|
|
$ECX_GOAL=../../libimplementations.a
|
|
|
|
$EC_GOAL=../../libimplementations.a
|
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
SOURCE[$ENCODER_GOAL]=endecoder_common.c
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2021-03-15 22:05:59 +08:00
|
|
|
SOURCE[$DECODER_GOAL]=decode_der2key.c decode_pem2der.c \
|
|
|
|
decode_msblob2key.c decode_pvk2key.c
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2020-12-09 18:54:56 +08:00
|
|
|
SOURCE[$ENCODER_GOAL]=encode_key2any.c encode_key2text.c encode_key2ms.c
|
2021-02-24 05:41:04 +08:00
|
|
|
# encode_key2blob.c is only being included when EC is enabled, because we
|
|
|
|
# currently only define a "blob" output type for EC public keys. This may
|
|
|
|
# change in the future.
|
|
|
|
IF[{- !$disabled{ec} -}]
|
|
|
|
SOURCE[$ENCODER_GOAL]=encode_key2blob.c
|
|
|
|
ENDIF
|
2020-09-07 18:25:17 +08:00
|
|
|
DEPEND[encode_key2any.o]=../../common/include/prov/der_rsa.h
|