mbedtls_ctr_drbg_reseed() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_ctr_drbg_reseed() function

This function reseeds the CTR_DRBG context, that is extracts data from the entropy source.

Syntax

int mbedtls_ctr_drbg_reseed( mbedtls_ctr_drbg_context *ctx,     const unsigned char *additional,     size_t len );
Implemented in ctr_drbg.c:379

Arguments

ctx

The CTR_DRBG context.

additional

Additional data to add to the state. Can be NULL.

len

The length of the additional data.

Return value

\c 0 on success. #MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED on failure.

References

LocationReferrerText
ctr_drbg.c:379
int mbedtls_ctr_drbg_reseed( mbedtls_ctr_drbg_context *ctx,
ctr_drbg.h:242
int mbedtls_ctr_drbg_reseed( mbedtls_ctr_drbg_context *ctx,
ctr_drbg.c:110mbedtls_ctr_drbg_seed_entropy_len()
if( ( ret = mbedtls_ctr_drbg_reseed( ctx, custom, len ) ) != 0 )
ctr_drbg.c:472mbedtls_ctr_drbg_random_with_add()
if( ( ret = mbedtls_ctr_drbg_reseed( ctx, additional, add_len ) ) != 0 )

Call Tree

Functions calling mbedtls_ctr_drbg_reseed()
Functions called by mbedtls_ctr_drbg_reseed()
mbedtls_ctr_drbg_reseed()
Data read by mbedtls_ctr_drbg_reseed()
Data written by mbedtls_ctr_drbg_reseed()
mbedtls_ctr_drbg_reseed()::seed
mbedtls_ctr_drbg_reseed()::seedlen
mbedtls_ctr_drbg_reseed()::ret
all items filtered out
mbedtls_ctr_drbg_reseed()
mbedtls_ctr_drbg_reseed()::seedlen
mbedtls_ctr_drbg_reseed()::ret
all items filtered out
Type of mbedtls_ctr_drbg_reseed()
mbedtls_ctr_drbg_reseed()
size_t
all items filtered out