/mbedtls-3.5.0/library/ |
D | rsa_alt_helpers.c | 166 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()
|
D | dhm.c | 381 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()
|
D | ecdsa.c | 320 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()
|
D | rsa.c | 788 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding() 790 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->N)); in rsa_prepare_blinding() 807 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding() 822 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding() 952 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &T, &ctx->N)); in mbedtls_rsa_private() 1013 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &TP, &ctx->P)); in mbedtls_rsa_private() 1027 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &T, &ctx->N)); in mbedtls_rsa_private()
|
D | ecjpake.c | 277 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()
|
D | bignum.c | 1484 int mbedtls_mpi_mod_mpi(mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_mod_mpi() function 1766 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&RR, &RR, N)); in mbedtls_mpi_exp_mod() 1779 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&W[1], A, N)); in mbedtls_mpi_exp_mod() 2136 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&TA, A, N)); in mbedtls_mpi_inv_mod() 2328 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&A, &T, X)); in mpi_miller_rabin()
|
D | bignum_core.c | 526 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(X, X, N)); in mbedtls_mpi_core_get_mont_r2_unsafe()
|
D | ecp.c | 1005 return mbedtls_mpi_mod_mpi(N, N, &grp->P); in ecp_modp()
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_bignum.misc.data | 1195 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 …]
|
D | test_suite_rsa.function | 830 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);
|
D | test_suite_ecp.function | 574 TEST_ASSERT(mbedtls_mpi_mod_mpi(&R, &N, &grp.P) == 0); 582 TEST_ASSERT(mbedtls_mpi_mod_mpi(&N, &N, &grp.P) == 0);
|
D | test_suite_bignum.function | 913 res = mbedtls_mpi_mod_mpi(&X, &X, &Y);
|
/mbedtls-3.5.0/include/mbedtls/ |
D | bignum.h | 847 int mbedtls_mpi_mod_mpi(mbedtls_mpi *R, const mbedtls_mpi *A,
|