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

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions subsys/nrf_security/src/psa_crypto_driver_wrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,9 @@ psa_status_t psa_driver_wrapper_init_random(psa_driver_random_context_t *context
return PSA_SUCCESS;
}

#if defined(PSA_CRYPTO_DRIVER_ALG_PRNG_TEST) || \
defined(PSA_CRYPTO_DRIVER_ALG_PRNG_CC3XX_PLATFORM) || \
defined(PSA_CRYPTO_DRIVER_ALG_PRNG_OBERON)
psa_status_t psa_driver_wrapper_get_random(psa_driver_random_context_t *context, uint8_t *output,
size_t output_size)
{
Expand Down Expand Up @@ -2483,6 +2486,7 @@ psa_status_t psa_driver_wrapper_get_random(psa_driver_random_context_t *context,
(void)output_size;
return PSA_ERROR_NOT_SUPPORTED;
}
#endif

psa_status_t psa_driver_wrapper_free_random(psa_driver_random_context_t *context)
{
Expand Down
Loading