Add feature support for DES for PSA crypto config

Basic support for enabling DES through PSA_WANT_KEY_TYPE_DES.

Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
David Brown 2021-01-15 12:04:09 -07:00
parent 686e6e83d3
commit b65a7f7b52

View File

@ -238,6 +238,12 @@ extern "C" {
#endif /*!MBEDTLS_PSA_ACCEL_KEY_TYPE_CAMELLIA */
#endif /* PSA_WANT_KEY_TYPE_CAMELLIA */
#if defined(PSA_WANT_KEY_TYPE_DES)
#if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DES)
#define MBEDTLS_DES_C
#endif /*!MBEDTLS_PSA_ACCEL_KEY_TYPE_DES */
#endif /* PSA_WANT_KEY_TYPE_DES */
#else /* MBEDTLS_PSA_CRYPTO_CONFIG */
/*
@ -358,6 +364,10 @@ extern "C" {
#define PSA_WANT_KEY_TYPE_CAMELLIA 1
#endif
#if defined(MBEDTLS_DES_C)
#define PSA_WANT_KEY_TYPE_DES 1
#endif
#endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
#ifdef __cplusplus