Lines Matching refs:mbedtls_mpi_cmp_int
655 return mbedtls_mpi_cmp_int(&pt->Z, 0) == 0; in mbedtls_ecp_is_zero()
721 if (mbedtls_mpi_cmp_int(&P->Z, 0) == 0) { in mbedtls_ecp_point_write_binary()
1008 if ((N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) || in ecp_modp()
1016 while (N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) { in ecp_modp()
1073 while ((N)->s < 0 && mbedtls_mpi_cmp_int((N), 0) != 0) \
1188 mbedtls_mpi_cmp_int(X, c)
1202 unsigned char nonzero = mbedtls_mpi_cmp_int((X), 0) != 0; \
2731 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0 || in ecp_check_pubkey_sw()
2732 mbedtls_mpi_cmp_int(&pt->Y, 0) < 0 || in ecp_check_pubkey_sw()
2775 if (mbedtls_mpi_cmp_int(m, 0) == 0) { in mbedtls_ecp_mul_shortcuts()
2778 } else if (mbedtls_mpi_cmp_int(m, 1) == 0) { in mbedtls_ecp_mul_shortcuts()
2781 } else if (mbedtls_mpi_cmp_int(m, -1) == 0) { in mbedtls_ecp_mul_shortcuts()
2965 if (mbedtls_mpi_cmp_int(&XmP, 1) <= 0) { /* takes care of 0 and 1 */ in ecp_check_bad_points_mx()
3016 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0) { in ecp_check_pubkey_mx()
3031 if (mbedtls_mpi_cmp_int(&pt->Z, 1) != 0) { in mbedtls_ecp_check_pubkey()
3074 if (mbedtls_mpi_cmp_int(d, 1) < 0 || in mbedtls_ecp_check_privkey()