Skip to content

Commit

Permalink
Add credits for the algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Nov 27, 2024
1 parent a37d5d8 commit 18d3fcf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/fp/relic_fp_div.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ void fp_hlv_integ(fp_t c, const fp_t a) {
void fp_trs(fp_t c, const fp_t a) {
const dig_t mask = (2 * RLC_3MASK + 1);
dig_t c0, c1, f0, f1;
dv_t t;
fp_t t;

dv_null(t);
/* From "Efficient Multiplication in Finite Field Extensions of Degree 5"
* by El Mrabet, Guillevic and Ionica at ASIACRYPT 2011. */

fp_null(t);

RLC_TRY {
dv_new(t);
Expand Down Expand Up @@ -97,6 +100,6 @@ void fp_trs(fp_t c, const fp_t a) {
} RLC_CATCH_ANY {
RLC_THROW(ERR_CAUGHT);
} RLC_FINALLY {
dv_free(t);
fp_free(t);
}
}

0 comments on commit 18d3fcf

Please sign in to comment.