Function esp_idf_svc::sys::mbedtls_mpi_copy

source ยท
pub unsafe extern "C" fn mbedtls_mpi_copy(
    X: *mut mbedtls_mpi,
    Y: *const mbedtls_mpi,
) -> i32
Expand description

\brief Make a copy of an MPI.

\param X The destination MPI. This must point to an initialized MPI. \param Y The source MPI. This must point to an initialized MPI.

\note The limb-buffer in the destination MPI is enlarged if necessary to hold the value in the source MPI.

\return \c 0 if successful. \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed. \return Another negative error code on other kinds of failure.