- mpi_read_binary(&cp->ctx.N, (const unsigned char *)mod, modlen);
- mpi_read_binary(&cp->ctx.E, (const unsigned char *)exp, explen);
-
- mpi_read_binary(&cp->ctx.D, (const unsigned char *)d, dlen);
- mpi_read_binary(&cp->ctx.P, (const unsigned char *)p, plen);
- mpi_read_binary(&cp->ctx.Q, (const unsigned char *)q, qlen);
- mpi_read_binary(&cp->ctx.DP, (const unsigned char *)dp, dplen);
- mpi_read_binary(&cp->ctx.DQ, (const unsigned char *)dq, dqlen);
- mpi_inv_mod(&cp->ctx.QP, &cp->ctx.Q, &cp->ctx.P);
+ mbedtls_mpi_read_binary(&cp->ctx.N, (const unsigned char *)mod, modlen);
+ mbedtls_mpi_read_binary(&cp->ctx.E, (const unsigned char *)exp, explen);
+
+ mbedtls_mpi_read_binary(&cp->ctx.D, (const unsigned char *)d, dlen);
+ mbedtls_mpi_read_binary(&cp->ctx.P, (const unsigned char *)p, plen);
+ mbedtls_mpi_read_binary(&cp->ctx.Q, (const unsigned char *)q, qlen);
+ mbedtls_mpi_read_binary(&cp->ctx.DP, (const unsigned char *)dp, dplen);
+ mbedtls_mpi_read_binary(&cp->ctx.DQ, (const unsigned char *)dq, dqlen);
+ mbedtls_mpi_inv_mod(&cp->ctx.QP, &cp->ctx.Q, &cp->ctx.P);