mbedtls_ct_size_mask_ge() function
Constant-flow mask generation for "greater or equal" 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
size_t mbedtls_ct_size_mask_ge(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 greater or equal than \p y, otherwise zero.