mbedtls_entropy_func() function
Retrieve entropy from the accumulator (Maximum length: MBEDTLS_ENTROPY_BLOCK_SIZE) (Thread-safe if MBEDTLS_THREADING_C is enabled)
Syntax
int mbedtls_entropy_func( void *data,
unsigned char *output,
size_t len );
Arguments
len
Number of bytes desired, must be at most MBEDTLS_ENTROPY_BLOCK_SIZE
Return value
0 if successful, or MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
mbedtls_entropy_func() calls 8 functions:
![]()
mbedtls_entropy_func()
mbedtls_entropy_func() reads 4 variables and writes 1 variable:
![]()
mbedtls_entropy_func()