Input: Iteration function |
Output: The average ratio and for distinguished point method and theβnew algorithm, respectively |
(1) for to 36ββdo |
(2) βfor to 20ββdo |
(3) ββrepeat |
(4) βββChoose a random prime number |
(5) βββChoose two random numbers , q, where |
(6)βββ β the largest prime factor of |
(7) ββuntil |
(8) ββChoose a random point , where the order of equal to |
(9) ββ (the generator of ) |
(10) ββfor to ββdo |
(11) βββChoose a random number , |
(12) βββChoose a random point in be the initial point |
(13) βββ |
(14) βββrepeat |
(15) ββββ |
(16) ββββCheck whether the Hamming weight of less than certain value |
(17) ββββCheck whether the -coordinate of is a minimum value |
(18) ββββif there is a match among distinguished pointsββthen |
(19) βββββ |
(20) ββββend if |
(21) ββββif there is a match among minimum valuesββthen |
(22) βββββ |
(23) ββββend if |
(24) βββuntilββBoth of two methods have found the match |
(25) βββ for distinguished point method |
(26) βββ for the new algorithm |
(27)βββ end for |
(28) ββ for distinguished point method |
(29)β β for the new algorithm |
(30) βend for |
(31) β for distinguished point method |
(32)β for the new algorithm |
(33) end for |