Skip to content

Commit dd5801b

Browse files
adeaarmtomi-font
authored andcommitted
Enable sources when MCUBOOT_USE_PSA_CRYPTO and not MBEDTLS_PSA_CRYPTO_C
Gate relevant files for the thin PSA crypto core on MCUBOOT_USE_PSA_CRYPTO during BL2 build instead of MBEDTLS_PSA_CRYPTO_C which is not defined in such case. A full solution might require a change in config strategy of Mbed TLS with the definition Signed-off-by: Antonio de Angelis <[email protected]> applied using: git am modules/tee/tf-m/trusted-firmware-m/lib/ext/mbedcrypto/\ 0007-Enable-sources-when-MCUBOOT_USE_PSA_CRYPTO-and-not-M.patch Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 6d8b909 commit dd5801b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

include/mbedtls/psa_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* otherwise error codes would be unknown in test_suite_psa_crypto_util.data.*/
2222
#include <mbedtls/asn1write.h>
2323

24-
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
24+
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT) || defined(MCUBOOT_USE_PSA_CRYPTO)
2525

2626
/** The random generator function for the PSA subsystem.
2727
*

library/psa_crypto_driver_wrappers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "mbedtls/constant_time.h"
2424
/* END-common headers */
2525

26-
#if defined(MBEDTLS_PSA_CRYPTO_C)
26+
#if defined(MBEDTLS_PSA_CRYPTO_C) || defined(MCUBOOT_USE_PSA_CRYPTO)
2727

2828
/* BEGIN-driver headers */
2929
/* Headers for mbedtls_test opaque driver */

library/psa_crypto_ecp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "common.h"
1010

11-
#if defined(MBEDTLS_PSA_CRYPTO_C)
11+
#if defined(MBEDTLS_PSA_CRYPTO_C) || defined(MCUBOOT_USE_PSA_CRYPTO)
1212

1313
#include <psa/crypto.h>
1414
#include "psa_crypto_core.h"

library/psa_crypto_hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "common.h"
1010

11-
#if defined(MBEDTLS_PSA_CRYPTO_C)
11+
#if defined(MBEDTLS_PSA_CRYPTO_C) || defined(MCUBOOT_USE_PSA_CRYPTO)
1212

1313
#include <psa/crypto.h>
1414
#include "psa_crypto_core.h"

library/psa_crypto_rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "common.h"
1010

11-
#if defined(MBEDTLS_PSA_CRYPTO_C)
11+
#if defined(MBEDTLS_PSA_CRYPTO_C) || defined(MCUBOOT_USE_PSA_CRYPTO)
1212

1313
#include <psa/crypto.h>
1414
#include "psa/crypto_values.h"

0 commit comments

Comments
 (0)