RNG Configuration configuration

nRF5 SDK v15.0.0

Macros

#define NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED
Use static memory buffers for context and temporary init buffer. More...
#define NRF_CRYPTO_RNG_AUTO_INIT_ENABLED
Initialize the RNG module automatically when nrf_crypto is initialized. More...

Detailed Description

Macro Definition Documentation

#define NRF_CRYPTO_RNG_AUTO_INIT_ENABLED

Initialize the RNG module automatically when nrf_crypto is initialized.

Automatic initialization is only supported with static or internally allocated context and temporary memory.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED

Use static memory buffers for context and temporary init buffer.

Always recommended when using the nRF HW RNG as the context and temporary buffers are small. Consider disabling if using the CC310 RNG in a RAM constrained application. In this case, memory must be provided to nrf_crypto_rng_init, or it can be allocated internally provided that NRF_CRYPTO_ALLOCATOR does not allocate memory on the stack.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.