Skip to content

Commit

Permalink
Update relic_fp2_sqr.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha authored Jan 23, 2024
1 parent 2d7fb20 commit afbbd0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fpx/relic_fp2_sqr.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ void fp2_sqr_basic(fp2_t c, const fp2_t a) {
for (int i = 1; i < fp_prime_get_qnr(); i++) {
fp_add(t1, t1, a[1]);
}



if (fp_prime_get_qnr() == -1) {
/* t2 = 2 * a_0. */
fp_dbl(t2, a[0]);
Expand Down

0 comments on commit afbbd0a

Please sign in to comment.