Skip to content

Commit 6a25ee6

Browse files
committed
Nuvoton: Remove TRNG support
These targets below just support PRNG, not real TRNG. They cannot annouce TRNG. - NUMAKER_PFM_NUC472 - NUMAKER_PFM_M487 - NUMAKER_IOT_M487 On targets without TRNG, to run mbedtls applications which require entropy source, there are two alternatives to TRNG: - Custom entropy source: Define MBEDTLS_ENTROPY_HARDWARE_ALT and provide custom mbedtls_hardware_poll(...) - NV seed: 1. Define MBEDTLS_ENTROPY_NV_SEED 2. Define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO/MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO and provide custom mbedtls_nv_seed_read(...)/mbedtls_nv_seed_write(...). 3. Don't define MBEDTLS_PSA_INJECT_ENTROPY. Meet mbedtls_psa_inject_entropy(...) undefined and then provide custom one, which must be compatible with mbedtls_nv_seed_read(...)/mbedtls_nv_seed_write(...) above. 4. For development, simulating partial provision process, inject entropy seed via mbedtls_psa_inject_entropy(...) pre-main.
1 parent 97ef25f commit 6a25ee6

File tree

5 files changed

+0
-190
lines changed

5 files changed

+0
-190
lines changed

targets/TARGET_NUVOTON/TARGET_M480/objects.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ struct pwmout_s {
118118
uint32_t pulsewidth_us;
119119
};
120120

121-
struct trng_s {
122-
uint8_t dummy;
123-
};
124-
125121
struct can_s {
126122
CANName can;
127123
PinName pin_rd;

targets/TARGET_NUVOTON/TARGET_M480/trng_api.c

Lines changed: 0 additions & 88 deletions
This file was deleted.

targets/TARGET_NUVOTON/TARGET_NUC472/objects.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ struct pwmout_s {
114114
uint32_t pulsewidth_us;
115115
};
116116

117-
struct trng_s {
118-
uint8_t dummy;
119-
};
120-
121117
struct can_s {
122118
CANName can;
123119
PinName pin_rd;

targets/TARGET_NUVOTON/TARGET_NUC472/trng_api.c

Lines changed: 0 additions & 92 deletions
This file was deleted.

targets/targets.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7962,7 +7962,6 @@
79627962
"SPI",
79637963
"SPISLAVE",
79647964
"SPI_ASYNCH",
7965-
"TRNG",
79667965
"CAN",
79677966
"FLASH",
79687967
"EMAC",
@@ -8611,7 +8610,6 @@
86118610
"SPI",
86128611
"SPISLAVE",
86138612
"SPI_ASYNCH",
8614-
"TRNG",
86158613
"FLASH",
86168614
"CAN",
86178615
"EMAC",

0 commit comments

Comments
 (0)