nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_cc3xx_platform_ctr_drbg_reseed()

int nrf_cc3xx_platform_ctr_drbg_reseed ( nrf_cc3xx_platform_ctr_drbg_context_t *const context,
const uint8_t * additional,
size_t add_len )

#include <crypto/nrf_cc310_platform/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]contextPointer to a structure holding the ctr_drbg context.
[in]additionalOptional additional input to use for CTR_DRBG_Reseed_function.
[in]add_lenLength of the additional input, may be zero.
Returns
0 on success, otherwise a non-zero failure according to the API mbedtls_ctrl_drbg_seed.