Skip to content
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

nrf_security: Check for existence of RNG driver at build time #12023

Conversation

SebastianBoe
Copy link
Contributor

Check for existence of an RNG driver at build time.

This moves input validation from runtime to build time.

We take psa_driver_wrapper_get_random functions that just return "not supported" out of the build as this should be detected at build time, not runtime.

Check for existence of an RNG driver at build time.

This moves input validation from runtime to build time.

We take psa_driver_wrapper_get_random functions that just return "not
supported" out of the build as this should be detected at build time,
not runtime.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Aug 11, 2023
@NordicBuilder
Copy link
Contributor

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite
test-fw-nrfconnect-chip X
test-fw-nrfconnect-nrf_crypto X
test-fw-nrfconnect-tfm X
test-sdk-homekit X

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

Copy link
Contributor

@mswarowsky mswarowsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the fail early approach

@SebastianBoe
Copy link
Contributor Author

It is awkward to do this because the cryptocell binary has a reference to psa_generate_random. Closing. We can improve this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants