Commit 1af4209b authored by MASSON Simon's avatar MASSON Simon
Browse files

fix cost k=5,7

parent 3d9689b8
......@@ -338,7 +338,7 @@ def millerLoopCost(C):
cost_verticalline = k*cost_m(1)
cost_update1 = 4*cost_m(k) + 2*cost_s(k)
cost_update2 = 4*cost_m(k)
cost_update3 = 2*cost_m(k)
cost_update3 = 2*cost_m(k) + k * cost_m(1)
elif k == 6 and D == 3 :
cost_addline = 10*cost_m(k//6) + 2*cost_s(k//6) + (k//3)*cost_m(1)
cost_doubleline = 2*cost_m(k//6) + 7*cost_s(k//6) + (k//3)*cost_m(1)
......@@ -386,7 +386,7 @@ def millerLoopCost(C):
T = polymorphic_get_miller_loop_length(C)
logT = T.nbits()
HwT = Hw(T)
if k == 5 or k == 7:
if k == 5 or k == 7: # todo for latter simon
NbMinus1 = 1
else :
NbMinus1 = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment