/lib/mbedtls/external/mbedtls/library/ |
A D | rsa_alt_helpers.c | 79 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() 164 if (mbedtls_mpi_cmp_int(&K, 1) != 0) { in mbedtls_rsa_deduce_primes() 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() 196 mbedtls_mpi_cmp_int(E, 0) == 0) { in mbedtls_rsa_deduce_private_exponent() 315 if (mbedtls_mpi_cmp_int(D, 1) <= 0 || in mbedtls_rsa_validate_params() 316 mbedtls_mpi_cmp_int(E, 1) <= 0 || in mbedtls_rsa_validate_params() [all …]
|
A D | rsa.c | 71 if (mbedtls_mpi_cmp_int(X, 0) == 0) { in asn1_get_nonzero_mpi() 657 if (mbedtls_mpi_cmp_int(&ctx->N, 0) <= 0 || in rsa_check_context() 680 if (mbedtls_mpi_cmp_int(&ctx->E, 0) <= 0) { in rsa_check_context() 831 mbedtls_mpi_cmp_int(&ctx->N, 0) != 0 && in mbedtls_rsa_export_raw() 832 mbedtls_mpi_cmp_int(&ctx->P, 0) != 0 && in mbedtls_rsa_export_raw() 833 mbedtls_mpi_cmp_int(&ctx->Q, 0) != 0 && in mbedtls_rsa_export_raw() 834 mbedtls_mpi_cmp_int(&ctx->D, 0) != 0 && in mbedtls_rsa_export_raw() 835 mbedtls_mpi_cmp_int(&ctx->E, 0) != 0; in mbedtls_rsa_export_raw() 884 mbedtls_mpi_cmp_int(&ctx->E, 0) != 0; in mbedtls_rsa_export() 926 mbedtls_mpi_cmp_int(&ctx->E, 0) != 0; in mbedtls_rsa_export_crt() [all …]
|
A D | bignum.c | 601 } while (mbedtls_mpi_cmp_int(X, 0) != 0); in mpi_write_hlp() 1400 if (mbedtls_mpi_cmp_int(B, 0) == 0) { in mbedtls_mpi_div_mpi() 1537 if (mbedtls_mpi_cmp_int(B, 0) < 0) { in mbedtls_mpi_mod_mpi() 1543 while (mbedtls_mpi_cmp_int(R, 0) < 0) { in mbedtls_mpi_mod_mpi() 1623 if (mbedtls_mpi_cmp_int(E, 0) < 0) { in mbedtls_mpi_exp_mod() 1863 if (mbedtls_mpi_cmp_int(N, min) <= 0) { in mbedtls_mpi_random() 1886 if (mbedtls_mpi_cmp_int(N, 1) <= 0) { in mbedtls_mpi_inv_mod() 1896 if (mbedtls_mpi_cmp_int(&G, 1) != 0) { in mbedtls_mpi_inv_mod() 2132 if (mbedtls_mpi_cmp_int(&XX, 0) == 0 || in mbedtls_mpi_is_prime_ext() 2133 mbedtls_mpi_cmp_int(&XX, 1) == 0) { in mbedtls_mpi_is_prime_ext() [all …]
|
A D | ecp.c | 655 return mbedtls_mpi_cmp_int(&pt->Z, 0) == 0; in mbedtls_ecp_is_zero() 721 if (mbedtls_mpi_cmp_int(&P->Z, 0) == 0) { in mbedtls_ecp_point_write_binary() 1188 mbedtls_mpi_cmp_int(X, c) 2731 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0 || in ecp_check_pubkey_sw() 2732 mbedtls_mpi_cmp_int(&pt->Y, 0) < 0 || in ecp_check_pubkey_sw() 2775 if (mbedtls_mpi_cmp_int(m, 0) == 0) { in mbedtls_ecp_mul_shortcuts() 2778 } else if (mbedtls_mpi_cmp_int(m, 1) == 0) { in mbedtls_ecp_mul_shortcuts() 2781 } else if (mbedtls_mpi_cmp_int(m, -1) == 0) { in mbedtls_ecp_mul_shortcuts() 3016 if (mbedtls_mpi_cmp_int(&pt->X, 0) < 0) { in ecp_check_pubkey_mx() 3031 if (mbedtls_mpi_cmp_int(&pt->Z, 1) != 0) { in mbedtls_ecp_check_pubkey() [all …]
|
A D | ecdsa.c | 263 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()
|
A D | dhm.c | 88 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()
|
/lib/mbedtls/external/mbedtls/tests/suites/ |
A D | test_suite_bignum.function | 1308 /* Test mbedtls_mpi_cmp_int(): -p == -p */ 1355 TEST_EQUAL(mbedtls_mpi_cmp_int(&X, 0), 0); 1360 TEST_EQUAL(mbedtls_mpi_cmp_int(&X, 0), 0); 1366 TEST_EQUAL(mbedtls_mpi_cmp_int(&X, 1), 0); 1367 TEST_EQUAL(mbedtls_mpi_cmp_int(&R, 0), 0); 1372 TEST_EQUAL(mbedtls_mpi_cmp_int(&X, 2), 0); 1373 TEST_EQUAL(mbedtls_mpi_cmp_int(&R, 0), 0); 1378 TEST_EQUAL(mbedtls_mpi_cmp_int(&X, 1), 0); 1384 TEST_EQUAL(mbedtls_mpi_cmp_int(&X, 0), 0); 1391 TEST_EQUAL(mbedtls_mpi_cmp_int(&R, 0), 0); [all …]
|
A D | test_suite_dhm.function | 62 TEST_ASSERT(mbedtls_mpi_cmp_int(&ctx->X, 1) > 0); 65 TEST_ASSERT(mbedtls_mpi_cmp_int(&ctx->GX, 1) > 0);
|
A D | test_suite_bignum.misc.data | 178 Base test mbedtls_mpi_cmp_int #1 181 Base test mbedtls_mpi_cmp_int #2 184 Base test mbedtls_mpi_cmp_int #3 187 Base test mbedtls_mpi_cmp_int (Negative values) #1 190 Base test mbedtls_mpi_cmp_int (Negative values) #2 193 Base test mbedtls_mpi_cmp_int (Negative values) #3
|
A D | test_suite_ecp.function | 654 TEST_ASSERT(mbedtls_mpi_cmp_int(&Y, 0) == 0); 656 TEST_ASSERT(mbedtls_mpi_cmp_int(&Z, 1) == 0); 657 TEST_ASSERT(mbedtls_mpi_cmp_int(&P.Z, 1) == 0); 1203 TEST_EQUAL(mbedtls_mpi_cmp_int(&key.Q.X, 1), 0); 1204 TEST_EQUAL(mbedtls_mpi_cmp_int(&key.Q.Y, 2), 0); 1205 TEST_EQUAL(mbedtls_mpi_cmp_int(&key.Q.Z, 3), 0);
|
A D | test_suite_bignum_random.function | 319 TEST_ASSERT(mbedtls_mpi_cmp_int(&R, min) >= 0); 398 TEST_ASSERT(mbedtls_mpi_cmp_int(&result, min) >= 0);
|
A D | test_suite_asn1parse.function | 346 TEST_EQUAL(mbedtls_mpi_cmp_int(&actual_mpi, 0), 0);
|
/lib/mbedtls/external/mbedtls/tests/src/ |
A D | bignum_helpers.c | 137 if (mbedtls_mpi_cmp_int(X, 0) == 0) { in mbedtls_test_read_mpi()
|
/lib/mbedtls/external/mbedtls/programs/fuzz/ |
A D | fuzz_pubkey.c | 67 if (mbedtls_mpi_cmp_int(&d, 0) != 0) { in LLVMFuzzerTestOneInput()
|
/lib/mbedtls/external/mbedtls/include/mbedtls/ |
A D | bignum.h | 682 int mbedtls_mpi_cmp_int(const mbedtls_mpi *X, mbedtls_mpi_sint z);
|