Lines Matching refs:src
1618 static int mgf_mask(unsigned char *dst, size_t dlen, unsigned char *src, in mgf_mask() argument
1658 if ((ret = mbedtls_md_update(&md_ctx, src, slen)) != 0) { in mgf_mask()
2773 int mbedtls_rsa_copy(mbedtls_rsa_context *dst, const mbedtls_rsa_context *src) in mbedtls_rsa_copy() argument
2777 dst->len = src->len; in mbedtls_rsa_copy()
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()
2799 dst->padding = src->padding; in mbedtls_rsa_copy()
2800 dst->hash_id = src->hash_id; in mbedtls_rsa_copy()