Skip to content

Commit

Permalink
mcux: middleware: fix supp_psa_crypto_init failed
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MaochenWang1 authored and mmahadevan108 committed Nov 8, 2024
1 parent c410b73 commit 3c64cd6
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@
#define MBEDTLS_CIPHER_PADDING_PKCS7
#define PSA_CRYPTO_DRIVER_ELS_PKC

//#define MBEDTLS_PSA_ACCEL_ALG_MD5
//#define MBEDTLS_PSA_ACCEL_ALG_SHA_1
#define MBEDTLS_PSA_ACCEL_ALG_SHA_224
#define MBEDTLS_PSA_ACCEL_ALG_SHA_256
#define MBEDTLS_PSA_ACCEL_ALG_SHA_384
#define MBEDTLS_PSA_ACCEL_ALG_SHA_512
#define MBEDTLS_PSA_ACCEL_ALG_RIPEMD160

#define PSA_WANT_ALG_ECDSA 1
#define PSA_WANT_ALG_ECDSA_ANY 1
#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN 1
Expand Down

0 comments on commit 3c64cd6

Please sign in to comment.