Lines Matching refs:mbedtls_mpi_cmp_int
677 return( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ); in mbedtls_ecp_is_zero()
754 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in mbedtls_ecp_point_write_binary()
1034 if( ( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) || in ecp_modp()
1043 while( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) in ecp_modp()
1097 while( (N).s < 0 && mbedtls_mpi_cmp_int( &(N), 0 ) != 0 ) \
1172 if( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ) in ecp_normalize_jac()
1328 nonzero = mbedtls_mpi_cmp_int( &Q->Y, 0 ) != 0; in ecp_safe_invert_jac()
1388 if( mbedtls_mpi_cmp_int( &grp->A, 0 ) != 0 ) in ecp_double_jac()
1472 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in ecp_add_mixed()
1475 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 0 ) == 0 ) in ecp_add_mixed()
1481 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 1 ) != 0 ) in ecp_add_mixed()
1495 if( mbedtls_mpi_cmp_int( &T1, 0 ) == 0 ) in ecp_add_mixed()
1497 if( mbedtls_mpi_cmp_int( &T2, 0 ) == 0 ) in ecp_add_mixed()
2557 if( mbedtls_mpi_cmp_int( &pt->X, 0 ) < 0 || in ecp_check_pubkey_sw()
2558 mbedtls_mpi_cmp_int( &pt->Y, 0 ) < 0 || in ecp_check_pubkey_sw()
2609 if( mbedtls_mpi_cmp_int( m, 0 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
2613 else if( mbedtls_mpi_cmp_int( m, 1 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
2617 else if( mbedtls_mpi_cmp_int( m, -1 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
2620 if( mbedtls_mpi_cmp_int( &R->Y, 0 ) != 0 ) in mbedtls_ecp_mul_shortcuts()
2799 if( mbedtls_mpi_cmp_int( &XmP, 1 ) <= 0 ) /* takes care of 0 and 1 */ in ecp_check_bad_points_mx()
2854 if( mbedtls_mpi_cmp_int( &pt->X, 0 ) < 0 ) in ecp_check_pubkey_mx()
2871 if( mbedtls_mpi_cmp_int( &pt->Z, 1 ) != 0 ) in mbedtls_ecp_check_pubkey()
2914 if( mbedtls_mpi_cmp_int( d, 1 ) < 0 || in mbedtls_ecp_check_privkey()