Home
last modified time | relevance | path

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

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Drsa_internal.c93 mbedtls_mpi_cmp_mpi( D, N ) >= 0 || in mbedtls_rsa_deduce_primes()
95 mbedtls_mpi_cmp_mpi( E, N ) >= 0 ) in mbedtls_rsa_deduce_primes()
155 mbedtls_mpi_cmp_mpi( P, N ) == -1 ) in mbedtls_rsa_deduce_primes()
379 mbedtls_mpi_cmp_mpi( &K, N ) != 0 ) in mbedtls_rsa_validate_params()
394 mbedtls_mpi_cmp_mpi( D, N ) >= 0 || in mbedtls_rsa_validate_params()
395 mbedtls_mpi_cmp_mpi( E, N ) >= 0 ) in mbedtls_rsa_validate_params()
A Decp.c841 if( mbedtls_mpi_cmp_mpi( &P->X, &Q->X ) == 0 && in mbedtls_ecp_point_cmp()
842 mbedtls_mpi_cmp_mpi( &P->Y, &Q->Y ) == 0 && in mbedtls_ecp_point_cmp()
843 mbedtls_mpi_cmp_mpi( &P->Z, &Q->Z ) == 0 ) in mbedtls_ecp_point_cmp()
1198 while( mbedtls_mpi_cmp_mpi( N, &grp->P ) >= 0 ) in ecp_modp()
2778 if( mbedtls_mpi_cmp_mpi( &YY, &RHS ) != 0 ) in ecp_check_pubkey_sw()
2986 while( mbedtls_mpi_cmp_mpi( &XmP, P ) >= 0 ) in ecp_check_bad_points_mx()
3019 if( mbedtls_mpi_cmp_mpi( &XmP, P ) == 0 ) in ecp_check_bad_points_mx()
3108 mbedtls_mpi_cmp_mpi( d, &grp->N ) >= 0 ) in mbedtls_ecp_check_privkey()
3385 if( mbedtls_mpi_cmp_mpi( &Q.X, &prv->Q.X ) || in mbedtls_ecp_check_pub_priv()
3386 mbedtls_mpi_cmp_mpi( &Q.Y, &prv->Q.Y ) || in mbedtls_ecp_check_pub_priv()
[all …]
A Dbignum.c1156 return( mbedtls_mpi_cmp_mpi( X, &Y ) ); in mbedtls_mpi_cmp_int()
1744 while( mbedtls_mpi_cmp_mpi( &X, &Y ) >= 0 ) in mbedtls_mpi_div_mpi()
1852 while( mbedtls_mpi_cmp_mpi( R, B ) >= 0 ) in mbedtls_mpi_mod_mpi()
2167 if( mbedtls_mpi_cmp_mpi( A, N ) >= 0 ) in mbedtls_mpi_exp_mod()
2648 while( mbedtls_mpi_cmp_mpi( &V1, N ) >= 0 ) in mbedtls_mpi_inv_mod()
2777 if( mbedtls_mpi_cmp_mpi( &A, &W ) == 0 || in mpi_miller_rabin()
3053 if( mbedtls_mpi_cmp_mpi( &X, &U ) != 0 ) in mbedtls_mpi_self_test()
3078 if( mbedtls_mpi_cmp_mpi( &X, &U ) != 0 || in mbedtls_mpi_self_test()
3079 mbedtls_mpi_cmp_mpi( &Y, &V ) != 0 ) in mbedtls_mpi_self_test()
3101 if( mbedtls_mpi_cmp_mpi( &X, &U ) != 0 ) in mbedtls_mpi_self_test()
[all …]
A Dpkparse.c400 mbedtls_mpi_cmp_mpi( &grp->P, &ref.P ) == 0 && in pk_group_id_from_group()
401 mbedtls_mpi_cmp_mpi( &grp->A, &ref.A ) == 0 && in pk_group_id_from_group()
402 mbedtls_mpi_cmp_mpi( &grp->B, &ref.B ) == 0 && in pk_group_id_from_group()
403 mbedtls_mpi_cmp_mpi( &grp->N, &ref.N ) == 0 && in pk_group_id_from_group()
404 mbedtls_mpi_cmp_mpi( &grp->G.X, &ref.G.X ) == 0 && in pk_group_id_from_group()
405 mbedtls_mpi_cmp_mpi( &grp->G.Z, &ref.G.Z ) == 0 && in pk_group_id_from_group()
A Decdsa.c239 if( mbedtls_mpi_cmp_mpi( x, &grp->N ) >= 0 ) in derive_mpi()
271 if( mbedtls_mpi_cmp_int( d, 1 ) < 0 || mbedtls_mpi_cmp_mpi( d, &grp->N ) >= 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()
687 if( mbedtls_mpi_cmp_mpi( &R.X, r ) != 0 ) in ecdsa_verify_restartable()
A Ddhm.c111 mbedtls_mpi_cmp_mpi( param, &U ) > 0 ) in dhm_check_range()
348 if( mbedtls_mpi_cmp_mpi( &ctx->X, &ctx->pX ) != 0 ) in dhm_update_blinding()
A Drsa.c654 mbedtls_mpi_cmp_mpi( &ctx->E, &ctx->N ) >= 0 ) in mbedtls_rsa_check_pubkey()
707 if( mbedtls_mpi_cmp_mpi( &pub->N, &prv->N ) != 0 || in mbedtls_rsa_check_pub_priv()
708 mbedtls_mpi_cmp_mpi( &pub->E, &prv->E ) != 0 ) in mbedtls_rsa_check_pub_priv()
742 if( mbedtls_mpi_cmp_mpi( &T, &ctx->N ) >= 0 ) in mbedtls_rsa_public()
938 if( mbedtls_mpi_cmp_mpi( &T, &ctx->N ) >= 0 ) in mbedtls_rsa_private()
1038 if( mbedtls_mpi_cmp_mpi( &C, &I ) != 0 ) in mbedtls_rsa_private()
/optee_os-3.20.0/lib/libmbedtls/core/
A Dsm2-dsa.c96 !mbedtls_mpi_cmp_mpi(&tmp, &grp.N)); in sm2_mbedtls_dsa_sign()
194 mbedtls_mpi_cmp_mpi(&rprime, &grp.N) >= 0) { in sm2_mbedtls_dsa_verify()
202 mbedtls_mpi_cmp_mpi(&sprime, &grp.N) >= 0) { in sm2_mbedtls_dsa_verify()
252 if (mbedtls_mpi_cmp_mpi(&R, &rprime)) { in sm2_mbedtls_dsa_verify()
A Dmbed_helpers.c27 mbedtls_mpi_cmp_mpi(n, max) == -1) in mbed_gen_random_upto()
A Dbignum.c37 ret = mbedtls_mpi_cmp_mpi((const mbedtls_mpi *)a, in crypto_bignum_compare()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dmpi_desc.c155 int ret = mbedtls_mpi_cmp_mpi(a, b); in compare()
537 if (mbedtls_mpi_cmp_mpi(a, N) > 0) { in montgomery_reduce()
721 return mbedtls_mpi_cmp_mpi((mbedtls_mpi *)a, (mbedtls_mpi *)b); in crypto_bignum_compare()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbignum.h605 int mbedtls_mpi_cmp_mpi( const mbedtls_mpi *X, const mbedtls_mpi *Y );
A Dcompat-1.3.h2054 #define mpi_cmp_mpi mbedtls_mpi_cmp_mpi
/optee_os-3.20.0/lib/libutee/
A Dtee_api_arith_mpi.c224 rc = mbedtls_mpi_cmp_mpi(&mpi1, &mpi2); in TEE_BigIntCmp()
671 if (mbedtls_mpi_cmp_mpi(&u, gcd) >= 0) { in mpi_egcd()

Completed in 44 milliseconds