/third_party/mbedtls/library/ |
D | rsa_alt_helpers.c | 91 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 …]
|
D | rsa.c | 162 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 …]
|
D | bignum.c | 515 } 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 …]
|
D | ecp.c | 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() [all …]
|
D | ecdsa.c | 271 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()
|
D | dhm.c | 110 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()
|
D | pkparse.c | 696 if( mbedtls_mpi_cmp_int( X, 0 ) == 0 ) in asn1_get_nonzero_mpi()
|
D | psa_crypto.c | 1145 if( mbedtls_mpi_cmp_int( &mpi, 65537 ) == 0 ) in psa_get_rsa_public_exponent()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_mpi.data | 160 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 …]
|
D | test_suite_dhm.function | 62 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->X, 1 ) > 0 ); 65 TEST_ASSERT( mbedtls_mpi_cmp_int( &ctx->GX, 1 ) > 0 );
|
D | test_suite_mpi.function | 433 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 );
|
D | test_suite_ecp.function | 593 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 );
|
D | test_suite_asn1parse.function | 355 TEST_EQUAL( mbedtls_mpi_cmp_int( &actual_mpi, 0 ), 0 );
|
/third_party/mbedtls/programs/fuzz/ |
D | fuzz_pubkey.c | 59 if( mbedtls_mpi_cmp_int( &ecp->d, 0 ) != 0 ) in LLVMFuzzerTestOneInput()
|
/third_party/mbedtls/include/mbedtls/ |
D | bignum.h | 628 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
|
/third_party/ffmpeg/libavformat/ |
D | rtmpdh.c | 183 #define bn_cmp_1(bn) mbedtls_mpi_cmp_int(bn, 1)
|