From 7e52b5b42ef22b28d44c6a306d07f8678676c9f7 Mon Sep 17 00:00:00 2001 From: Michael Hamburg Date: Sun, 7 Feb 2016 19:53:53 -0800 Subject: [PATCH] leave an extra FUTURE MAGIC note --- src/per_curve/elligator.tmpl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/per_curve/elligator.tmpl.c b/src/per_curve/elligator.tmpl.c index 1642c87..3d96fd5 100644 --- a/src/per_curve/elligator.tmpl.c +++ b/src/per_curve/elligator.tmpl.c @@ -124,6 +124,9 @@ API_NS(invert_elligator_nonuniform) ( mask_t sgn_s = -(hint & 1), sgn_t_over_s = -(hint>>1 & 1), sgn_r0 = -(hint>>2 & 1), + /* FUTURE MAGIC: eventually if there's a curve which needs sgn_ed_T but not sgn_r0, + * change this mask extraction. + */ sgn_ed_T = -(hint>>3 & 1); gf a, b, c, d; API_NS(deisogenize)(a,c,p,sgn_s,sgn_t_over_s,sgn_ed_T);