Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_mod_mpi (Results 1 – 13 of 13) sorted by relevance

/third_party/mbedtls/library/
Drsa_alt_helpers.c166 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, N)); in mbedtls_rsa_deduce_primes()
248 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(DP, D, &K)); in mbedtls_rsa_deduce_crt()
254 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(DQ, D, &K)); in mbedtls_rsa_deduce_crt()
351 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, &L)); in mbedtls_rsa_validate_params()
361 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, &L)); in mbedtls_rsa_validate_params()
403 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&L, &L, &K)); in mbedtls_rsa_validate_crt()
420 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&L, &L, &K)); in mbedtls_rsa_validate_crt()
437 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, P)); in mbedtls_rsa_validate_crt()
Ddhm.c381 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->P)); in dhm_update_blinding()
384 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->P)); in dhm_update_blinding()
401 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->P)); in dhm_update_blinding()
404 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->P)); in dhm_update_blinding()
442 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&GYb, &GYb, &ctx->P)); in mbedtls_dhm_calc_secret()
450 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->K, &ctx->K, &ctx->P)); in mbedtls_dhm_calc_secret()
Decdsa.c320 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pr, &R.X, &grp->N)); in mbedtls_ecdsa_sign_restartable()
355 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pk, pk, &grp->N)); in mbedtls_ecdsa_sign_restartable()
358 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(s, s, &grp->N)); in mbedtls_ecdsa_sign_restartable()
558 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pu1, pu1, &grp->N)); in mbedtls_ecdsa_verify_restartable()
561 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pu2, pu2, &grp->N)); in mbedtls_ecdsa_verify_restartable()
585 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&R.X, &R.X, &grp->N)); in mbedtls_ecdsa_verify_restartable()
Drsa.c789 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding()
791 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->N)); in rsa_prepare_blinding()
808 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding()
823 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding()
981 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &T, &ctx->N)); in mbedtls_rsa_private()
1037 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &TP, &ctx->P)); in mbedtls_rsa_private()
Decjpake.c277 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(h, h, &grp->N)); in ecjpake_hash()
388 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&h, &h, &grp->N)); /* r */ in ecjpake_zkp_write()
684 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(R, R, N)); in ecjpake_mul_secret()
Dbignum.c1486 int mbedtls_mpi_mod_mpi(mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_mod_mpi() function
1768 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&RR, &RR, N)); in mbedtls_mpi_exp_mod()
1781 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&W[1], A, N)); in mbedtls_mpi_exp_mod()
2138 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&TA, A, N)); in mbedtls_mpi_inv_mod()
2330 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&A, &T, X)); in mpi_miller_rabin()
Dbignum_core.c526 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(X, X, N)); in mbedtls_mpi_core_get_mont_r2_unsafe()
Decp.c1005 return mbedtls_mpi_mod_mpi(N, N, &grp->P); in ecp_modp()
/third_party/mbedtls/tests/suites/
Dtest_suite_bignum.misc.data1195 Base test mbedtls_mpi_mod_mpi #1
1198 Base test mbedtls_mpi_mod_mpi #2 (Divide by zero (null))
1201 Base test mbedtls_mpi_mod_mpi #2 (Divide by zero (1 limb))
1204 Base test mbedtls_mpi_mod_mpi #3
1207 Base test mbedtls_mpi_mod_mpi #4 (Negative modulo)
1210 Base test mbedtls_mpi_mod_mpi #5 (Negative modulo)
1213 Test mbedtls_mpi_mod_mpi: 0 (null) % 1
1216 Test mbedtls_mpi_mod_mpi: 0 (null) % -1
1219 Test mbedtls_mpi_mod_mpi: -0 (null) % 1
1222 Test mbedtls_mpi_mod_mpi: -0 (null) % -1
[all …]
Dtest_suite_rsa.function830 TEST_ASSERT(mbedtls_mpi_mod_mpi(&R, &D, &P) == 0);
831 TEST_ASSERT(mbedtls_mpi_mod_mpi(&Rp, &Dp, &P) == 0);
835 TEST_ASSERT(mbedtls_mpi_mod_mpi(&R, &D, &Q) == 0);
836 TEST_ASSERT(mbedtls_mpi_mod_mpi(&Rp, &Dp, &Q) == 0);
Dtest_suite_ecp.function574 TEST_ASSERT(mbedtls_mpi_mod_mpi(&R, &N, &grp.P) == 0);
582 TEST_ASSERT(mbedtls_mpi_mod_mpi(&N, &N, &grp.P) == 0);
Dtest_suite_bignum.function913 res = mbedtls_mpi_mod_mpi(&X, &X, &Y);
/third_party/mbedtls/include/mbedtls/
Dbignum.h847 int mbedtls_mpi_mod_mpi(mbedtls_mpi *R, const mbedtls_mpi *A,