We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a143e5a commit f09f134Copy full SHA for f09f134
src/epx/relic_ep2_curve.c
@@ -852,8 +852,10 @@ void ep2_curve_set_twist(int type) {
852
/* I don't have a better place for this. */
853
fp_prime_calc();
854
855
- fp2_copy(ctx->ep2_frb[0], ctx->fp2_p1[1]);
856
- fp2_copy(ctx->ep2_frb[1], ctx->fp2_p1[2]);
+ fp_copy(ctx->ep2_frb[0][0], ctx->fp2_p1[1][0]);
+ fp_copy(ctx->ep2_frb[0][1], ctx->fp2_p1[1][1]);
857
+ fp_copy(ctx->ep2_frb[1][0], ctx->fp2_p1[2][0]);
858
+ fp_copy(ctx->ep2_frb[1][1], ctx->fp2_p1[2][1]);
859
if (type == RLC_EP_MTYPE) {
860
fp2_inv(ctx->ep2_frb[0], ctx->ep2_frb[0]);
861
fp2_inv(ctx->ep2_frb[1], ctx->ep2_frb[1]);
0 commit comments