| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | rsa_alt_helpers.c | 82 mbedtls_mpi_cmp_mpi(D, N) >= 0 || in mbedtls_rsa_deduce_primes() 84 mbedtls_mpi_cmp_mpi(E, N) >= 0) { in mbedtls_rsa_deduce_primes() 143 mbedtls_mpi_cmp_mpi(P, N) == -1) { in mbedtls_rsa_deduce_primes() 312 mbedtls_mpi_cmp_mpi(&K, N) != 0) { in mbedtls_rsa_validate_params() 325 mbedtls_mpi_cmp_mpi(D, N) >= 0 || in mbedtls_rsa_validate_params() 326 mbedtls_mpi_cmp_mpi(E, N) >= 0) { in mbedtls_rsa_validate_params()
|
| H A D | ecp.c | 669 if (mbedtls_mpi_cmp_mpi(&P->X, &Q->X) == 0 && in mbedtls_ecp_point_cmp() 670 mbedtls_mpi_cmp_mpi(&P->Y, &Q->Y) == 0 && in mbedtls_ecp_point_cmp() 671 mbedtls_mpi_cmp_mpi(&P->Z, &Q->Z) == 0) { in mbedtls_ecp_point_cmp() 1025 while (mbedtls_mpi_cmp_mpi(N, &grp->P) >= 0) { in ecp_modp() 1101 while (mbedtls_mpi_cmp_mpi((N), &grp->P) >= 0) \ 1196 mbedtls_mpi_cmp_mpi(X, Y) 2711 mbedtls_mpi_cmp_mpi(&pt->X, &grp->P) >= 0 || in ecp_check_pubkey_sw() 2712 mbedtls_mpi_cmp_mpi(&pt->Y, &grp->P) >= 0) { in ecp_check_pubkey_sw() 2936 while (mbedtls_mpi_cmp_mpi(&XmP, P) >= 0) { in ecp_check_bad_points_mx() 2950 if (mbedtls_mpi_cmp_mpi(&XmP, &ecp_x25519_bad_point_1) == 0) { in ecp_check_bad_points_mx() [all …]
|
| H A D | bignum.c | 991 int mbedtls_mpi_cmp_mpi(const mbedtls_mpi *X, const mbedtls_mpi *Y) in mbedtls_mpi_cmp_mpi() function 1050 return mbedtls_mpi_cmp_mpi(X, &Y); in mbedtls_mpi_cmp_int() 1505 while (mbedtls_mpi_cmp_mpi(&X, &Y) >= 0) { in mbedtls_mpi_div_mpi() 1531 } while (mbedtls_mpi_cmp_mpi(&T1, &T2) > 0); in mbedtls_mpi_div_mpi() 1604 while (mbedtls_mpi_cmp_mpi(R, B) >= 0) { in mbedtls_mpi_mod_mpi() 1809 if (mbedtls_mpi_cmp_mpi(X, N) >= 0) { in mbedtls_mpi_exp_mod_optionally_safe() 1886 mbedtls_mpi_cmp_mpi(A, N) > 0 || in mbedtls_mpi_gcd_modinv_odd() 2287 } while (mbedtls_mpi_cmp_mpi(&A, &W) >= 0 || in mpi_miller_rabin() 2295 if (mbedtls_mpi_cmp_mpi(&A, &W) == 0 || in mpi_miller_rabin() 2301 while (j < s && mbedtls_mpi_cmp_mpi(&A, &W) != 0) { in mpi_miller_rabin() [all …]
|
| H A D | ecdsa.c | 217 if (mbedtls_mpi_cmp_mpi(x, &grp->N) >= 0) { in derive_mpi() 264 if (mbedtls_mpi_cmp_int(d, 1) < 0 || mbedtls_mpi_cmp_mpi(d, &grp->N) >= 0) { in mbedtls_ecdsa_sign_restartable() 518 if (mbedtls_mpi_cmp_int(r, 1) < 0 || mbedtls_mpi_cmp_mpi(r, &grp->N) >= 0 || in mbedtls_ecdsa_verify_restartable() 519 mbedtls_mpi_cmp_int(s, 1) < 0 || mbedtls_mpi_cmp_mpi(s, &grp->N) >= 0) { in mbedtls_ecdsa_verify_restartable() 569 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 | 90 mbedtls_mpi_cmp_mpi(param, &U) > 0) { in dhm_check_range() 353 if (mbedtls_mpi_cmp_mpi(&ctx->X, &ctx->pX) != 0) { in dhm_update_blinding()
|
| H A D | rsa.c | 1172 mbedtls_mpi_cmp_mpi(&ctx->E, &ctx->N) >= 0) { in mbedtls_rsa_check_pubkey() 1215 if (mbedtls_mpi_cmp_mpi(&pub->N, &prv->N) != 0 || in mbedtls_rsa_check_pub_priv() 1216 mbedtls_mpi_cmp_mpi(&pub->E, &prv->E) != 0) { in mbedtls_rsa_check_pub_priv() 1248 if (mbedtls_mpi_cmp_mpi(&T, &ctx->N) >= 0) { in mbedtls_rsa_public() 1454 if (mbedtls_mpi_cmp_mpi(&T, &ctx->N) >= 0) { in mbedtls_rsa_private() 1534 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()
|