esp_idf_hal::sys

Function mbedtls_ctr_drbg_update_seed_file

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

\brief This function reads and updates a seed file. The seed is added to this instance.

\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. \return #MBEDTLS_ERR_CTR_DRBG_INPUT_TOO_BIG if the existing seed file is too large.