Skip to content

Commit 3b44ac1

Browse files
author
Charley Chu
committed
psoc64: Disable accessing MXCRYPTO
MXCRYPTO is protected by TF-M, Accessing its registers will trigger HW fault Ideally all Crypto operation should be re-direct to TF-M through PSA calls, but now only TRNG is implemented (psa_hrng.c) MBedTLS ALTs disabled CRC HAL disabled TRNG HAL disabled, use psa_hrng instead. Signed-off-by: Charley Chu <[email protected]>
1 parent d3d03c9 commit 3b44ac1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

features/mbedtls/targets/TARGET_Cypress/TARGET_MXCRYPTO/mbedtls_device.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef MBEDTLS_DEVICE_H
1919
#define MBEDTLS_DEVICE_H
2020

21+
#ifndef TARGET_TFM_DUALCPU
22+
2123
/* Currently this target supports SHA1 */
2224
// #define MBEDTLS_SHA1_C
2325

@@ -44,4 +46,5 @@
4446
#define MBEDTLS_ECDSA_SIGN_ALT
4547
#define MBEDTLS_ECDSA_VERIFY_ALT
4648

49+
#endif /* #ifndef TARGET_TFM_DUALCPU */
4750
#endif /* MBEDTLS_DEVICE_H */

targets/TARGET_Cypress/TARGET_PSOC6/cy_trng_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <string.h>
2222

2323
#if DEVICE_TRNG
24+
#ifndef TARGET_TFM_DUALCPU
2425

2526
#ifdef __cplusplus
2627
extern "C" {
@@ -69,3 +70,5 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
6970
#endif
7071

7172
#endif
73+
74+
#endif

0 commit comments

Comments
 (0)