File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ #if defined(MBEDTLS_ENTROPY_NV_SEED)
2+
3+ #include " mbed.h"
4+
5+ // Provide stubs for mbedtls entropy source
6+ // The functions may be implemented using a crypto chip like ECCx08
7+ extern " C" {
8+ WEAK int mbedtls_platform_std_nv_seed_read ( unsigned char *buf, size_t buf_len ) {
9+ return -1 ;
10+ }
11+
12+ WEAK int mbedtls_platform_std_nv_seed_write ( unsigned char *buf, size_t buf_len ) {
13+ return -1 ;
14+ }
15+ }
16+
17+ #endif
Original file line number Diff line number Diff line change 22 "target_overrides" : {
33 "*" : {
44 "target.printf_lib" : " std" ,
5+ "target.macros_add" : [ " MBEDTLS_ENTROPY_NV_SEED" ],
56 "platform.stdio-buffered-serial" : false ,
67 "platform.stdio-baud-rate" : 115200 ,
78 "platform.default-serial-baud-rate" : 115200 ,
Original file line number Diff line number Diff line change 22 "target_overrides" : {
33 "*" : {
44 "target.printf_lib" : " std" ,
5+ "target.macros_add" : [ " MBEDTLS_ENTROPY_NV_SEED" ],
56 "platform.stdio-buffered-serial" : false ,
67 "platform.stdio-baud-rate" : 115200 ,
78 "platform.default-serial-baud-rate" : 115200 ,
You can’t perform that action at this time.
0 commit comments