Searched refs:mbedtls_mpi_cmp_int (Results 1 – 9 of 9) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | rsa_alt_helpers.c | 80 if (mbedtls_mpi_cmp_int(N, 0) <= 0 || in mbedtls_rsa_deduce_primes() 81 mbedtls_mpi_cmp_int(D, 1) <= 0 || in mbedtls_rsa_deduce_primes() 83 mbedtls_mpi_cmp_int(E, 1) <= 0 || in mbedtls_rsa_deduce_primes() 122 if (mbedtls_mpi_cmp_int(P, 1) != 0) { in mbedtls_rsa_deduce_primes() 135 if (mbedtls_mpi_cmp_int(&K, 1) == 0) { in mbedtls_rsa_deduce_primes() 142 if (mbedtls_mpi_cmp_int(P, 1) == 1 && in mbedtls_rsa_deduce_primes() 165 if (mbedtls_mpi_cmp_int(&K, 1) != 0) { in mbedtls_rsa_deduce_primes() 191 if (D == NULL || mbedtls_mpi_cmp_int(D, 0) != 0) { in mbedtls_rsa_deduce_private_exponent() 195 if (mbedtls_mpi_cmp_int(P, 1) <= 0 || in mbedtls_rsa_deduce_private_exponent() 196 mbedtls_mpi_cmp_int(Q, 1) <= 0 || in mbedtls_rsa_deduce_private_exponent() [all …]
|
| H A D | rsa.c | 74 if (mbedtls_mpi_cmp_int(X, 0) == 0) { in asn1_get_nonzero_mpi() 660 if (mbedtls_mpi_cmp_int(&ctx->N, 0) <= 0 || in rsa_check_context() 670 (mbedtls_mpi_cmp_int(&ctx->P, 0) <= 0 || in rsa_check_context() 672 mbedtls_mpi_cmp_int(&ctx->Q, 0) <= 0 || in rsa_check_context() 683 if (mbedtls_mpi_cmp_int(&ctx->E, 0) <= 0) { in rsa_check_context() 690 if (is_priv && mbedtls_mpi_cmp_int(&ctx->D, 0) <= 0) { in rsa_check_context() 695 (mbedtls_mpi_cmp_int(&ctx->DP, 0) <= 0 || in rsa_check_context() 696 mbedtls_mpi_cmp_int(&ctx->DQ, 0) <= 0)) { in rsa_check_context() 706 (mbedtls_mpi_cmp_int(&ctx->P, 0) <= 0 || in rsa_check_context() 707 mbedtls_mpi_cmp_int(&ctx->Q, 0) <= 0)) { in rsa_check_context() [all …]
|
| H A D | bignum.c | 658 } while (mbedtls_mpi_cmp_int(X, 0) != 0); in mpi_write_hlp() 1040 int mbedtls_mpi_cmp_int(const mbedtls_mpi *X, mbedtls_mpi_sint z) in mbedtls_mpi_cmp_int() function 1457 if (mbedtls_mpi_cmp_int(B, 0) == 0) { in mbedtls_mpi_div_mpi() 1537 if (mbedtls_mpi_cmp_int(&X, 0) < 0) { in mbedtls_mpi_div_mpi() 1555 if (mbedtls_mpi_cmp_int(R, 0) == 0) { in mbedtls_mpi_div_mpi() 1594 if (mbedtls_mpi_cmp_int(B, 0) < 0) { in mbedtls_mpi_mod_mpi() 1600 while (mbedtls_mpi_cmp_int(R, 0) < 0) { in mbedtls_mpi_mod_mpi() 1740 if (mbedtls_mpi_cmp_int(N, 0) <= 0 || (N->p[0] & 1) == 0) { in mbedtls_mpi_exp_mod_optionally_safe() 1744 if (mbedtls_mpi_cmp_int(E, 0) < 0) { in mbedtls_mpi_exp_mod_optionally_safe() 1885 if (mbedtls_mpi_cmp_int(A, 0) < 0 || in mbedtls_mpi_gcd_modinv_odd() [all …]
|
| H A D | ecdsa.c | 264 if (mbedtls_mpi_cmp_int(d, 1) < 0 || mbedtls_mpi_cmp_mpi(d, &grp->N) >= 0) { in mbedtls_ecdsa_sign_restartable() 323 } while (mbedtls_mpi_cmp_int(pr, 0) == 0); in mbedtls_ecdsa_sign_restartable() 351 } while (mbedtls_mpi_cmp_int(s, 0) == 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()
|
| H A D | ecp.c | 660 return mbedtls_mpi_cmp_int(&pt->Z, 0) == 0; in mbedtls_ecp_is_zero() 726 if (mbedtls_mpi_cmp_int(&P->Z, 0) == 0) { in mbedtls_ecp_point_write_binary() 1013 if ((N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) || in ecp_modp() 1021 while (N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) { in ecp_modp() 1078 while ((N)->s < 0 && mbedtls_mpi_cmp_int((N), 0) != 0) \ 1193 mbedtls_mpi_cmp_int(X, c) 1207 unsigned char nonzero = mbedtls_mpi_cmp_int((X), 0) != 0; \ 2709 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0 || in ecp_check_pubkey_sw() 2710 mbedtls_mpi_cmp_int(&pt->Y, 0) < 0 || in ecp_check_pubkey_sw() 2753 if (mbedtls_mpi_cmp_int(m, 0) == 0) { in mbedtls_ecp_mul_shortcuts() [all …]
|
| H A D | dhm.c | 89 if (mbedtls_mpi_cmp_int(param, 2) < 0 || in dhm_check_range() 187 if (mbedtls_mpi_cmp_int(&ctx->P, 0) == 0) { in dhm_make_common() 365 if (mbedtls_mpi_cmp_int(&ctx->Vi, 1) != 0) { in dhm_update_blinding()
|
| /optee_os/lib/libmbedtls/core/ |
| H 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/lib/libutee/ |
| H A D | tee_api_arith_mpi.c | 269 rc = mbedtls_mpi_cmp_int(&mpi, shortVal); in TEE_BigIntCmpS32() 663 rc = !mbedtls_mpi_cmp_int(&gcd, 1); in TEE_BigIntRelativePrime() 709 if (mbedtls_mpi_cmp_int(&mpi_n, 2) <= 0) in TEE_BigIntExpMod() 750 if (!mbedtls_mpi_cmp_int(y_in, 0)) { in mpi_egcd() 774 while (mbedtls_mpi_cmp_int(&u, 0)) { in mpi_egcd()
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | bignum.h | 689 int mbedtls_mpi_cmp_int(const mbedtls_mpi *X, mbedtls_mpi_sint z);
|