-
Notifications
You must be signed in to change notification settings - Fork 3k
Nuvoton: Remove TRNG support #11736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuvoton: Remove TRNG support #11736
Conversation
@ccli8, thank you for your changes. |
Update? |
@yanesca @kjbracey-arm |
@jainvikas8 Could you please review this PR? |
@@ -118,10 +118,6 @@ struct pwmout_s { | |||
uint32_t pulsewidth_us; | |||
}; | |||
|
|||
struct trng_s { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth updating the Copyright (c) year at the beginning of these files (TARGET_M480/objects.h and TARGET_NUC472/objects.h).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed year to 2019.
I see
were you able to run tests-mbedtls-multi , tests-mbedtls-selftest, tests-netsocket-tls on these targets? Does this PR require a special test case that would aid the targets without TRNG? |
6a25ee6
to
7a8b710
Compare
|
Test report without
|
@@ -1,5 +1,5 @@ | |||
/* mbed Microcontroller Library | |||
* Copyright (c) 2015-2016 Nuvoton | |||
* Copyright (c) 2019 Nuvoton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be preferred to follow the old format here - 2015-2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to 2015-2019.
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.
7a8b710
to
aae04b2
Compare
@0xc0170 Please, can we start the CI on this. |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Test failed because of #11862, we will investigate |
CI restarted |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Looks like we may have another ci issue... |
Description
This PR removes
TRNG
for the targets below which don't have real TRNG.On targets without
TRNG
, to run mbedtls applications which require entropy source, there are two alternatives: custom entropy source and NV seed. Check #11680.Related PR
Follow-up of #11176 (comment)
Pull request type
Reviewers
@yanesca @kjbracey-arm