Document ct_lt_mpi_uint

This commit is contained in:
Janos Follath 2019-10-14 09:09:32 +01:00
parent 4abc172360
commit 3f6f0e44eb

View file

@ -1148,6 +1148,13 @@ int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y )
return( 0 );
}
/** Decide if an integer is less than the other, without branches.
*
* \param x First integer.
* \param y Second integer.
*
* \return 1 if \p x is less than \p y, 0 otherwise
*/
static unsigned ct_lt_mpi_uint( const mbedtls_mpi_uint x,
const mbedtls_mpi_uint y )
{