Skip to content

Commit 3c64cd6

Browse files
MaochenWang1mmahadevan108
authored andcommitted
mcux: middleware: fix supp_psa_crypto_init failed
The MBEDTLS_PSA_ACCEL_xxx macro means it will not enable the SW/Builtin implementation of the feature. The PSA_WANT_xxx macro means it will enable the PSA-API usage of the feature, and can use SW or HW acceleration. If enable the MBEDTLS_PSA_ACCEL_xxx macros, during psa_crypto_init, mbedtls_psa_hash_setup will failed, as the macro MBEDTLS_PSA_BUILTIN_ALG_SHA_512 is undefined. Remove the marco of MBEDTLS_PSA_ACCEL_xxx can enable maco MBEDTLS_PSA_BUILTIN_ALG_xxx, and fix the supp_psa_crypto_init fail and Wi-Fi connection failed issue. Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
1 parent c410b73 commit 3c64cd6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mcux/middleware/wifi_nxp/incl/port/mbedtls/wpa_supp_els_pkc_mbedtls_config.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@
4242
#define MBEDTLS_CIPHER_PADDING_PKCS7
4343
#define PSA_CRYPTO_DRIVER_ELS_PKC
4444

45-
//#define MBEDTLS_PSA_ACCEL_ALG_MD5
46-
//#define MBEDTLS_PSA_ACCEL_ALG_SHA_1
47-
#define MBEDTLS_PSA_ACCEL_ALG_SHA_224
48-
#define MBEDTLS_PSA_ACCEL_ALG_SHA_256
49-
#define MBEDTLS_PSA_ACCEL_ALG_SHA_384
50-
#define MBEDTLS_PSA_ACCEL_ALG_SHA_512
51-
#define MBEDTLS_PSA_ACCEL_ALG_RIPEMD160
52-
5345
#define PSA_WANT_ALG_ECDSA 1
5446
#define PSA_WANT_ALG_ECDSA_ANY 1
5547
#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN 1

0 commit comments

Comments
 (0)