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
Examples
mbedtls_entropy_func() is referenced by 6 libraries and example projects: