From da7dbb72eda518a1c35aaf24476b8d4aed8abf0b Mon Sep 17 00:00:00 2001 From: David Brown Date: Tue, 26 Jan 2021 11:44:15 -0700 Subject: [PATCH] Add building definitions for non-crypto-config case Ensure that the builtin definitions are defined when selected by the traditional configuration options. Signed-off-by: David Brown --- include/mbedtls/config_psa.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/config_psa.h b/include/mbedtls/config_psa.h index 39069aa98..67ab54d58 100644 --- a/include/mbedtls/config_psa.h +++ b/include/mbedtls/config_psa.h @@ -389,19 +389,23 @@ extern "C" { #if defined(MBEDTLS_AES_C) #define PSA_WANT_KEY_TYPE_AES 1 +#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_AES 1 #endif #if defined(MBEDTLS_ARC4_C) #define PSA_WANT_KEY_TYPE_ARC4 1 #define PSA_WANT_ALG_STREAM_CIPHER 1 +#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_ARC4 1 #endif #if defined(MBEDTLS_CAMELLIA_C) #define PSA_WANT_KEY_TYPE_CAMELLIA 1 +#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_CAMELLIA 1 #endif #if defined(MBEDTLS_DES_C) #define PSA_WANT_KEY_TYPE_DES 1 +#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_DES 1 #endif #if defined(MBEDTLS_CIPHER_MODE_CBC)