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

◆ nrf_cc3xx_platform_ctr_drbg_init()

int nrf_cc3xx_platform_ctr_drbg_init ( nrf_cc3xx_platform_ctr_drbg_context_t *const context,
const uint8_t * pers_string,
size_t pers_string_len )

#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_ctr_drbg.h>

Function that initializes a ctr_drbg context.

Note
If the context is NULL the function uses an internal context.
Parameters
[in,out]contextPointer to structure holding the ctr_drbg context which must be used for subsequent calls to generate random data.
[in]pers_stringPersonalization string used for the CTR_DRBG_Instantiate_algorithm.
[in]pers_string_lenLength of the personalization string, which may be zero.
Returns
0 on success, otherwise a non-zero failure from mbedtls_ctrl_drbg_seed.