mbedtls_ctr_drbg_seed() function
This function seeds and sets up the CTR_DRBG entropy source for future reseeds.
Arguments
ctx
The CTR_DRBG context to seed.
f_entropy
The entropy callback, taking as arguments the \p p_entropy context, the buffer to fill, and the length of the buffer.
p_entropy
The entropy context.
custom
Personalization data, that is device-specific identifiers. Can be NULL.
len
The length of the personalization data.
Return value
\c 0 on success. #MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED on failure.
Notes
Personalization data can be provided in addition to the more generic entropy source, to make this instantiation as unique as possible.
Examples
mbedtls_ctr_drbg_seed() is referenced by 6 libraries and example projects: