mbedTLS + 0/6 examples
CodeScope will show references to mbedtls_ctr_drbg_seed() from the following samples and libraries:
Examples
STM32469I_EVAL
Applications
mbedTLS
STM324x9I_EVAL
Applications
mbedTLS
STM324xG_EVAL
Applications
mbedTLS
 
Symbols
loading...
Files
loading...

mbedtls_ctr_drbg_seed() function

This function seeds and sets up the CTR_DRBG entropy source for future reseeds.

Syntax

int mbedtls_ctr_drbg_seed( mbedtls_ctr_drbg_context *ctx,     int (*f_entropy)(void *, unsigned char *, size_t),     void *p_entropy,     const unsigned char *custom,     size_t len );
Implemented in ctr_drbg.c:117

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.

References

LocationText
ctr_drbg.c:117
int mbedtls_ctr_drbg_seed( mbedtls_ctr_drbg_context *ctx,
ctr_drbg.h:182
int mbedtls_ctr_drbg_seed( mbedtls_ctr_drbg_context *ctx,

Call Tree

Functions called by mbedtls_ctr_drbg_seed()
mbedtls_ctr_drbg_seed()