Lines Matching refs:condition

254  * condition ? if1 : if0.
256 * \param condition Condition to test.
257 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
258 * \param if0 Value to use if \p condition == MBEDTLS_CT_FALSE.
260 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise \c if0.
262 static inline size_t mbedtls_ct_size_if(mbedtls_ct_condition_t condition,
270 * condition ? if1 : if0.
272 * \param condition Condition to test.
273 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
274 * \param if0 Value to use if \p condition == MBEDTLS_CT_FALSE.
276 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise \c if0.
278 static inline unsigned mbedtls_ct_uint_if(mbedtls_ct_condition_t condition,
286 * condition ? if1 : if0.
288 * \param condition Condition to test.
289 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
290 * \param if0 Value to use if \p condition == MBEDTLS_CT_FALSE.
292 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise \c if0.
294 static inline mbedtls_ct_condition_t mbedtls_ct_bool_if(mbedtls_ct_condition_t condition,
304 * condition ? if1 : if0.
306 * \param condition Condition to test.
307 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
308 * \param if0 Value to use if \p condition == MBEDTLS_CT_FALSE.
310 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise \c if0.
312 static inline mbedtls_mpi_uint mbedtls_ct_mpi_uint_if(mbedtls_ct_condition_t condition, \
322 * condition ? if1 : 0.
324 * Functionally equivalent to mbedtls_ct_uint_if(condition, if1, 0) but
327 * \param condition Condition to test.
328 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
330 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise 0.
332 static inline unsigned mbedtls_ct_uint_if_else_0(mbedtls_ct_condition_t condition, unsigned if1);
338 * condition ? if1 : 0.
340 * Functionally equivalent to mbedtls_ct_bool_if(condition, if1, 0) but
343 * \param condition Condition to test.
344 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
346 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise 0.
348 static inline mbedtls_ct_condition_t mbedtls_ct_bool_if_else_0(mbedtls_ct_condition_t condition,
355 * condition ? if1 : 0.
357 * Functionally equivalent to mbedtls_ct_size_if(condition, if1, 0) but
360 * \param condition Condition to test.
361 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
363 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise 0.
365 static inline size_t mbedtls_ct_size_if_else_0(mbedtls_ct_condition_t condition, size_t if1);
373 * condition ? if1 : 0.
375 * Functionally equivalent to mbedtls_ct_mpi_uint_if(condition, if1, 0) but
378 * \param condition Condition to test.
379 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
381 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise 0.
383 static inline mbedtls_mpi_uint mbedtls_ct_mpi_uint_if_else_0(mbedtls_ct_condition_t condition,
406 * condition ? if1 : if0.
408 * \param condition Condition to test.
409 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
410 * \param if0 Value to use if \p condition == MBEDTLS_CT_FALSE.
412 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise \c if0.
414 static inline int mbedtls_ct_error_if(mbedtls_ct_condition_t condition, int if1, int if0);
420 * condition ? if1 : 0.
422 * Functionally equivalent to mbedtls_ct_error_if(condition, if1, 0) but
425 * \param condition Condition to test.
426 * \param if1 Value to use if \p condition == MBEDTLS_CT_TRUE.
428 * \return \c if1 if \p condition == MBEDTLS_CT_TRUE, otherwise 0.
430 static inline int mbedtls_ct_error_if_else_0(mbedtls_ct_condition_t condition, int if1);
440 * Regardless of the condition, every byte will be read once and written to
443 * \param condition Secret. Condition to test.
450 void mbedtls_ct_zeroize_if(mbedtls_ct_condition_t condition, void *buf, size_t len);
475 * if (condition) {
486 * \param condition The condition
488 * \param src1 Secret. Pointer to copy from (if \p condition == MBEDTLS_CT_TRUE).
491 * Pointer to copy from (if \p condition == MBEDTLS_CT_FALSE and \p src2 is not NULL). May be NULL.
495 void mbedtls_ct_memcpy_if(mbedtls_ct_condition_t condition,