File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
features/mbedtls/platform/inc Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 21
21
#ifndef __PLATFORM_MBED__H__
22
22
#define __PLATFORM_MBED__H__
23
23
24
- #if defined(TARGET_PSA )
24
+ #if (defined(TARGET_PSA ) && defined(MBEDTLS_ENTROPY_NV_SEED ))
25
+
25
26
#include "default_random_seed.h"
27
+
28
+ #if !defined(MBEDTLS_PLATFORM_NV_SEED_READ_MACRO )
29
+ #define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbed_default_seed_read
26
30
#endif
27
31
32
+ #if !defined(MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO )
33
+ #define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbed_default_seed_write
34
+ #endif
35
+
36
+ #endif // (defined(TARGET_PSA) && defined(MBEDTLS_ENTROPY_NV_SEED))
37
+
28
38
#if DEVICE_TRNG
29
39
#define MBEDTLS_ENTROPY_HARDWARE_ALT
30
40
#endif
Original file line number Diff line number Diff line change 7904
7904
" PSOC6_DYNSRM_DISABLE=1" ,
7905
7905
" MBEDTLS_PSA_CRYPTO_SPM" ,
7906
7906
" MBEDTLS_PSA_CRYPTO_C" ,
7907
- " MBEDTLS_ENTROPY_NV_SEED" ,
7908
- " MBEDTLS_PLATFORM_NV_SEED_READ_MACRO=mbed_default_seed_read" ,
7909
- " MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO=mbed_default_seed_write"
7907
+ " MBEDTLS_ENTROPY_NV_SEED"
7910
7908
],
7911
7909
"deliver_to_target" : " FUTURE_SEQUANA_PSA" ,
7912
7910
"overrides" : {
You can’t perform that action at this time.
0 commit comments