Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_cmp_int (Results 1 – 14 of 14) sorted by relevance

/third_party/mbedtls/library/
Drsa_internal.c122 if( mbedtls_mpi_cmp_int( N, 0 ) <= 0 || in mbedtls_rsa_deduce_primes()
123 mbedtls_mpi_cmp_int( D, 1 ) <= 0 || in mbedtls_rsa_deduce_primes()
125 mbedtls_mpi_cmp_int( E, 1 ) <= 0 || in mbedtls_rsa_deduce_primes()
166 if( mbedtls_mpi_cmp_int( P, 1 ) != 0 ) in mbedtls_rsa_deduce_primes()
179 if( mbedtls_mpi_cmp_int( &K, 1 ) == 0 ) in mbedtls_rsa_deduce_primes()
185 if( mbedtls_mpi_cmp_int( P, 1 ) == 1 && in mbedtls_rsa_deduce_primes()
209 if( mbedtls_mpi_cmp_int( &K, 1 ) != 0 ) in mbedtls_rsa_deduce_primes()
236 if( D == NULL || mbedtls_mpi_cmp_int( D, 0 ) != 0 ) in mbedtls_rsa_deduce_private_exponent()
239 if( mbedtls_mpi_cmp_int( P, 1 ) <= 0 || in mbedtls_rsa_deduce_private_exponent()
240 mbedtls_mpi_cmp_int( Q, 1 ) <= 0 || in mbedtls_rsa_deduce_private_exponent()
[all …]
Drsa.c206 if( mbedtls_mpi_cmp_int( &ctx->N, 0 ) <= 0 || in rsa_check_context()
217 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context()
219 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 || in rsa_check_context()
231 if( mbedtls_mpi_cmp_int( &ctx->E, 0 ) <= 0 ) in rsa_check_context()
237 if( is_priv && mbedtls_mpi_cmp_int( &ctx->D, 0 ) <= 0 ) in rsa_check_context()
241 ( mbedtls_mpi_cmp_int( &ctx->DP, 0 ) <= 0 || in rsa_check_context()
242 mbedtls_mpi_cmp_int( &ctx->DQ, 0 ) <= 0 ) ) in rsa_check_context()
253 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context()
254 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 ) ) in rsa_check_context()
264 mbedtls_mpi_cmp_int( &ctx->QP, 0 ) <= 0 ) in rsa_check_context()
[all …]
Dbignum.c662 } while( mbedtls_mpi_cmp_int( X, 0 ) != 0 ); in mpi_write_hlp()
1282 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z ) in mbedtls_mpi_cmp_int() function
1806 if( mbedtls_mpi_cmp_int( B, 0 ) == 0 ) in mbedtls_mpi_div_mpi()
1879 if( mbedtls_mpi_cmp_int( &X, 0 ) < 0 ) in mbedtls_mpi_div_mpi()
1900 if( mbedtls_mpi_cmp_int( R, 0 ) == 0 ) in mbedtls_mpi_div_mpi()
1941 if( mbedtls_mpi_cmp_int( B, 0 ) < 0 ) in mbedtls_mpi_mod_mpi()
1946 while( mbedtls_mpi_cmp_int( R, 0 ) < 0 ) in mbedtls_mpi_mod_mpi()
2205 if( mbedtls_mpi_cmp_int( N, 0 ) <= 0 || ( N->p[0] & 1 ) == 0 ) in mbedtls_mpi_exp_mod()
2208 if( mbedtls_mpi_cmp_int( E, 0 ) < 0 ) in mbedtls_mpi_exp_mod()
2490 while( mbedtls_mpi_cmp_int( &TA, 0 ) != 0 ) in mbedtls_mpi_gcd()
[all …]
Decp.c969 return( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ); in mbedtls_ecp_is_zero()
1030 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in mbedtls_ecp_point_write_binary()
1289 if( ( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) || in ecp_modp()
1298 while( N->s < 0 && mbedtls_mpi_cmp_int( N, 0 ) != 0 ) in ecp_modp()
1340 while( (N).s < 0 && mbedtls_mpi_cmp_int( &(N), 0 ) != 0 ) \
1370 if( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ) in ecp_normalize_jac()
1517 nonzero = mbedtls_mpi_cmp_int( &Q->Y, 0 ) != 0; in ecp_safe_invert_jac()
1574 if( mbedtls_mpi_cmp_int( &grp->A, 0 ) != 0 ) in ecp_double_jac()
1654 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in ecp_add_mixed()
1657 if( Q->Z.p != NULL && mbedtls_mpi_cmp_int( &Q->Z, 0 ) == 0 ) in ecp_add_mixed()
[all …]
Decdsa.c301 if( mbedtls_mpi_cmp_int( d, 1 ) < 0 || mbedtls_mpi_cmp_mpi( d, &grp->N ) >= 0 ) in ecdsa_sign_restartable()
362 while( mbedtls_mpi_cmp_int( pr, 0 ) == 0 ); in ecdsa_sign_restartable()
400 while( mbedtls_mpi_cmp_int( s, 0 ) == 0 ); in ecdsa_sign_restartable()
647 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in ecdsa_verify_restartable()
648 mbedtls_mpi_cmp_int( s, 1 ) < 0 || mbedtls_mpi_cmp_mpi( s, &grp->N ) >= 0 ) in ecdsa_verify_restartable()
Ddhm.c140 if( mbedtls_mpi_cmp_int( param, 2 ) < 0 || in dhm_check_range()
213 if( mbedtls_mpi_cmp_int( &ctx->P, 0 ) == 0 ) in dhm_make_common()
402 if( mbedtls_mpi_cmp_int( &ctx->Vi, 1 ) != 0 ) in dhm_update_blinding()
Dpkparse.c725 if( mbedtls_mpi_cmp_int( X, 0 ) == 0 ) in asn1_get_nonzero_mpi()
/third_party/mbedtls/tests/suites/
Dtest_suite_mpi.data154 Base test mbedtls_mpi_cmp_int #1
155 mbedtls_mpi_cmp_int:693:693:0
157 Base test mbedtls_mpi_cmp_int #2
158 mbedtls_mpi_cmp_int:693:692:1
160 Base test mbedtls_mpi_cmp_int #3
161 mbedtls_mpi_cmp_int:693:694:-1
163 Base test mbedtls_mpi_cmp_int (Negative values) #1
164 mbedtls_mpi_cmp_int:-2:-2:0
166 Base test mbedtls_mpi_cmp_int (Negative values) #2
167 mbedtls_mpi_cmp_int:-2:-3:1
[all …]
Dtest_suite_dhm.function43 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->X, 1 ) > 0 );
46 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->GX, 1 ) > 0 );
Dtest_suite_mpi.function192 mbedtls_mpi_cmp_int( NULL, 42 ) );
551 void mbedtls_mpi_cmp_int( int input_X, int input_A, int result_CMP )
557 TEST_ASSERT( mbedtls_mpi_cmp_int( &X, input_A ) == result_CMP);
806 TEST_ASSERT( mbedtls_mpi_cmp_int( &X, 0 ) == 0 );
/third_party/mbedtls/include/mbedtls/
Dbignum.h615 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
Dcompat-1.3.h2080 #define mpi_cmp_int mbedtls_mpi_cmp_int
/third_party/ffmpeg/libavformat/
Drtmpdh.c183 #define bn_cmp_1(bn) mbedtls_mpi_cmp_int(bn, 1)
/third_party/mbedtls/scripts/data_files/
Drename-1.3-2.0.txt1663 mpi_cmp_int mbedtls_mpi_cmp_int