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() is called by 2 functions and calls 10 functions:
![]()
mbedtls_entropy_func()
mbedtls_entropy_func() reads 6 variables and writes 2 variables:
![]()
mbedtls_entropy_func()