mbedtls_mpi_core_lt_ct() function
Check if one unsigned MPI is less than another in constant time.
Arguments
A
The left-hand MPI. This must point to an array of limbs with the same allocated length as \p B.
B
The right-hand MPI. This must point to an array of limbs with the same allocated length as \p A.
limbs
The number of limbs in \p A and \p B. This must not be 0.
Return value
MBEDTLS_CT_TRUE if \p A is less than \p B. MBEDTLS_CT_FALSE if \p A is greater than or equal to \p B.
![]()
lt_upper = mbedtls_mpi_core_lt_ct(X, N, limbs);
mbedtls_mpi_core_lt_ct() is called by 2 functions and calls 5 functions:
![]()
mbedtls_mpi_core_lt_ct()
mbedtls_mpi_core_lt_ct():
![]()
mbedtls_mpi_core_lt_ct()