Function esp_idf_svc::hal::sys::mbedtls_mpi_lt_mpi_ct
source ยท pub unsafe extern "C" fn mbedtls_mpi_lt_mpi_ct(
X: *const mbedtls_mpi,
Y: *const mbedtls_mpi,
ret: *mut u32,
) -> i32
Expand description
\brief Check if an MPI is less than the other in constant time.
\param X The left-hand MPI. This must point to an initialized MPI with the same allocated length as Y. \param Y The right-hand MPI. This must point to an initialized MPI with the same allocated length as X. \param ret The result of the comparison: \c 1 if \p X is less than \p Y. \c 0 if \p X is greater than or equal to \p Y.
\return 0 on success. \return MBEDTLS_ERR_MPI_BAD_INPUT_DATA if the allocated length of the two input MPIs is not the same.