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

◆ nrf_cc3xx_platform_hmac_drbg_init()

int nrf_cc3xx_platform_hmac_drbg_init ( nrf_cc3xx_platform_hmac_drbg_context_t *const context,
const uint8_t * pers_string,
size_t pers_string_len )

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

Function that initializes an hmac_drbg context.

Note
If the context is NULL the function uses an internal context.
Parameters
[in,out]contextPointer to structure holding the hmac_drbg context which must be used for subsequent calls to generate random data.
[in]pers_stringPersonalization string used for the HMAC_DRBG_Instantiate_algorithm.
[in]pers_string_lenLength of the personalization string in bytes, which may be zero.
Returns
NRF_CC3XX_PLATFORM_SUCCESS on success, otherwise a non-zero failure according to the API mbedtls_hmac_drbg_seed.