Probably you can just use range on both and be happy, 253 isn't very big.

Alex


On Fri, Oct 4, 2013 at 1:20 PM, Donald Stufft <notifications@github.com>wrote:

> In ed25519.py:
>
> > @@ -58,6 +57,27 @@ def scalarmult(P, e):
> >      return Q
> >
> >
> > +Bpow = []  # Bpow[i] == scalarmult(B, 2**i)
> > +
> > +def make_Bpow():
> > +    P = B
> > +    for i in xrange(253):
> > +        Bpow.append(P)
> > +        P = edwards(P, P)
> > +make_Bpow()
> > +
> > +# == scalarmult(B, e)
> > +def scalarmult_B(e):
> > +    e = e % l  # scalarmult(B, l) == (0, 1)
> > +    P = (0, 1)
> > +    for i in xrange(253):
>
> Once you rebase adding a xrange = range under the If PY3: section will be
> required to make this work.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dstufft/ed25519/pull/3/files#r6778258>
> .
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084