| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | rsa_alt_helpers.c | 81 mbedtls_mpi_cmp_mpi(D, N) >= 0 || in mbedtls_rsa_deduce_primes() 83 mbedtls_mpi_cmp_mpi(E, N) >= 0) { in mbedtls_rsa_deduce_primes() 142 mbedtls_mpi_cmp_mpi(P, N) == -1) { in mbedtls_rsa_deduce_primes() 304 mbedtls_mpi_cmp_mpi(&K, N) != 0) { in mbedtls_rsa_validate_params() 317 mbedtls_mpi_cmp_mpi(D, N) >= 0 || in mbedtls_rsa_validate_params() 318 mbedtls_mpi_cmp_mpi(E, N) >= 0) { in mbedtls_rsa_validate_params()
|
| H A D | bignum.c | 986 int mbedtls_mpi_cmp_mpi(const mbedtls_mpi *X, const mbedtls_mpi *Y) in mbedtls_mpi_cmp_mpi() function 1045 return mbedtls_mpi_cmp_mpi(X, &Y); in mbedtls_mpi_cmp_int() 1500 while (mbedtls_mpi_cmp_mpi(&X, &Y) >= 0) { in mbedtls_mpi_div_mpi() 1526 } while (mbedtls_mpi_cmp_mpi(&T1, &T2) > 0); in mbedtls_mpi_div_mpi() 1599 while (mbedtls_mpi_cmp_mpi(R, B) >= 0) { in mbedtls_mpi_mod_mpi() 1803 if (mbedtls_mpi_cmp_mpi(X, N) >= 0) { in mbedtls_mpi_exp_mod_optionally_safe() 1944 if (mbedtls_mpi_cmp_mpi(&TA, &TB) >= 0) { in mbedtls_mpi_gcd() 2082 if (mbedtls_mpi_cmp_mpi(&TU, &TV) >= 0) { in mbedtls_mpi_inv_mod() 2097 while (mbedtls_mpi_cmp_mpi(&V1, N) >= 0) { in mbedtls_mpi_inv_mod() 2218 } while (mbedtls_mpi_cmp_mpi(&A, &W) >= 0 || in mpi_miller_rabin() [all …]
|
| H A D | ecp.c | 668 if (mbedtls_mpi_cmp_mpi(&P->X, &Q->X) == 0 && in mbedtls_ecp_point_cmp() 669 mbedtls_mpi_cmp_mpi(&P->Y, &Q->Y) == 0 && in mbedtls_ecp_point_cmp() 670 mbedtls_mpi_cmp_mpi(&P->Z, &Q->Z) == 0) { in mbedtls_ecp_point_cmp() 1024 while (mbedtls_mpi_cmp_mpi(N, &grp->P) >= 0) { in ecp_modp() 1100 while (mbedtls_mpi_cmp_mpi((N), &grp->P) >= 0) \ 1195 mbedtls_mpi_cmp_mpi(X, Y) 2737 mbedtls_mpi_cmp_mpi(&pt->X, &grp->P) >= 0 || in ecp_check_pubkey_sw() 2738 mbedtls_mpi_cmp_mpi(&pt->Y, &grp->P) >= 0) { in ecp_check_pubkey_sw() 2962 while (mbedtls_mpi_cmp_mpi(&XmP, P) >= 0) { in ecp_check_bad_points_mx() 2976 if (mbedtls_mpi_cmp_mpi(&XmP, &ecp_x25519_bad_point_1) == 0) { in ecp_check_bad_points_mx() [all …]
|
| H A D | ecdsa.c | 216 if (mbedtls_mpi_cmp_mpi(x, &grp->N) >= 0) { in derive_mpi() 263 if (mbedtls_mpi_cmp_int(d, 1) < 0 || mbedtls_mpi_cmp_mpi(d, &grp->N) >= 0) { in mbedtls_ecdsa_sign_restartable() 527 if (mbedtls_mpi_cmp_int(r, 1) < 0 || mbedtls_mpi_cmp_mpi(r, &grp->N) >= 0 || in mbedtls_ecdsa_verify_restartable() 528 mbedtls_mpi_cmp_int(s, 1) < 0 || mbedtls_mpi_cmp_mpi(s, &grp->N) >= 0) { in mbedtls_ecdsa_verify_restartable() 578 if (mbedtls_mpi_cmp_mpi(&R.X, r) != 0) { in mbedtls_ecdsa_verify_restartable()
|
| H A D | pkparse.c | 275 mbedtls_mpi_cmp_mpi(&grp->P, &ref.P) == 0 && in pk_group_id_from_group() 276 mbedtls_mpi_cmp_mpi(&grp->A, &ref.A) == 0 && in pk_group_id_from_group() 277 mbedtls_mpi_cmp_mpi(&grp->B, &ref.B) == 0 && in pk_group_id_from_group() 278 mbedtls_mpi_cmp_mpi(&grp->N, &ref.N) == 0 && in pk_group_id_from_group() 279 mbedtls_mpi_cmp_mpi(&grp->G.X, &ref.G.X) == 0 && in pk_group_id_from_group() 280 mbedtls_mpi_cmp_mpi(&grp->G.Z, &ref.G.Z) == 0 && in pk_group_id_from_group()
|
| H A D | dhm.c | 89 mbedtls_mpi_cmp_mpi(param, &U) > 0) { in dhm_check_range() 355 if (mbedtls_mpi_cmp_mpi(&ctx->X, &ctx->pX) != 0) { in dhm_update_blinding()
|
| H A D | rsa.c | 1183 mbedtls_mpi_cmp_mpi(&ctx->E, &ctx->N) >= 0) { in mbedtls_rsa_check_pubkey() 1226 if (mbedtls_mpi_cmp_mpi(&pub->N, &prv->N) != 0 || in mbedtls_rsa_check_pub_priv() 1227 mbedtls_mpi_cmp_mpi(&pub->E, &prv->E) != 0) { in mbedtls_rsa_check_pub_priv() 1259 if (mbedtls_mpi_cmp_mpi(&T, &ctx->N) >= 0) { in mbedtls_rsa_public() 1482 if (mbedtls_mpi_cmp_mpi(&T, &ctx->N) >= 0) { in mbedtls_rsa_private() 1562 if (mbedtls_mpi_cmp_mpi(&check_result_blinded, &input_blinded) != 0) { in mbedtls_rsa_private()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | sm2-dsa.c | 96 !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()
|
| H A D | mbed_helpers.c | 27 mbedtls_mpi_cmp_mpi(n, max) == -1) in mbed_gen_random_upto()
|
| H A D | bignum.c | 37 ret = mbedtls_mpi_cmp_mpi((const mbedtls_mpi *)a, in crypto_bignum_compare()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | mpi_desc.c | 154 int ret = mbedtls_mpi_cmp_mpi(a, b); in compare() 536 if (mbedtls_mpi_cmp_mpi(a, N) > 0) { in montgomery_reduce() 720 return mbedtls_mpi_cmp_mpi((mbedtls_mpi *)a, (mbedtls_mpi *)b); in crypto_bignum_compare()
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | bignum.h | 659 int mbedtls_mpi_cmp_mpi(const mbedtls_mpi *X, const mbedtls_mpi *Y);
|
| /optee_os/lib/libutee/ |
| H A D | tee_api_arith_mpi.c | 254 rc = mbedtls_mpi_cmp_mpi(&mpi1, &mpi2); in TEE_BigIntCmp() 796 if (mbedtls_mpi_cmp_mpi(&u, gcd) >= 0) { in mpi_egcd()
|