From 65d543b5f1ee9f253745a9e1a8014492a56e59db Mon Sep 17 00:00:00 2001 From: shasaicha Date: Fri, 26 May 2023 13:33:44 +0530 Subject: [PATCH] fix for DIC TLS connection when MBEDTLS_USE_PSA_CRYPTO is enabled --- src/platform/silabs/efr32/efr32-chip-mbedtls-config.h | 1 + src/platform/silabs/efr32/psa_crypto_config.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h b/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h index 09fdcdad72799c..86ea2dae9ea644 100644 --- a/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h +++ b/src/platform/silabs/efr32/efr32-chip-mbedtls-config.h @@ -56,6 +56,7 @@ #define MBEDTLS_RSA_C #define MBEDTLS_SSL_IN_CONTENT_LEN 5120 #define MBEDTLS_SSL_OUT_CONTENT_LEN 1560 +#define MBEDTLS_PSA_BUILTIN_ALG_TLS12_PRF #endif // DIC_ENABLE #define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf diff --git a/src/platform/silabs/efr32/psa_crypto_config.h b/src/platform/silabs/efr32/psa_crypto_config.h index b0556cabb86d13..c7a462cbaee734 100644 --- a/src/platform/silabs/efr32/psa_crypto_config.h +++ b/src/platform/silabs/efr32/psa_crypto_config.h @@ -61,6 +61,8 @@ #define PSA_WANT_KEY_TYPE_HMAC #ifdef DIC_ENABLE #define PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY +#define PSA_WANT_ALG_CBC_NO_PADDING +#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN #endif // DIC_ENABLE #define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG #define MBEDTLS_PSA_ACCEL_ALG_SHA_1