Add feature support for AES for PSA crypto config

Basic support for enabling AES through PSA_WANT_KEY_TYPE_AES.

Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
David Brown 2021-01-05 12:03:25 -07:00
parent e31fb03310
commit 949330827c

View file

@ -220,6 +220,12 @@ extern "C" {
#endif /* !MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_PUBLIC_KEY */
#endif /* PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY */
#if defined(PSA_WANT_KEY_TYPE_AES)
#if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_AES)
#define MBEDTLS_AES_C
#endif /* !MBEDTLS_PSA_ACCEL_KEY_TYPE_AES */
#endif /* PSA_WANT_KEY_TYPE_AES */
#else /* MBEDTLS_PSA_CRYPTO_CONFIG */
/*
@ -328,6 +334,10 @@ extern "C" {
#define PSA_WANT_ALG_SHA_512 1
#endif
#if defined(MBEDTLS_AES_C)
#define PSA_WANT_KEY_TYPE_AES 1
#endif
#endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
#ifdef __cplusplus