Searched refs:mbedtls_mpi_cmp_int (Results 1 – 11 of 11) sorted by relevance
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | rsa_internal.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() 266 if( mbedtls_mpi_cmp_int( &L, 0 ) != 0 ) in mbedtls_rsa_validate_crt() 286 if( mbedtls_mpi_cmp_int( &L, 0 ) != 0 ) in mbedtls_rsa_validate_crt() [all …]
|
A D | rsa.c | 164 if( mbedtls_mpi_cmp_int( &ctx->N, 0 ) <= 0 || in rsa_check_context() 189 if( mbedtls_mpi_cmp_int( &ctx->E, 0 ) <= 0 ) in rsa_check_context() 222 mbedtls_mpi_cmp_int( &ctx->QP, 0 ) <= 0 ) in rsa_check_context() 348 mbedtls_mpi_cmp_int( &ctx->N, 0 ) != 0 && in mbedtls_rsa_export_raw() 349 mbedtls_mpi_cmp_int( &ctx->P, 0 ) != 0 && in mbedtls_rsa_export_raw() 350 mbedtls_mpi_cmp_int( &ctx->Q, 0 ) != 0 && in mbedtls_rsa_export_raw() 351 mbedtls_mpi_cmp_int( &ctx->D, 0 ) != 0 && in mbedtls_rsa_export_raw() 352 mbedtls_mpi_cmp_int( &ctx->E, 0 ) != 0; in mbedtls_rsa_export_raw() 397 mbedtls_mpi_cmp_int( &ctx->E, 0 ) != 0; in mbedtls_rsa_export() 441 mbedtls_mpi_cmp_int( &ctx->E, 0 ) != 0; in mbedtls_rsa_export_crt() [all …]
|
A D | bignum.c | 1700 if( mbedtls_mpi_cmp_int( B, 0 ) == 0 ) in mbedtls_mpi_div_mpi() 1781 if( mbedtls_mpi_cmp_int( &X, 0 ) < 0 ) in mbedtls_mpi_div_mpi() 1844 if( mbedtls_mpi_cmp_int( B, 0 ) < 0 ) in mbedtls_mpi_mod_mpi() 1849 while( mbedtls_mpi_cmp_int( R, 0 ) < 0 ) in mbedtls_mpi_mod_mpi() 2093 if( mbedtls_mpi_cmp_int( E, 0 ) < 0 ) in mbedtls_mpi_exp_mod() 2502 if( mbedtls_mpi_cmp_int( N, min ) <= 0 ) in mbedtls_mpi_random() 2573 if( mbedtls_mpi_cmp_int( N, 1 ) <= 0 ) in mbedtls_mpi_inv_mod() 2584 if( mbedtls_mpi_cmp_int( &G, 1 ) != 0 ) in mbedtls_mpi_inv_mod() 2831 if( mbedtls_mpi_cmp_int( &XX, 0 ) == 0 || in mbedtls_mpi_is_prime_ext() 2832 mbedtls_mpi_cmp_int( &XX, 1 ) == 0 ) in mbedtls_mpi_is_prime_ext() [all …]
|
A D | ecp.c | 1324 if( mbedtls_mpi_cmp_int( &pt->Z, 0 ) == 0 ) in ecp_normalize_jac() 1624 if( mbedtls_mpi_cmp_int( &P->Z, 0 ) == 0 ) in ecp_add_mixed() 1647 if( mbedtls_mpi_cmp_int( &T1, 0 ) == 0 ) in ecp_add_mixed() 1649 if( mbedtls_mpi_cmp_int( &T2, 0 ) == 0 ) in ecp_add_mixed() 2750 if( mbedtls_mpi_cmp_int( &pt->X, 0 ) < 0 || in ecp_check_pubkey_sw() 2751 mbedtls_mpi_cmp_int( &pt->Y, 0 ) < 0 || in ecp_check_pubkey_sw() 2802 if( mbedtls_mpi_cmp_int( m, 0 ) == 0 ) in mbedtls_ecp_mul_shortcuts() 2806 else if( mbedtls_mpi_cmp_int( m, 1 ) == 0 ) in mbedtls_ecp_mul_shortcuts() 3047 if( mbedtls_mpi_cmp_int( &pt->X, 0 ) < 0 ) in ecp_check_pubkey_mx() 3064 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() 635 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in ecdsa_verify_restartable() 636 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() 173 if( mbedtls_mpi_cmp_int( &ctx->P, 0 ) == 0 ) in dhm_make_common() 361 if( mbedtls_mpi_cmp_int( &ctx->Vi, 1 ) != 0 ) in dhm_update_blinding()
|
A D | pkparse.c | 695 if( mbedtls_mpi_cmp_int( X, 0 ) == 0 ) in asn1_get_nonzero_mpi()
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | sm2-dsa.c | 95 } while (!mbedtls_mpi_cmp_int(&r, 0) || in sm2_mbedtls_dsa_sign() 193 if (mbedtls_mpi_cmp_int(&rprime, 1) < 0 || in sm2_mbedtls_dsa_verify() 201 if (mbedtls_mpi_cmp_int(&sprime, 1) < 0 || in sm2_mbedtls_dsa_verify() 220 if (!mbedtls_mpi_cmp_int(&t, 0)) { in sm2_mbedtls_dsa_verify()
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_arith_mpi.c | 239 rc = mbedtls_mpi_cmp_int(&mpi, shortVal); in TEE_BigIntCmpS32() 580 rc = !mbedtls_mpi_cmp_int(&gcd, 1); in TEE_BigIntRelativePrime() 625 if (!mbedtls_mpi_cmp_int(y_in, 0)) { in mpi_egcd() 649 while (mbedtls_mpi_cmp_int(&u, 0)) { in mpi_egcd()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | bignum.h | 635 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
|
A D | compat-1.3.h | 2053 #define mpi_cmp_int mbedtls_mpi_cmp_int
|
Completed in 39 milliseconds