Add feature support for Camelia for PSA crypto config

Basic support for enabling Camelia through PSA_WANT_KEY_TYPE_CAMELIA.

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 ec258cfae1
commit 686e6e83d3

View file

@ -232,6 +232,12 @@ extern "C" {
#endif /*!MBEDTLS_PSA_ACCEL_KEY_TYPE_ARC4 */
#endif /* PSA_WANT_KEY_TYPE_ARC4 */
#if defined(PSA_WANT_KEY_TYPE_CAMELLIA)
#if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_CAMELLIA)
#define MBEDTLS_CAMELLIA_C
#endif /*!MBEDTLS_PSA_ACCEL_KEY_TYPE_CAMELLIA */
#endif /* PSA_WANT_KEY_TYPE_CAMELLIA */
#else /* MBEDTLS_PSA_CRYPTO_CONFIG */
/*
@ -348,6 +354,10 @@ extern "C" {
#define PSA_WANT_KEY_TYPE_ARC4 1
#endif
#if defined(MBEDTLS_CAMELLIA_C)
#define PSA_WANT_KEY_TYPE_CAMELLIA 1
#endif
#endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
#ifdef __cplusplus