Home
last modified time | relevance | path

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

/third_party/mbedtls/library/
Drsa_alt_helpers.c91 if( mbedtls_mpi_cmp_int( N, 0 ) <= 0 || in mbedtls_rsa_deduce_primes()
92 mbedtls_mpi_cmp_int( D, 1 ) <= 0 || in mbedtls_rsa_deduce_primes()
94 mbedtls_mpi_cmp_int( E, 1 ) <= 0 || in mbedtls_rsa_deduce_primes()
135 if( mbedtls_mpi_cmp_int( P, 1 ) != 0 ) in mbedtls_rsa_deduce_primes()
148 if( mbedtls_mpi_cmp_int( &K, 1 ) == 0 ) in mbedtls_rsa_deduce_primes()
154 if( mbedtls_mpi_cmp_int( P, 1 ) == 1 && in mbedtls_rsa_deduce_primes()
178 if( mbedtls_mpi_cmp_int( &K, 1 ) != 0 ) in mbedtls_rsa_deduce_primes()
205 if( D == NULL || mbedtls_mpi_cmp_int( D, 0 ) != 0 ) in mbedtls_rsa_deduce_private_exponent()
208 if( mbedtls_mpi_cmp_int( P, 1 ) <= 0 || in mbedtls_rsa_deduce_private_exponent()
209 mbedtls_mpi_cmp_int( Q, 1 ) <= 0 || in mbedtls_rsa_deduce_private_exponent()
[all …]
Drsa.c162 if( mbedtls_mpi_cmp_int( &ctx->N, 0 ) <= 0 || in rsa_check_context()
173 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context()
175 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 || in rsa_check_context()
187 if( mbedtls_mpi_cmp_int( &ctx->E, 0 ) <= 0 ) in rsa_check_context()
193 if( is_priv && mbedtls_mpi_cmp_int( &ctx->D, 0 ) <= 0 ) in rsa_check_context()
197 ( mbedtls_mpi_cmp_int( &ctx->DP, 0 ) <= 0 || in rsa_check_context()
198 mbedtls_mpi_cmp_int( &ctx->DQ, 0 ) <= 0 ) ) in rsa_check_context()
209 ( mbedtls_mpi_cmp_int( &ctx->P, 0 ) <= 0 || in rsa_check_context()
210 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) <= 0 ) ) in rsa_check_context()
220 mbedtls_mpi_cmp_int( &ctx->QP, 0 ) <= 0 ) in rsa_check_context()
[all …]
Dbignum.c515 } while( mbedtls_mpi_cmp_int( X, 0 ) != 0 ); in mpi_write_hlp()
1098 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z ) in mbedtls_mpi_cmp_int() function
1653 if( mbedtls_mpi_cmp_int( B, 0 ) == 0 ) in mbedtls_mpi_div_mpi()
1734 if( mbedtls_mpi_cmp_int( &X, 0 ) < 0 ) in mbedtls_mpi_div_mpi()
1755 if( mbedtls_mpi_cmp_int( R, 0 ) == 0 ) in mbedtls_mpi_div_mpi()
1797 if( mbedtls_mpi_cmp_int( B, 0 ) < 0 ) in mbedtls_mpi_mod_mpi()
1802 while( mbedtls_mpi_cmp_int( R, 0 ) < 0 ) in mbedtls_mpi_mod_mpi()
2024 if( mbedtls_mpi_cmp_int( N, 0 ) <= 0 || ( N->p[0] & 1 ) == 0 ) in mbedtls_mpi_exp_mod()
2027 if( mbedtls_mpi_cmp_int( E, 0 ) < 0 ) in mbedtls_mpi_exp_mod()
2310 while( mbedtls_mpi_cmp_int( &TA, 0 ) != 0 ) in mbedtls_mpi_gcd()
[all …]
Decp.c677 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()
[all …]
Decdsa.c271 if( mbedtls_mpi_cmp_int( d, 1 ) < 0 || mbedtls_mpi_cmp_mpi( d, &grp->N ) >= 0 ) in ecdsa_sign_restartable()
332 while( mbedtls_mpi_cmp_int( pr, 0 ) == 0 ); in ecdsa_sign_restartable()
370 while( mbedtls_mpi_cmp_int( s, 0 ) == 0 ); in ecdsa_sign_restartable()
560 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in ecdsa_verify_restartable()
561 mbedtls_mpi_cmp_int( s, 1 ) < 0 || mbedtls_mpi_cmp_mpi( s, &grp->N ) >= 0 ) in ecdsa_verify_restartable()
Ddhm.c110 if( mbedtls_mpi_cmp_int( param, 2 ) < 0 || in dhm_check_range()
212 if( mbedtls_mpi_cmp_int( &ctx->P, 0 ) == 0 ) in dhm_make_common()
397 if( mbedtls_mpi_cmp_int( &ctx->Vi, 1 ) != 0 ) in dhm_update_blinding()
Dpkparse.c696 if( mbedtls_mpi_cmp_int( X, 0 ) == 0 ) in asn1_get_nonzero_mpi()
Dpsa_crypto.c1145 if( mbedtls_mpi_cmp_int( &mpi, 65537 ) == 0 ) in psa_get_rsa_public_exponent()
/third_party/mbedtls/tests/suites/
Dtest_suite_mpi.data160 Base test mbedtls_mpi_cmp_int #1
161 mbedtls_mpi_cmp_int:693:693:0
163 Base test mbedtls_mpi_cmp_int #2
164 mbedtls_mpi_cmp_int:693:692:1
166 Base test mbedtls_mpi_cmp_int #3
167 mbedtls_mpi_cmp_int:693:694:-1
169 Base test mbedtls_mpi_cmp_int (Negative values) #1
170 mbedtls_mpi_cmp_int:-2:-2:0
172 Base test mbedtls_mpi_cmp_int (Negative values) #2
173 mbedtls_mpi_cmp_int:-2:-3:1
[all …]
Dtest_suite_dhm.function62 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->X, 1 ) > 0 );
65 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->GX, 1 ) > 0 );
Dtest_suite_mpi.function433 void mbedtls_mpi_cmp_int( int input_X, int input_A, int result_CMP )
439 TEST_ASSERT( mbedtls_mpi_cmp_int( &X, input_A ) == result_CMP);
688 TEST_ASSERT( mbedtls_mpi_cmp_int( &X, 0 ) == 0 );
1312 TEST_ASSERT( mbedtls_mpi_cmp_int( &result, min ) >= 0 );
1394 TEST_ASSERT( mbedtls_mpi_cmp_int( &result, min ) >= 0 );
Dtest_suite_ecp.function593 TEST_ASSERT( mbedtls_mpi_cmp_int( &Y, 0 ) == 0 );
595 TEST_ASSERT( mbedtls_mpi_cmp_int( &Z, 1 ) == 0 );
596 TEST_ASSERT( mbedtls_mpi_cmp_int( &P.Z, 1 ) == 0 );
Dtest_suite_asn1parse.function355 TEST_EQUAL( mbedtls_mpi_cmp_int( &actual_mpi, 0 ), 0 );
/third_party/mbedtls/programs/fuzz/
Dfuzz_pubkey.c59 if( mbedtls_mpi_cmp_int( &ecp->d, 0 ) != 0 ) in LLVMFuzzerTestOneInput()
/third_party/mbedtls/include/mbedtls/
Dbignum.h628 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
/third_party/ffmpeg/libavformat/
Drtmpdh.c183 #define bn_cmp_1(bn) mbedtls_mpi_cmp_int(bn, 1)