Lines Matching refs:mbedtls_mpi_cmp_int
651 return( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ); in mbedtls_ecp_is_zero()
718 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in mbedtls_ecp_point_write_binary()
974 if( ( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) || in ecp_modp()
983 while( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) in ecp_modp()
1038 while( (N)->s < 0 && mbedtls_mpi_cmp_int( (N), 0 ) != 0 ) \
1162 mbedtls_mpi_cmp_int( X, c )
1176 unsigned char nonzero = mbedtls_mpi_cmp_int( (X), 0 ) != 0; \
2604 if( mbedtls_mpi_cmp_int( &pt->X, 0 ) < 0 || in ecp_check_pubkey_sw()
2605 mbedtls_mpi_cmp_int( &pt->Y, 0 ) < 0 || in ecp_check_pubkey_sw()
2658 if( mbedtls_mpi_cmp_int( m, 0 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
2663 else if( mbedtls_mpi_cmp_int( m, 1 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
2668 else if( mbedtls_mpi_cmp_int( m, -1 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
2844 if( mbedtls_mpi_cmp_int( &XmP, 1 ) <= 0 ) /* takes care of 0 and 1 */ in ecp_check_bad_points_mx()
2899 if( mbedtls_mpi_cmp_int( &pt->X, 0 ) < 0 ) in ecp_check_pubkey_mx()
2913 if( mbedtls_mpi_cmp_int( &pt->Z, 1 ) != 0 ) in mbedtls_ecp_check_pubkey()
2953 if( mbedtls_mpi_cmp_int( d, 1 ) < 0 || in mbedtls_ecp_check_privkey()