Skip to content

Commit dbd0085

Browse files
Add MBEDTLS_PSA_CRYPTO_C to SiWx917 autogen and config files (SiliconLabs#186)
Co-authored-by: Rohan Sahay <rohan.sahay@silabs.com>
1 parent 1edddc9 commit dbd0085

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

matter/si91x/siwx917/BRD4338A/autogen/sli_mbedtls_config_autogen.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define MBEDTLS_BASE64_C
1414
#define MBEDTLS_CIPHER_C
1515
#define MBEDTLS_CMAC_C
16+
#define MBEDTLS_ECDSA_C
1617
#define MBEDTLS_ECP_C
1718
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
1819
#define MBEDTLS_MD_C
@@ -38,10 +39,10 @@
3839
#define MBEDTLS_X509_CRL_PARSE_C
3940
#define MBEDTLS_X509_CSR_PARSE_C
4041
#define MBEDTLS_X509_CSR_WRITE_C
42+
#ifndef SL_MBEDTLS_USE_TINYCRYPT
4143
#define MBEDTLS_PSA_CRYPTO_C
4244
#define MBEDTLS_USE_PSA_CRYPTO
4345
#define MBEDTLS_PSA_CRYPTO_CONFIG
44-
#define MBEDTLS_ECDSA_C
4546
#define MBEDTLS_PSA_CRYPTO_STORAGE_C
46-
47+
#endif // SL_MBEDTLS_USE_TINYCRYPT
4748
#endif // SLI_MBEDTLS_CONFIG_AUTOGEN_H

matter/si91x/siwx917/BRD4338A/config/sl_mbedtls_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@
107107
// the correct Mbed TLS / PSA Crypto options.
108108
#include "sli_mbedtls_config_transform_autogen.h"
109109

110+
#ifndef SL_MBEDTLS_USE_TINYCRYPT
110111
// Included for backward compatibility reasons.
111112
#include "mbedtls/build_info.h"
113+
#endif // SL_MBEDTLS_USE_TINYCRYPT
112114

113115
#endif // SL_MBEDTLS_CONFIG_H

0 commit comments

Comments
 (0)