Function esp_idf_hal::sys::mbedtls_mpi_read_file
source ยท pub unsafe extern "C" fn mbedtls_mpi_read_file(
X: *mut mbedtls_mpi,
radix: i32,
fin: *mut __sFILE,
) -> i32
Expand description
\brief Read an MPI from a line in an opened file.
\param X The destination MPI. This must point to an initialized MPI. \param radix The numeric base of the string representation used in the source line. \param fin The input file handle to use. This must not be \c NULL.
\note On success, this function advances the file stream to the end of the current line or to EOF.
The function returns \c 0 on an empty line.
Leading whitespaces are ignored, as is a
'0x' prefix for radix \c 16.
\return \c 0 if successful. \return #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if the file read buffer is too small. \return Another negative error code on failure.