Skip to content

Commit

Permalink
Fix copy for other memory allocators.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Aug 26, 2021
1 parent a143e5a commit f09f134
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/epx/relic_ep2_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,10 @@ void ep2_curve_set_twist(int type) {
/* I don't have a better place for this. */
fp_prime_calc();

fp2_copy(ctx->ep2_frb[0], ctx->fp2_p1[1]);
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]);
fp_copy(ctx->ep2_frb[1][0], ctx->fp2_p1[2][0]);
fp_copy(ctx->ep2_frb[1][1], ctx->fp2_p1[2][1]);
if (type == RLC_EP_MTYPE) {
fp2_inv(ctx->ep2_frb[0], ctx->ep2_frb[0]);
fp2_inv(ctx->ep2_frb[1], ctx->ep2_frb[1]);
Expand Down

0 comments on commit f09f134

Please sign in to comment.