File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed
features/mbedtls/platform
TARGET_PSA/COMPONENT_PSA_SRV_IMPL/inc Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 3
3
#ifndef DEFAULT_RANDOM_SEED_H
4
4
#define DEFAULT_RANDOM_SEED_H
5
5
6
+ #include <stddef.h>
7
+
6
8
#ifdef __cplusplus
7
9
extern "C" {
8
10
#endif
Original file line number Diff line number Diff line change 17
17
* This file is part of mbed TLS (https://tls.mbed.org)
18
18
*/
19
19
20
+
21
+ #ifndef __PLATFORM_MBED__H__
22
+ #define __PLATFORM_MBED__H__
23
+
24
+ #if (defined(TARGET_PSA ) && defined(MBEDTLS_ENTROPY_NV_SEED ))
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
30
+ #endif
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
+
20
38
#if DEVICE_TRNG
21
39
#define MBEDTLS_ENTROPY_HARDWARE_ALT
22
40
#endif
31
49
#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0080
32
50
33
51
#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED -0x0070
52
+
53
+ #endif // __PLATFORM_MBED__H__
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