Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_sub_int (Results 1 – 14 of 14) sorted by relevance

/third_party/mbedtls/library/
Drsa_alt_helpers.c108 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&T, &T, 1)); in mbedtls_rsa_deduce_primes()
164 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&K, &K, 1)); in mbedtls_rsa_deduce_primes()
216 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&K, P, 1)); in mbedtls_rsa_deduce_private_exponent()
217 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&L, Q, 1)); in mbedtls_rsa_deduce_private_exponent()
247 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&K, P, 1)); in mbedtls_rsa_deduce_crt()
253 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&K, Q, 1)); in mbedtls_rsa_deduce_crt()
349 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&K, &K, 1)); in mbedtls_rsa_validate_params()
350 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&L, P, 1)); in mbedtls_rsa_validate_params()
359 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&K, &K, 1)); in mbedtls_rsa_validate_params()
360 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&L, Q, 1)); in mbedtls_rsa_validate_params()
[all …]
Ddhm.c98 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&U, P, 2)); in dhm_check_range()
186 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(R, R, 1)); in dhm_random_below()
Drsa.c592 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&ctx->P, &ctx->P, 1)); in mbedtls_rsa_gen_key()
593 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&ctx->Q, &ctx->Q, 1)); in mbedtls_rsa_gen_key()
957 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&P1, &ctx->P, 1)); in mbedtls_rsa_private()
958 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&Q1, &ctx->Q, 1)); in mbedtls_rsa_private()
Dbignum.c1113 int mbedtls_mpi_sub_int(mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b) in mbedtls_mpi_sub_int() function
2287 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&W, X, 1)); in mpi_miller_rabin()
Decp.c1139 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(X, A, c)); in mbedtls_mpi_sub_int_mod()
Dpsa_crypto.c5571 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&diff_N_2, &ecp_group.N, 2)); in psa_generate_derived_ecc_key_weierstrass_helper()
/third_party/mbedtls/programs/pkey/
Dmpi_demo.c63 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&P, &P, 1)); in main()
64 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_int(&Q, &Q, 1)); in main()
Ddh_genprime.c129 if ((ret = mbedtls_mpi_sub_int(&Q, &P, 1)) != 0) { in main()
/third_party/mbedtls/tests/suites/
Dtest_suite_bignum.function793 TEST_ASSERT(mbedtls_mpi_sub_int(&Z, &X, input_Y) == 0);
1311 /* Test mbedtls_mpi_sub_int(): (p) - (-p) */
1314 TEST_EQUAL(mbedtls_mpi_sub_int(&X, &A, most_negative), 0);
1319 /* Test mbedtls_mpi_sub_int(): (0) - (-p) */
1321 TEST_EQUAL(mbedtls_mpi_sub_int(&X, &A, most_negative), 0);
1326 /* Test mbedtls_mpi_sub_int(): (-p) - (-p) */
1328 TEST_EQUAL(mbedtls_mpi_sub_int(&X, &A, most_negative), 0);
Dtest_suite_bignum.misc.data901 Test mbedtls_mpi_sub_int #1
904 Test mbedtls_mpi_sub_int #2
907 Test mbedtls_mpi_sub_int: 0 (null) - 0
910 Test mbedtls_mpi_sub_int: 0 (null) - 1
913 Test mbedtls_mpi_sub_int: 0 (null) - -1
Dtest_suite_ecdsa.function139 TEST_EQUAL(mbedtls_mpi_sub_int(&r, &r_check, 1), 0);
Dtest_suite_rsa.function826 TEST_ASSERT(mbedtls_mpi_sub_int(&P, &P, 1) == 0);
827 TEST_ASSERT(mbedtls_mpi_sub_int(&Q, &Q, 1) == 0);
/third_party/mbedtls/include/mbedtls/
Dbignum.h754 int mbedtls_mpi_sub_int(mbedtls_mpi *X, const mbedtls_mpi *A,
/third_party/ffmpeg/libavformat/
Drtmpdh.c182 #define bn_sub_word(bn, w) mbedtls_mpi_sub_int(bn, bn, w)