Function esp_idf_sys::mbedtls_entropy_func
source ยท pub unsafe extern "C" fn mbedtls_entropy_func(
data: *mut c_void,
output: *mut c_uchar,
len: usize,
) -> c_int
Expand description
\brief Retrieve entropy from the accumulator (Maximum length: MBEDTLS_ENTROPY_BLOCK_SIZE) (Thread-safe if MBEDTLS_THREADING_C is enabled)
\param data Entropy context \param output Buffer to fill \param len Number of bytes desired, must be at most MBEDTLS_ENTROPY_BLOCK_SIZE
\return 0 if successful, or MBEDTLS_ERR_ENTROPY_SOURCE_FAILED