Lines Matching refs:mbedtls_mpi_copy
173 (ret = mbedtls_mpi_copy(&rsa->DP, &T)) != 0) { in mbedtls_rsa_parse_key()
179 (ret = mbedtls_mpi_copy(&rsa->DQ, &T)) != 0) { in mbedtls_rsa_parse_key()
185 (ret = mbedtls_mpi_copy(&rsa->QP, &T)) != 0) { in mbedtls_rsa_parse_key()
579 if ((N != NULL && (ret = mbedtls_mpi_copy(&ctx->N, N)) != 0) || in mbedtls_rsa_import()
580 (P != NULL && (ret = mbedtls_mpi_copy(&ctx->P, P)) != 0) || in mbedtls_rsa_import()
581 (Q != NULL && (ret = mbedtls_mpi_copy(&ctx->Q, Q)) != 0) || in mbedtls_rsa_import()
582 (D != NULL && (ret = mbedtls_mpi_copy(&ctx->D, D)) != 0) || in mbedtls_rsa_import()
583 (E != NULL && (ret = mbedtls_mpi_copy(&ctx->E, E)) != 0)) { in mbedtls_rsa_import()
898 if ((N != NULL && (ret = mbedtls_mpi_copy(N, &ctx->N)) != 0) || in mbedtls_rsa_export()
899 (P != NULL && (ret = mbedtls_mpi_copy(P, &ctx->P)) != 0) || in mbedtls_rsa_export()
900 (Q != NULL && (ret = mbedtls_mpi_copy(Q, &ctx->Q)) != 0) || in mbedtls_rsa_export()
901 (D != NULL && (ret = mbedtls_mpi_copy(D, &ctx->D)) != 0) || in mbedtls_rsa_export()
902 (E != NULL && (ret = mbedtls_mpi_copy(E, &ctx->E)) != 0)) { in mbedtls_rsa_export()
935 if ((DP != NULL && (ret = mbedtls_mpi_copy(DP, &ctx->DP)) != 0) || in mbedtls_rsa_export_crt()
936 (DQ != NULL && (ret = mbedtls_mpi_copy(DQ, &ctx->DQ)) != 0) || in mbedtls_rsa_export_crt()
937 (QP != NULL && (ret = mbedtls_mpi_copy(QP, &ctx->QP)) != 0)) { in mbedtls_rsa_export_crt()
1493 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&input_blinded, &T)); in mbedtls_rsa_private()
2779 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->N, &src->N)); in mbedtls_rsa_copy()
2780 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->E, &src->E)); in mbedtls_rsa_copy()
2782 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->D, &src->D)); in mbedtls_rsa_copy()
2783 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->P, &src->P)); in mbedtls_rsa_copy()
2784 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->Q, &src->Q)); in mbedtls_rsa_copy()
2787 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->DP, &src->DP)); in mbedtls_rsa_copy()
2788 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->DQ, &src->DQ)); in mbedtls_rsa_copy()
2789 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->QP, &src->QP)); in mbedtls_rsa_copy()
2790 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->RP, &src->RP)); in mbedtls_rsa_copy()
2791 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->RQ, &src->RQ)); in mbedtls_rsa_copy()
2794 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->RN, &src->RN)); in mbedtls_rsa_copy()
2796 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->Vi, &src->Vi)); in mbedtls_rsa_copy()
2797 MBEDTLS_MPI_CHK(mbedtls_mpi_copy(&dst->Vf, &src->Vf)); in mbedtls_rsa_copy()