![]() |
nrfxlib API 3.3.99
|
| int nrf_cc3xx_platform_ctr_drbg_set_pr | ( | nrf_cc3xx_platform_ctr_drbg_context_t *const | context, |
| bool | pr_enabled ) |
#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_ctr_drbg.h>
Function to enable prediction resistance.
If prediction resistance is enabled, TRNG is gathered at the beginning of every call to nrf_cc3xx_platform_ctr_drbg_get and nrf_cc3xx_platform_ctr_drbg_get_with_add. This leads to a higher power draw and longer execution time.
| [in,out] | context | Pointer to a structure holding the ctr_drbg context. |
| [in] | pr_enabled | Enables prediction resistance if true, otherwise false (default). |