mbedtls_mpi_core_check_zero_ct() function
Determine if a given MPI has the value \c 0 in constant time with respect to the value (but not with respect to the number of limbs).
Arguments
limbs
Number of limbs in \p A.
Return value
MBEDTLS_CT_FALSE if `A == 0` MBEDTLS_CT_TRUE if `A != 0`.
![]()
mbedtls_ct_condition_t is_x_non_zero = mbedtls_mpi_core_check_zero_ct(X->p, X->n);
mbedtls_mpi_core_check_zero_ct() is called by 1 function and calls 1 function:
![]()
mbedtls_mpi_core_check_zero_ct()
mbedtls_mpi_core_check_zero_ct():
![]()
mbedtls_mpi_core_check_zero_ct()