Lines Matching refs:mbedtls_mpi_cmp_int
659 return mbedtls_mpi_cmp_int(&pt->Z, 0) == 0; in mbedtls_ecp_is_zero()
725 if (mbedtls_mpi_cmp_int(&P->Z, 0) == 0) { in mbedtls_ecp_point_write_binary()
1012 if ((N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) || in ecp_modp()
1020 while (N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) { in ecp_modp()
1077 while ((N)->s < 0 && mbedtls_mpi_cmp_int((N), 0) != 0) \
1192 mbedtls_mpi_cmp_int(X, c)
1206 unsigned char nonzero = mbedtls_mpi_cmp_int((X), 0) != 0; \
2735 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0 || in ecp_check_pubkey_sw()
2736 mbedtls_mpi_cmp_int(&pt->Y, 0) < 0 || in ecp_check_pubkey_sw()
2779 if (mbedtls_mpi_cmp_int(m, 0) == 0) { in mbedtls_ecp_mul_shortcuts()
2782 } else if (mbedtls_mpi_cmp_int(m, 1) == 0) { in mbedtls_ecp_mul_shortcuts()
2785 } else if (mbedtls_mpi_cmp_int(m, -1) == 0) { in mbedtls_ecp_mul_shortcuts()
2969 if (mbedtls_mpi_cmp_int(&XmP, 1) <= 0) { /* takes care of 0 and 1 */ in ecp_check_bad_points_mx()
3020 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0) { in ecp_check_pubkey_mx()
3035 if (mbedtls_mpi_cmp_int(&pt->Z, 1) != 0) { in mbedtls_ecp_check_pubkey()
3078 if (mbedtls_mpi_cmp_int(d, 1) < 0 || in mbedtls_ecp_check_privkey()