#include <nrf_cc3xx_platform_ctr_drbg.h>
Function to do a manual reseed of ctr_drbg (using TRNG).
- Note
- If the context is NULL the function uses an internal context.
-
Calling this API is optional as the APIs nrf_cc3xx_platform_ctr_drbg_get and nrf_cc3xx_platform_ctr_drbg_get_with_add functions will reseed automatically according to the reseed interval in the built-in mbedtls_ctr_drbg context.
-
Before calling this API the context to must be initialized by calling nrf_cc3xx_platform_ctr_drbg_init.
-
This API is only usable if nrf_cc3xx_platform initialization APIs was run prior to calling it.
-
This API is unneccesary if ctr_drbg is executed with prediction resistance turned on.
- Parameters
-
| [in,out] | context | Pointer to a structure holding the ctr_drbg context. |
| [in] | additional | Optional additional input to use for CTR_DRBG_Reseed_function. |
| [in] | add_len | Length of the additional input, may be zero. |
- Returns
- 0 on success, otherwise a non-zero failure according to the API mbedtls_ctrl_drbg_seed.