esp_idf_hal::sys

Function mbedtls_ctr_drbg_random

Source
pub unsafe extern "C" fn mbedtls_ctr_drbg_random(
    p_rng: *mut c_void,
    output: *mut u8,
    output_len: usize,
) -> i32
Expand description

\param p_rng The CTR_DRBG context. This must be a pointer to a #mbedtls_ctr_drbg_context structure. \param output The buffer to fill. \param output_len The length of the buffer in bytes.

\return \c 0 on success. \return #MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED or #MBEDTLS_ERR_CTR_DRBG_REQUEST_TOO_BIG on failure.