Update how MBEDTLS_PSA_CRYPTO_CONFIG is handled

Originally, MBEDTLS_PSA_CRYPTO_CONFIG was being used to allow
inclusion of mbedlts/config_psa.h, but that needed to be updated
so that mbedtls/config_psa.h is always included and the definitions
specific to PSA configuration are now guarded by
MBEDTLS_PSA_CRYPTO_CONFIG. This will allow for the standard setup
to continue working while new PSA configuration items to also work.

Signed-off-by: John Durkop <john.durkop@fermatsoftware.com>
This commit is contained in:
John Durkop 2020-09-24 04:30:10 -07:00
parent d8959390c5
commit 2dfaf9ca23
3 changed files with 20 additions and 13 deletions

View file

@ -30,6 +30,13 @@
extern "C" {
#endif
#define PSA_WANT_ALG_ECDSA
#define PSA_WANT_ALG_ECDSA_DETERMINISTIC
//#define MBEDTLS_PSA_ACCEL_ALG_ECDSA
//#define MBEDTLS_PSA_ACCEL_ALG_ECDSA_DETERMINISTIC
#ifdef __cplusplus
}
#endif