esp_idf_hal::sys

Function mbedtls_ctr_drbg_write_seed_file

Source
pub unsafe extern "C" fn mbedtls_ctr_drbg_write_seed_file(
    ctx: *mut mbedtls_ctr_drbg_context,
    path: *const u8,
) -> i32
Expand description

\brief This function writes a seed file.

\param ctx The CTR_DRBG context. \param path The name of the file.

\return \c 0 on success. \return #MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR on file error. \return #MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED on reseed failure.