Home
last modified time | relevance | path

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

/openthread-3.7.0/third_party/mbedtls/repo/library/
Drsa_alt_helpers.c154 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, N)); in mbedtls_rsa_deduce_primes()
236 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(DP, D, &K)); in mbedtls_rsa_deduce_crt()
242 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(DQ, D, &K)); in mbedtls_rsa_deduce_crt()
339 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, &L)); in mbedtls_rsa_validate_params()
349 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, &L)); in mbedtls_rsa_validate_params()
391 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&L, &L, &K)); in mbedtls_rsa_validate_crt()
408 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&L, &L, &K)); in mbedtls_rsa_validate_crt()
425 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&K, &K, P)); in mbedtls_rsa_validate_crt()
Ddhm.c369 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->P)); in dhm_update_blinding()
372 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->P)); in dhm_update_blinding()
389 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->P)); in dhm_update_blinding()
392 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->P)); in dhm_update_blinding()
430 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&GYb, &GYb, &ctx->P)); in mbedtls_dhm_calc_secret()
438 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->K, &ctx->K, &ctx->P)); in mbedtls_dhm_calc_secret()
Decdsa.c321 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pr, &R.X, &grp->N)); in mbedtls_ecdsa_sign_restartable()
356 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pk, pk, &grp->N)); in mbedtls_ecdsa_sign_restartable()
359 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(s, s, &grp->N)); in mbedtls_ecdsa_sign_restartable()
546 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pu1, pu1, &grp->N)); in mbedtls_ecdsa_verify_restartable()
549 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(pu2, pu2, &grp->N)); in mbedtls_ecdsa_verify_restartable()
573 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&R.X, &R.X, &grp->N)); in mbedtls_ecdsa_verify_restartable()
Decjpake.c234 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(h, h, &grp->N)); in ecjpake_hash()
345 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&h, &h, &grp->N)); /* r */ in ecjpake_zkp_write()
641 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(R, R, N)); in ecjpake_mul_secret()
Drsa.c1298 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding()
1300 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vf, &ctx->Vf, &ctx->N)); in rsa_prepare_blinding()
1317 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding()
1332 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&ctx->Vi, &ctx->Vi, &ctx->N)); in rsa_prepare_blinding()
1490 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &T, &ctx->N)); in mbedtls_rsa_private()
1547 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&T, &TP, &ctx->P)); in mbedtls_rsa_private()
Dbignum.c1533 int mbedtls_mpi_mod_mpi(mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_mod_mpi() function
1688 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(X, X, N)); in mbedtls_mpi_exp_mod()
1901 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&TA, A, N)); in mbedtls_mpi_inv_mod()
2091 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(&A, &T, X)); in mpi_miller_rabin()
Dbignum_core.c589 MBEDTLS_MPI_CHK(mbedtls_mpi_mod_mpi(X, X, N)); in mbedtls_mpi_core_get_mont_r2_unsafe()
Decp.c1004 return mbedtls_mpi_mod_mpi(N, N, &grp->P); in ecp_modp()
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_bignum.misc.data1198 Base test mbedtls_mpi_mod_mpi #1
1201 Base test mbedtls_mpi_mod_mpi #2 (Divide by zero (null))
1204 Base test mbedtls_mpi_mod_mpi #2 (Divide by zero (1 limb))
1207 Base test mbedtls_mpi_mod_mpi #3
1210 Base test mbedtls_mpi_mod_mpi #4 (Negative modulo)
1213 Base test mbedtls_mpi_mod_mpi #5 (Negative modulo)
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
1225 Test mbedtls_mpi_mod_mpi: -0 (null) % -1
[all …]
Dtest_suite_rsa.function838 TEST_ASSERT(mbedtls_mpi_mod_mpi(&R, &D, &P) == 0);
839 TEST_ASSERT(mbedtls_mpi_mod_mpi(&Rp, &Dp, &P) == 0);
843 TEST_ASSERT(mbedtls_mpi_mod_mpi(&R, &D, &Q) == 0);
844 TEST_ASSERT(mbedtls_mpi_mod_mpi(&Rp, &Dp, &Q) == 0);
Dtest_suite_ecp.function570 TEST_ASSERT(mbedtls_mpi_mod_mpi(&R, &N, &grp.P) == 0);
578 TEST_ASSERT(mbedtls_mpi_mod_mpi(&N, &N, &grp.P) == 0);
Dtest_suite_bignum.function933 res = mbedtls_mpi_mod_mpi(&X, &X, &Y);
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/
Dbignum.h860 int mbedtls_mpi_mod_mpi(mbedtls_mpi *R, const mbedtls_mpi *A,