Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_cmp_int (Results 1 – 9 of 9) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
H A Drsa_alt_helpers.c79 if (mbedtls_mpi_cmp_int(N, 0) <= 0 || in mbedtls_rsa_deduce_primes()
80 mbedtls_mpi_cmp_int(D, 1) <= 0 || in mbedtls_rsa_deduce_primes()
82 mbedtls_mpi_cmp_int(E, 1) <= 0 || in mbedtls_rsa_deduce_primes()
121 if (mbedtls_mpi_cmp_int(P, 1) != 0) { in mbedtls_rsa_deduce_primes()
134 if (mbedtls_mpi_cmp_int(&K, 1) == 0) { in mbedtls_rsa_deduce_primes()
141 if (mbedtls_mpi_cmp_int(P, 1) == 1 && in mbedtls_rsa_deduce_primes()
164 if (mbedtls_mpi_cmp_int(&K, 1) != 0) { in mbedtls_rsa_deduce_primes()
190 if (D == NULL || mbedtls_mpi_cmp_int(D, 0) != 0) { in mbedtls_rsa_deduce_private_exponent()
194 if (mbedtls_mpi_cmp_int(P, 1) <= 0 || in mbedtls_rsa_deduce_private_exponent()
195 mbedtls_mpi_cmp_int(Q, 1) <= 0 || in mbedtls_rsa_deduce_private_exponent()
[all …]
H A Drsa.c74 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 Dbignum.c653 } while (mbedtls_mpi_cmp_int(X, 0) != 0); in mpi_write_hlp()
1035 int mbedtls_mpi_cmp_int(const mbedtls_mpi *X, mbedtls_mpi_sint z) in mbedtls_mpi_cmp_int() function
1452 if (mbedtls_mpi_cmp_int(B, 0) == 0) { in mbedtls_mpi_div_mpi()
1532 if (mbedtls_mpi_cmp_int(&X, 0) < 0) { in mbedtls_mpi_div_mpi()
1550 if (mbedtls_mpi_cmp_int(R, 0) == 0) { in mbedtls_mpi_div_mpi()
1589 if (mbedtls_mpi_cmp_int(B, 0) < 0) { in mbedtls_mpi_mod_mpi()
1595 while (mbedtls_mpi_cmp_int(R, 0) < 0) { in mbedtls_mpi_mod_mpi()
1734 if (mbedtls_mpi_cmp_int(N, 0) <= 0 || (N->p[0] & 1) == 0) { in mbedtls_mpi_exp_mod_optionally_safe()
1738 if (mbedtls_mpi_cmp_int(E, 0) < 0) { in mbedtls_mpi_exp_mod_optionally_safe()
1932 while (mbedtls_mpi_cmp_int(&TA, 0) != 0) { in mbedtls_mpi_gcd()
[all …]
H A Decdsa.c263 if (mbedtls_mpi_cmp_int(d, 1) < 0 || mbedtls_mpi_cmp_mpi(d, &grp->N) >= 0) { in mbedtls_ecdsa_sign_restartable()
322 } while (mbedtls_mpi_cmp_int(pr, 0) == 0); in mbedtls_ecdsa_sign_restartable()
360 } while (mbedtls_mpi_cmp_int(s, 0) == 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()
H A Decp.c659 return mbedtls_mpi_cmp_int(&pt->Z, 0) == 0; in mbedtls_ecp_is_zero()
725 if (mbedtls_mpi_cmp_int(&P->Z, 0) == 0) { in mbedtls_ecp_point_write_binary()
1012 if ((N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) || in ecp_modp()
1020 while (N->s < 0 && mbedtls_mpi_cmp_int(N, 0) != 0) { in ecp_modp()
1077 while ((N)->s < 0 && mbedtls_mpi_cmp_int((N), 0) != 0) \
1192 mbedtls_mpi_cmp_int(X, c)
1206 unsigned char nonzero = mbedtls_mpi_cmp_int((X), 0) != 0; \
2735 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0 || in ecp_check_pubkey_sw()
2736 mbedtls_mpi_cmp_int(&pt->Y, 0) < 0 || in ecp_check_pubkey_sw()
2779 if (mbedtls_mpi_cmp_int(m, 0) == 0) { in mbedtls_ecp_mul_shortcuts()
[all …]
H A Ddhm.c88 if (mbedtls_mpi_cmp_int(param, 2) < 0 || in dhm_check_range()
186 if (mbedtls_mpi_cmp_int(&ctx->P, 0) == 0) { in dhm_make_common()
367 if (mbedtls_mpi_cmp_int(&ctx->Vi, 1) != 0) { in dhm_update_blinding()
/optee_os/lib/libmbedtls/core/
H A Dsm2-dsa.c95 } 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 Dtee_api_arith_mpi.c269 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 Dbignum.h689 int mbedtls_mpi_cmp_int(const mbedtls_mpi *X, mbedtls_mpi_sint z);