Searched refs:mbedtls_mpi_cmp_int (Results 1 – 15 of 15) sorted by relevance
/mbedtls-development/library/ |
A 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() 178 if( mbedtls_mpi_cmp_int( &K, 1 ) != 0 ) in mbedtls_rsa_deduce_primes() 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() 210 mbedtls_mpi_cmp_int( E, 0 ) == 0 ) in mbedtls_rsa_deduce_private_exponent() 354 if( mbedtls_mpi_cmp_int( P, 1 ) <= 0 || in mbedtls_rsa_validate_params() 355 mbedtls_mpi_cmp_int( Q, 1 ) <= 0 ) in mbedtls_rsa_validate_params() [all …]
|
A D | rsa.c | 176 if( mbedtls_mpi_cmp_int( &ctx->N, 0 ) <= 0 || in rsa_check_context() 201 if( mbedtls_mpi_cmp_int( &ctx->E, 0 ) <= 0 ) in rsa_check_context() 234 mbedtls_mpi_cmp_int( &ctx->QP, 0 ) <= 0 ) in rsa_check_context() 360 mbedtls_mpi_cmp_int( &ctx->N, 0 ) != 0 && in mbedtls_rsa_export_raw() 361 mbedtls_mpi_cmp_int( &ctx->P, 0 ) != 0 && in mbedtls_rsa_export_raw() 362 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) != 0 && in mbedtls_rsa_export_raw() 363 mbedtls_mpi_cmp_int( &ctx->D, 0 ) != 0 && in mbedtls_rsa_export_raw() 364 mbedtls_mpi_cmp_int( &ctx->E, 0 ) != 0; in mbedtls_rsa_export_raw() 409 mbedtls_mpi_cmp_int( &ctx->E, 0 ) != 0; in mbedtls_rsa_export() 453 mbedtls_mpi_cmp_int( &ctx->E, 0 ) != 0; in mbedtls_rsa_export_crt() [all …]
|
A D | bignum.c | 1908 if( mbedtls_mpi_cmp_int( B, 0 ) == 0 ) in mbedtls_mpi_div_mpi() 1989 if( mbedtls_mpi_cmp_int( &X, 0 ) < 0 ) in mbedtls_mpi_div_mpi() 2052 if( mbedtls_mpi_cmp_int( B, 0 ) < 0 ) in mbedtls_mpi_mod_mpi() 2057 while( mbedtls_mpi_cmp_int( R, 0 ) < 0 ) in mbedtls_mpi_mod_mpi() 2318 if( mbedtls_mpi_cmp_int( E, 0 ) < 0 ) in mbedtls_mpi_exp_mod() 2716 if( mbedtls_mpi_cmp_int( N, min ) <= 0 ) in mbedtls_mpi_random() 2787 if( mbedtls_mpi_cmp_int( N, 1 ) <= 0 ) in mbedtls_mpi_inv_mod() 2796 if( mbedtls_mpi_cmp_int( &G, 1 ) != 0 ) in mbedtls_mpi_inv_mod() 3043 if( mbedtls_mpi_cmp_int( &XX, 0 ) == 0 || in mbedtls_mpi_is_prime_ext() 3044 mbedtls_mpi_cmp_int( &XX, 1 ) == 0 ) in mbedtls_mpi_is_prime_ext() [all …]
|
A D | ecp.c | 1172 if( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ) in ecp_normalize_jac() 1472 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 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() 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() [all …]
|
A 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()
|
A 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()
|
A D | pkparse.c | 696 if( mbedtls_mpi_cmp_int( X, 0 ) == 0 ) in asn1_get_nonzero_mpi()
|
A D | psa_crypto.c | 1148 if( mbedtls_mpi_cmp_int( &mpi, 65537 ) == 0 ) in psa_get_rsa_public_exponent()
|
/mbedtls-development/programs/fuzz/ |
A D | fuzz_pubkey.c | 59 if( mbedtls_mpi_cmp_int( &ecp->d, 0 ) != 0 ) in LLVMFuzzerTestOneInput()
|
/mbedtls-development/tests/suites/ |
A 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 …]
|
A 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 );
|
A 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 );
|
A 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 );
|
A D | test_suite_asn1parse.function | 355 TEST_EQUAL( mbedtls_mpi_cmp_int( &actual_mpi, 0 ), 0 );
|
/mbedtls-development/include/mbedtls/ |
A D | bignum.h | 628 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
|
Completed in 43 milliseconds