mbedtls_ct_error_if_else_0() function
Choose between an error value and 0. The error value must be in the range [-32767..0]. Functionally equivalent to: condition ? if1 : 0. Functionally equivalent to mbedtls_ct_error_if(condition, if1, 0) but results in smaller code size.
Arguments
condition
Condition to test.
if1
Value to use if \p condition == MBEDTLS_CT_TRUE.
Return value
\c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise 0.
mbedtls_ct_error_if_else_0() is called by 4 functions:
![]()
mbedtls_ct_error_if_else_0()