Open gabor-mezei-arm opened 2 months ago
It's never PSA_WANT_ALG_ECDSA
but instead PSA_WANT_ALG_ECDSA || PSA_WANT_ALG_DETERMNISTIC_ECDSA
. (Randomized) ECDSA and deterministic ECDSA are distinct signature algorithms, but they are functionally equivalent. This comes up often, so we should define a symbol like
#define PSA_HAVE_ALG_SOME_ECDSA (PSA_WANT_ALG_ECDSA || PSA_WANT_ALG_DETERMNISTIC_ECDSA)
in include/psa/*adjust*.h
.
Replace these macros:
MBEDTLS_PK_HAVE_ECC_KEYS
toPSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
MBEDTLS_PK_CAN_ECDSA_SIGN
toPSA_WANT_ALG_ECDSA && PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC
MBEDTLS_PK_CAN_ECDSA_VERIFY
toPSA_WANT_ALG_ECDSA && PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
MBEDTLS_PK_CAN_ECDSA_SOME
toPSA_WANT_ALG_ECDSA
The macros should be replaced in all files except
mbedtls_config.h
,check_config.h
andconfig_adjust_*.h
.Ensure that the test are run in the same way.