Skip to content

Commit c71ed2f

Browse files
committed
[nrf noup] mcuboot: Prevent PSA crypto driver requirements
-This commit adds MBEDTLS_PSA_CRYPTO_CLIENT to the config-file that MCUboot uses, to ensure that we are not requesting details about PSA crypto drivers. When MBEDTLS_PSA_CRYPTO_CLIENT is set and not MBEDTLS_PSA_CRYPTO_C, then we are preventing from figuring out what the PSA crypto driver contexts structures look like... please see a comment in psa/crypto_structs.h for details Signed-off-by: Frank Audun Kvamtrø <frank.kvamtro@nordicsemi.no>
1 parent 81a4388 commit c71ed2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

boot/zephyr/include/mcuboot-mbedtls-cfg.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@
3232
#else
3333
#error "Cannot configure mbedTLS; signature type is unknown."
3434
#endif
35-
35+
/* This define prevents include of psa/crypto from requing knowledge of the
36+
* PSA crypto drivers. see psa/crypto_structs.h for details
37+
*/
38+
#define MBEDTLS_PSA_CRYPTO_CLIENT
3639
#endif

0 commit comments

Comments
 (0)