Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf_crypto_init finds no backend in SDK15

Hi,

I have the problem, that nrf_crypto_init() does not find any backends and thus is skipping the initialization.

What is the precondition for NRF_CRYPTO_BACKEND_SECTION_ITEM_COUNT to find a backend?

I enabled NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED and NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED in the sdk_config.h.

I tried the ble_app_multirole_lesc example, where NRF_CRYPTO_BACKEND_OBERON_ENABLED and NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED are enabled.

This returns num_backends=1, but i don't know why this is not working for MicroEcc.

Also should nrf_crypto_init() really return NRF_SUCCESS in this case? It skips the entire initialization if num_backends = 0 but still sets m_state to INITIALIZED;

Best regards,

Niclas

Related