mbedtls_ct_size_mask_lt() function
Constant-flow mask generation for "less than" comparison: - if \p x < \p y, return all-bits 1, that is (size_t) -1 - otherwise, return all bits 0, that is 0 This function can be used to write constant-time code by replacing branches with bit operations using masks.
Syntax
static size_t mbedtls_ct_size_mask_lt(size_t x,
size_t y);
Arguments
x
The first value to analyze.
y
The second value to analyze.
Return value
All-bits-one if \p x is less than \p y, otherwise zero.